This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I backed up /usr/include/varargs.h and /usr/include/sys/varargs.h so that gcc only finds /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.3/include/varargs.h. I even added the "-v" option to gcc to spit out more detailed output. Here's the results (test compilation of db-3.3.4): gcc -v -c -I. -I../dist/../include -I../dist/../include_auto -D_REENTRANT -O6 ../dist/../clib/snprintf.c Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.3/specs gcc version 2.95.3 20010315 (release) /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.3/cpp0 -lang-c -v -I. -I../dist/../include -I../dist/../include_auto -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__OPTIMIZE__ -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) -D_REENTRANT ../dist/../clib/snprintf.c /var/tmp/ccplSWH6.i GNU CPP version 2.95.3 20010315 (release) (sparc) #include "..." search starts here: #include <...> search starts here: . ../dist/../include ../dist/../include_auto /usr/include /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.3/../../../../sparc-sun-solaris2.5.1/include /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.3/include /usr/include End of search list. The following default directories have been omitted from the search path: /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.3/../../../../include/g++-3 End of omitted list. /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.3/cc1 /var/tmp/ccplSWH6.i -quiet -dumpbase snprintf.c -O6 -version -o /var/tmp/ccM64gba.s GNU C version 2.95.3 20010315 (release) (sparc-sun-solaris2.5.1) compiled by GNU C version 2.95.3 20010315 (release). In file included from ../dist/../clib/snprintf.c:15: /usr/include/sys/types.h:34: warning: empty declaration /usr/include/sys/types.h:170: warning: empty declaration /usr/include/sys/types.h:181: warning: empty declaration /usr/include/sys/types.h:185: warning: empty declaration ../dist/../clib/snprintf.c: In function `__db_Csnprintf': ../dist/../clib/snprintf.c:47: `__builtin_va_alist' undeclared (first use in this function) ../dist/../clib/snprintf.c:47: (Each undeclared identifier is reported only once ../dist/../clib/snprintf.c:47: for each function it appears in.) make: *** [snprintf.o] Error 1 Same problem. - Wally Winzer Jr. Carlo Wood wrote: > On Sat, May 26, 2001 at 02:40:46AM -0700, Auteria Wally Winzer Jr. wrote: > > I finally got gcc-2.95.3 compiled on Solaris-2.5.1 (fully-patched). > > When trying to compile sendmail and BerkeleyDB I get errors from > > snprintf(). Here's the errors: > > > > sendmail-8.11.3: > > > > gcc -O6 -I. -I../../sendmail -I../../include -I/usr/local/include -DNEWDB > > -DNIS -DNISPLUS -DMAP_REGEX -DAUTO_NIS_ALIASES -DTCPWRAPPERS -DSOLARIS=20501 > > -DNOT_SENDMAIL -c -o snprintf.o snprintf.c > > snprintf.c: In function `snprintf': > > snprintf.c:70: `__builtin_va_alist' undeclared (first use in this function) > > Is sendmail accidently including varargs.h? Or is it using va_list without > including <stdarg.h>? The best way to check this is by editting those files > (as root) and adding a line #warning "We get here!" to them (or #error > in the case of <varargs.h> to the top. Be sure to use the correct header > files, they should be in a directory like <prefix>/lib/gcc-lib/<triplet>/2.95.3/include/ > > -- > Carlo Wood <carlo@alinoe.com>
S/MIME Cryptographic Signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |