gcc-3.3/RH9 build error

J. Johnston jjohnstn@redhat.com
Tue Jun 17 08:00:00 GMT 2003


P.T. Schneider wrote:
> 
>    I'm not sure if anyone else has seen this; I'm compiling 
> newlib-1.11.0 with gcc-3.3 under RH9, I get error_t redefinition errors 
> while linking .libs/argp-eexst.o
> 
>    If it seems like a bone fide error, I'll investigate. If I just need 
> a forehead slap, let me know.
> 

No violence required.  I saw this recently and have already fixed it in the current
sources.  If you look at the latest libc/include/errno.h and libc/sys/linux/include/argp.h
you will see protection flags for error_t.

Some clean-up work needs to be done on the linux header files as there are combinations
that can cause warnings/etc..

-- Jeff J.


>    Details:
> 
> make[6]: Entering directory 
> `/usr/local/src/newlib-1.11.0-build/i686-pc-linux-gnu/newlib/libc/sys/linux/argp' 
> 
> /bin/sh ../libtool --mode=compile gcc  
> -I/usr/local/src/newlib-1.11.0-build/i686-pc-linux-gnu/newlib/targ-include 
> -I/usr/local/src/newlib-1.11.0/newlib/./libc/include 
> -DPACKAGE=\"newlib\" -DVERSION=\"1.11.0\"  -I. 
> -I/usr/local/src/newlib-1.11.0/newlib/libc/sys/linux/argp  
> -I/usr/local/src/newlib-1.11.0/newlib/libc/sys/linux/argp/../include -O2 
> -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -D_LOOSE_KERNEL_NAMES 
> -DHAVE_FCNTL -DWANT_IO_POS_ARGS -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION 
> -DMISSING_SYSCALL_NAMES -fno-builtin      -O2 -g -O2 -c 
> /usr/local/src/newlib-1.11.0/newlib/libc/sys/linux/argp/argp-eexst.c
> gcc 
> -I/usr/local/src/newlib-1.11.0-build/i686-pc-linux-gnu/newlib/targ-include 
> -I/usr/local/src/newlib-1.11.0/newlib/./libc/include 
> -DPACKAGE=\"newlib\" -DVERSION=\"1.11.0\" -I. 
> -I/usr/local/src/newlib-1.11.0/newlib/libc/sys/linux/argp 
> -I/usr/local/src/newlib-1.11.0/newlib/libc/sys/linux/argp/../include -O2 
> -DMB_CAPABLE -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS -D_LOOSE_KERNEL_NAMES 
> -DHAVE_FCNTL -DWANT_IO_POS_ARGS -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION 
> -DMISSING_SYSCALL_NAMES -fno-builtin -O2 -g -O2 -c 
> /usr/local/src/newlib-1.11.0/newlib/libc/sys/linux/argp/argp-eexst.c  
> -fPIC -DPIC -o .libs/argp-eexst.o
> In file included from 
> /usr/local/src/newlib-1.11.0/newlib/libc/include/stdio.h:46,
>                 from 
> /usr/local/src/newlib-1.11.0-build/i686-pc-linux-gnu/newlib/targ-include/argp.h:24, 
> 
>                 from 
> /usr/local/src/newlib-1.11.0/newlib/libc/sys/linux/argp/argp-eexst.c:27:
> /usr/local/src/newlib-1.11.0-build/i686-pc-linux-gnu/newlib/targ-include/sys/types.h:142: 
> warning: redefinition of `off_t'
> /usr/include/linux/types.h:14: warning: `off_t' previously declared here
> In file included from 
> /usr/local/src/newlib-1.11.0/newlib/libc/sys/linux/argp/argp-eexst.c:27:
> /usr/local/src/newlib-1.11.0-build/i686-pc-linux-gnu/newlib/targ-include/argp.h:39: 
> error: redefinition of `error_t'
> /usr/local/src/newlib-1.11.0/newlib/libc/include/errno.h:4: error: 
> `error_t' previously declared here
> make[6]: *** [argp-eexst.lo] Error 1
> 
> 




More information about the Newlib mailing list