Article View: gnu.gdb.bug
Article #293Minor problems when installing GDB 3.3 (SunOS 4.0.3)
From: Paul Eggert
Date: Wed, 11 Oct 1989 23:39
Date: Wed, 11 Oct 1989 23:39
177 lines
4048 bytes
4048 bytes
Here are three installation problems when building GDB 3.3 for SunOS 4.0.3 (on
both Sparcstations and Sun-3s). I got GDB 3.3 from uunet!~/gnu/gdb-3.3.tar.Z,
dated Sep 30 15:57.
1. config.gdb has some typographical errors that are exposed when configuring
in certain ways on Suns. Here is a fix.
*** old/config.gdb Wed Oct 11 16:23:05 1989
--- new/config.gdb Wed Oct 11 16:22:20 1989
***************
*** 43,50 ****
news)
case $os in
os3|newsos3)
! $machine=newsos3
! $os=""
;;
esac
;;
--- 43,50 ----
news)
case $os in
os3|newsos3)
! machine=newsos3
! os=""
;;
esac
;;
***************
*** 51,62 ****
sun2)
case $os in
os4|sunos4)
! $machine=sun2os4
! $os=""
;;
os2|sunos2)
! $machine=sun2os2
! $os=""
;;
esac
;;
--- 51,62 ----
sun2)
case $os in
os4|sunos4)
! machine=sun2os4
! os=""
;;
os2|sunos2)
! machine=sun2os2
! os=""
;;
esac
;;
***************
*** 63,74 ****
sun3)
case $os in
os4|sunos4)
! $machine=sun3os4
! $os=""
;;
os3|sunos3)
! $machine=sun3os3
! $os=""
;;
esac
;;
--- 63,74 ----
sun3)
case $os in
os4|sunos4)
! machine=sun3os4
! os=""
;;
os3|sunos3)
! machine=sun3os3
! os=""
;;
esac
;;
***************
*** 75,82 ****
sparc|sun4)
case $os in
os4|sunos4)
! $machine=sun4os4
! $os=""
;;
esac
;;
--- 75,82 ----
sparc|sun4)
case $os in
os4|sunos4)
! machine=sun4os4
! os=""
;;
esac
;;
2. TYPES is misspelled in readline/Makefile.
*** old/readline/Makefile Wed Oct 11 16:23:06 1989
--- new/readline/Makefile Wed Oct 11 16:22:22 1989
***************
*** 33,39 ****
DEBUG_FLAGS = -g
LDFLAGS = $(DEBUG_FLAGS)
! CFLAGS = $(DEBUG_FLAGS) $(TYPE) $(SYSV) -I.
# A good alternative is gcc -traditional.
#CC = gcc -traditional
--- 33,39 ----
DEBUG_FLAGS = -g
LDFLAGS = $(DEBUG_FLAGS)
! CFLAGS = $(DEBUG_FLAGS) $(TYPES) $(SYSV) -I.
# A good alternative is gcc -traditional.
#CC = gcc -traditional
3. There is no easy way to say "use -O uniformly when compiling GDB". The
following change to Makefile.dist exports DEBUG_FLAGS to readline/Makefile,
letting you change -g to -O in one spot.
*** old/Makefile.dist Wed Oct 11 16:23:04 1989
--- new/Makefile.dist Wed Oct 11 16:21:02 1989
***************
*** 40,47 ****
#define M_CFLAGS
#endif
! CFLAGS = -g -I. ${HAVE_VPRINTF_DEFINE} M_CFLAGS
! /* CFLAGS = -I. -g -pg ${HAVE_VPRINTF_DEFINE} */
/* None of the things in CFLAGS will do any harm, and on some systems
(e.g. SunOS4) it is important to use the M_CFLAGS. */
LDFLAGS = $(CFLAGS)
--- 40,49 ----
#define M_CFLAGS
#endif
! DEBUG_FLAGS = -g
! /* DEBUG_FLAGS = -g -pg */
! CFLAGS = ${DEBUG_FLAGS} -I. ${HAVE_VPRINTF_DEFINE} M_CFLAGS
! /* CFLAGS = -g -pg -I. ${HAVE_VPRINTF_DEFINE} */
/* None of the things in CFLAGS will do any harm, and on some systems
(e.g. SunOS4) it is important to use the M_CFLAGS. */
LDFLAGS = $(CFLAGS)
***************
*** 286,292 ****
mv expread.tab.o expread.o
readline/libreadline.a : force_update
! cd readline ; ${MAKE} "SYSV=${SYSV_DEFINE}" "CC=${CC}" libreadline.a
force_update :
--- 288,298 ----
mv expread.tab.o expread.o
readline/libreadline.a : force_update
! cd readline && exec ${MAKE} \
! "CC=${CC}" \
! "DEBUG_FLAGS=${DEBUG_FLAGS}" \
! "SYSV=${SYSV_DEFINE}" \
! libreadline.a
force_update :
Technical Details
Message-ID:
<8910112339.AA10899@rise.twinsun.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!twinsun.com!eggertShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!twinsun.com!eggert From: eggert@twinsun.com (Paul Eggert) Newsgroups: gnu.gdb.bug Subject: Minor problems when installing GDB 3.3 (SunOS 4.0.3) Message-ID: <8910112339.AA10899@rise.twinsun.com> Date: 11 Oct 89 23:39:32 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 177