[uClibc]Can't compile uclibc-0.9.17 on my RH7.3

Erik Andersen andersen at codepoet.org
Mon Feb 3 22:00:21 UTC 2003


On Mon Feb 03, 2003 at 09:48:45PM +0100, Edo-Martijn Janssen wrote:
> Hello
> 
> I am using uclibc-0.9.15 for my single floppy router.
> Today I tried to upgrade to 0.9.17, but I am having trouble compiling it.
> I use I standard Redhat 7.3 with 2.2.23 kernel header files.  It compiles 
> 0.9.15 without any trouble but 0.9.16 and 0.9.17 stop on the follwing error:
> 
> gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  
> -mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os     
> -fno-builtin -nostdinc -D_LIBC -I../../../../include -I. 
> -I/usr/lib/gcc-lib/i386-redhat-linux/2.96/include -DNDEBUG -fPIC 
> -DL___syscall_stat syscalls.c -c -o __syscall_stat.o
> syscalls.c:986: conflicting types for `stat64'
> ../../../../include/sys/stat.h:220: previous declaration of `stat64'
> make[4]: *** [__syscall_stat.o] Error 1
> make[4]: Leaving directory 
> `/home/tinux/uClibc-0.9.17/libc/sysdeps/linux/common'
> make[3]: *** [_dir_common] Error 2
> make[3]: Leaving directory `/home/tinux/uClibc-0.9.17/libc/sysdeps/linux'
> make[2]: *** [_dir_linux] Error 2
> make[2]: Leaving directory `/home/tinux/uClibc-0.9.17/libc/sysdeps'
> make[1]: *** [_dir_sysdeps] Error 2
> make[1]: Leaving directory `/home/tinux/uClibc-0.9.17/libc'
> make: *** [_dir_libc] Error 2
> 
> 
> The only thing I can think of is that I misconfigured something with the new 
> config system used from 0.9.16 and up?
> What am I missing?

The easiest and most obvious fix is to disable UCLIBC_HAS_LFS in
your .config file, since 2.2.x kernels do not have large file
support.  But I have gone ahead and added some fixes so it should
not compile on 2.2.x kernels even when you have decided to enable
the UCLIBC_HAS_LFS option.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list