On Sat, 12 Jul 2003, Marc Aurele La France wrote:

> In my book, only redeclaration warnings due to [g]libc are "redundant".
> Is there anything else here you're omitting?  It certainly seems like it.

Most are glibc, but looking again I did omit one significant one.
Here is the full log for x11trans.o:

gcc -c -O2 -fno-strength-reduce  -ansi -pedantic -Wall -Wpointer-arith
 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
 -Wredundant-decls -Wnested-externs -Wundef
    -I../.. -I../../exports/include   -Dlinux -D__i386__
 -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE
 -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE   -DFUNCPROTO=15
 -DNARROWPROTO -DXTHREADS  -D_REENTRANT -DXUSE_MTSAFE_API   
 -DMALLOC_0_RETURNS_NULL  -DHAS_SNPRINTF -DLIBX11 -DPOSTLOCALELIBDIR=\"lib\" 
 -I../../lib/xtrans -DUNIXCONN -DTCPCONN -DHAS_STICKY_DIR_BIT
 -DHAS_FCHOWN -DIPv6  -DX11_t -DTRANS_CLIENT    -fPIC x11trans.c

In file included from ../../exports/include/X11/Xos.h:154,
                 from ../../lib/xtrans/Xtrans.h:58,
                 from ../../lib/xtrans/Xtransint.h:87,
                 from x11trans.c:68:
/usr/include/unistd.h:956: warning: redundant redeclaration of `setkey' in same scope
/usr/include/stdlib.h:738: warning: previous declaration of `setkey'
In file included from ../../lib/xtrans/Xtransint.h:87,
                 from x11trans.c:68:
../../lib/xtrans/Xtrans.h:462: warning: redundant redeclaration of 
`_X11TransFreeConnInfo' in same scope
../../lib/xtrans/Xtrans.h:267: warning: previous declaration of `_X11TransFreeConnInfo'
In file included from ../../lib/xtrans/Xtransint.h:90,
                 from x11trans.c:68:
/usr/include/stdio.h:126: warning: redundant redeclaration of `rename' in same scope
/usr/include/unistd.h:982: warning: previous declaration of `rename'
/usr/include/stdio.h:588: warning: redundant redeclaration of `ctermid' in same scope
/usr/include/unistd.h:975: warning: previous declaration of `ctermid'
/usr/include/stdio.h:594: warning: redundant redeclaration of `cuserid' in same scope
/usr/include/unistd.h:979: warning: previous declaration of `cuserid'
In file included from ../../exports/include/X11/Xthreads.h:230,
                 from ../../lib/xtrans/Xtranssock.c:57,
                 from x11trans.c:80:
/usr/include/pthread.h:539: warning: redundant redeclaration of `pthread_atfork' in 
same scope
/usr/include/unistd.h:1001: warning: previous declaration of `pthread_atfork'
../../lib/xtrans/Xtranssock.c: In function `_X11TransSocketINETGetAddr':
In file included from x11trans.c:80:
../../lib/xtrans/Xtranssock.c:338: structure has no member named `ss_family'
../../lib/xtrans/Xtranssock.c: At top level:
../../lib/xtrans/Xtranssock.c:1315: `MAXHOSTNAMELEN' undeclared here (not in a 
function)
make[4]: *** [x11trans.o] Error 1


_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to