Article View: gnu.gcc.help
Article #53364Help Building GDB for Interactive Unix 2.2 (SYSV3.2)
From: Adnan Yaqub
Date: Thu, 13 Feb 1992 16:14
Date: Thu, 13 Feb 1992 16:14
49 lines
2679 bytes
2679 bytes
I am having trouble building GDB 4.1 on a 386 running Interactive Unix
2.2 (a SYSV3.2 variant). I ran into these problems (and probably
others which I have forgotten):
1) The Makefile tried to use cc which failed right away so I switch it
to gcc.
2) gcc defines __STDC__ which causes <sys/stat.h> to complain about
not knowing about the typedef mode_t. (Will -DPOSIX_SOURCE fix
this?)
3) We don't know about tchars. (I has to define TIOCGETC_BROKEN.)
4) One file needed <sys/types.h>
5) One file used O_NDELAY instead of O_NONBLOCK.
6) One file referred to u.u_fpstate. We have u.u_fps.u_fpstate.
7) One file didn't include <sys/signal.h> but included <sys/user.h>
thus MAXSIG was undefined.
8) One file thought that I didn't have strstr and tried to include one
which conflicted with the definition on strstr in a system include
file.
9) Some files included memory.h and strings.h. The definition of the
memory functions in memory.h conflicted with the definition in
strings.h.
10) sh complained about the define "-Dgetpagesize()=4096" in the
Makefile. I quoted out the parens and then gcc complained about
the define.
11) (And this is where I am stuck.) I got several undefined symbols
when I tried to link. Specifically:
undefined first referenced
symbol in file
fileno main.o
putc breakpoint.o
strstr source.o
getc source.o
have_inferior_p i386-xdep.o
corechan i386-xdep.o
ieee_double_to_extended i387-tdep.o
getpagesize gmalloc.o
sigsetmask ./../readline/libreadline.a
I can find putc and getc in libcposix.a. I may be able to find
strstr. I am confused about the others.
Has anyone got gdb to compile under Interactive Unix 2.2? Should I
try -traditional switch on gcc? Any other ideas?
Thanks.
--
Adnan Yaqub (adnan@sgtech.uucp)
Star Gate Technologies
29300 Aurora Rd, Solon, OH, 44139, USA, +1 216 349 1860
Technical Details
Message-ID:
<ADNAN.92Feb13161408@sgtech.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!icd.ab.com!sgtech!adnanShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,2877fe968134012,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-02-13 13:37:59 PST Path: arc1-ca.pugleaf.net!sparky!uunet!icd.ab.com!sgtech!adnan From: adnan@sgtech.UUCP (Adnan Yaqub) Newsgroups: gnu.gcc.help Subject: Help Building GDB for Interactive Unix 2.2 (SYSV3.2) Message-ID: <ADNAN.92Feb13161408@sgtech.UUCP> Date: 13 Feb 92 16:14:08 GMT Sender: adnan@sgtech.UUCP Distribution: gnu Organization: Star Gate Technologies, Inc. Lines: 50