[uClibc]Recent updates to uClibc, compilation errors

michaels at jungo.com michaels at jungo.com
Mon Feb 26 11:50:05 UTC 2001


After making "cvs up" this morning, following compilation errors started
to appear:
-------------------------
gcc  -Wall -Os -fno-builtin -nostdinc  -Dlinux -D__linux__
-I../../../include -I/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/include
-I. -D__LIBC__   -DNDEBUG  -c statfix.c -o statfix.o
In file included from ../../../include/sys/time.h:33,
                 from ../../../include/time.h:27,
                 from ../../../include/sys/stat.h:32,
                 from statfix.h:15,
                 from statfix.c:27:
../../../include/sys/select.h:51: conflicting types for `fd_set'
../../../include/linux/types.h:9: previous declaration of `fd_set'
In file included from statfix.h:15,
                 from statfix.c:27:
../../../include/sys/stat.h:37: conflicting types for `dev_t'
../../../include/linux/types.h:10: previous declaration of `dev_t'
../../../include/sys/stat.h:42: conflicting types for `gid_t'
../../../include/linux/types.h:17: previous declaration of `gid_t'
../../../include/sys/stat.h:48: redefinition of `ino_t'
../../../include/linux/types.h:11: `ino_t' previously declared here
../../../include/sys/stat.h:56: redefinition of `mode_t'
../../../include/linux/types.h:12: `mode_t' previously declared here
../../../include/sys/stat.h:61: conflicting types for `nlink_t'
../../../include/linux/types.h:13: previous declaration of `nlink_t'
../../../include/sys/stat.h:67: redefinition of `off_t'
../../../include/linux/types.h:14: `off_t' previously declared here
../../../include/sys/stat.h:75: conflicting types for `uid_t'
../../../include/linux/types.h:16: previous declaration of `uid_t'
make[3]: *** [statfix.o] Error 1
make[3]: Leaving directory
`/home/michaels/lineo.cvs/uClibc.orig/sysdeps/linux/common'
make[2]: *** [_dir_common] Error 2
make[2]: Leaving directory
`/home/michaels/lineo.cvs/uClibc.orig/sysdeps/linux'
make[1]: *** [_dir_linux] Error 2
make[1]: Leaving directory
`/home/michaels/lineo.cvs/uClibc.orig/sysdeps'
make: *** [_dir_sysdeps] Error 2
----------------------

Probably, including both <stat.h> from kernel and libc is not such a
good idea after all?

Sincerely yours,
Michael Shmulevich
______________________________________
Software Developer
Jungo - R&D 
email: michaels at jungo.com
web: http://www.jungo.com
Phone: 1-877-514-0537(USA)  +972-9-8859365(Worldwide) ext. 233
Fax:   1-877-514-0538(USA)  +972-9-8859366(Worldwide)





More information about the uClibc mailing list