[Buildroot] error: conflicting types for 'sendfile64'

Paugam Luc luc.paugam at thomson.net
Wed Feb 1 16:02:52 UTC 2006


Hi all,

While compiling latest Buildroot sources with the following config:
	Target Architecture         = 2. arm (TARGET_arm)
	Target Processor Type       = 1. Generic Arm
(CONFIG_GENERIC_ARM)
	Target Processor Endianness = 1. Little Endian
(ARCH_LITTLE_ENDIAN)
	=> the other parameters set to default.

And the following packages:
	 12549917 2005-06-12 23:00 binutils-2.16.1.tar.bz2
	 27246826 2004-09-06 23:45 gcc-3.4.2.tar.bz2
	  4194659 2005-07-19 00:15 linux-libc-headers-2.4.31.tar.bz2
	  3557244 2006-02-01 09:14 uClibc-snapshot.tar.bz2

I got the following error when compiling uClibc into toolchain_build_arm
	[...]
	  CC libc/sysdeps/linux/common/sched_yield.os
	  CC libc/sysdeps/linux/common/select.os
	  CC libc/sysdeps/linux/common/sendfile.os
	libc/sysdeps/linux/common/sendfile.c:19: error: conflicting
types for 'sendfile64'
	./include/sys/sendfile.h:47: error: previous declaration of
'sendfile64' was here
	libc/sysdeps/linux/common/sendfile.c:19: error: conflicting
types for 'sendfile64'
	./include/sys/sendfile.h:47: error: previous declaration of
'sendfile64' was here
	make[2]: *** [libc/sysdeps/linux/common/sendfile.os] Error 1
	make[2]: Leaving directory
`/opt/lpm/arm/Generic/Linux_Distribution/Linux_uClibc/buildroot-20060123
/toolchain_build_arm/uClibc'
	make[1]: *** [lib/libc.so.0] Error 2
	make[1]: Leaving directory
`/opt/lpm/arm/Generic/Linux_Distribution/Linux_uClibc/buildroot-20060123
/toolchain_build_arm/uClibc'
	make: ***
[/opt/lpm/arm/Generic/Linux_Distribution/Linux_uClibc/buildroot-20060123
/toolchain_build_arm/uClibc/lib/libc.a] Error 2

Did I do something wrong?
Or do both the 2 above files redefine 'sendfile64'?

Regards - Luc




More information about the uClibc mailing list