Article View: gnu.gdb.bug
Article #8881gdb 4.6 doesn't build on vax (aka dec-vax-ultrix42)
From: David Taylor
Date: Wed, 15 Jul 1992 19:56
Date: Wed, 15 Jul 1992 19:56
29 lines
1682 bytes
1682 bytes
On Ultrix 4.2, the header files are mostly ANSI compliant, and while the vendor cc is not an ANSI C compiler, the compiler does recognize void *, const, and volatile. E.g., the header files declare memcpy as: #ifdef __STDC__ extern void *memcpy( void *__s1, const void *__s2, size_t __n ); #else extern void *memcpy(); #endif This causes problems with GDB when compiling with cc because gdb both includes the header file and declares the function itself... however, since __STDC__ isn't defined (afterall, cc isn't an ANSI compiler), gdb declares memcpy as: extern char *memcpy(); There are other functions besides memcpy that it both declares wrong and includes headers that declare it correctly... ...and each of these results in a compile time error. If someone would like a list of the functions it complains about, I can (re)generate such a list. It would be nice if the decision about whether to declare things correctly and whether to use prototypes were independent. And if configure were to then set things up appropriately... David
Technical Details
Message-ID:
<9207151956.AA00916@thokk.think.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!think.com!taylorShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,a27455dfead5629c,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1992-07-15 16:55:40 PST Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!think.com!taylor From: taylor@think.com (David Taylor) Subject: gdb 4.6 doesn't build on vax (aka dec-vax-ultrix42) Message-ID: <9207151956.AA00916@thokk.think.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 15 Jul 1992 19:56:47 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 30