Buildroot: conflicting types for 'sendfile64'

Peter S. Mazinger ps.m at gmx.net
Mon Jan 30 15:19:51 UTC 2006


On Mon, 30 Jan 2006, Michael Hunold wrote:

> Hello,
> 
> On 27.01.2006 22:32 Peter S. Mazinger said the following:
> > On Fri, 27 Jan 2006, Gilles Casse wrote:
> 
> >>Using buildroot, make finishes with the error message "conflicting types for
> >>'sendfile64'" [1]
> >>The support for large file was disabled in the buildroot config; the error still
> >>remains though.
> >>It seems that __USE_LARGEFILE64 is still defined.
> 
> > I have disabled LFS and made current svn build on x86 (w/ one of my 
> > configs, can't promise that all possible options will do)
> 
> > I couldn't reproduce your specific problem (though I haven't used 
> > buildroot)

I have done an update to svn, please try that first, if not....

I need your help for this because I can't reproduce.

the include/sys/{sendfile.h,cdefs.h}, 
libc/sysdeps/linux/common/{sendfile.c,syscalls.h} matter.

sendfile.c includes syscalls.h, that disables __USE_FILE_OFFSET64 if it is 
defined. after this it includes sys/sendfile.h that should catch the first 
prototype for sendfile()

could you please add #warning here-nr(nr=1....) or something else that you 
can identify what part you include from sendfile.h?

I assume that for some reason when you get to include sendfile.h, you have 
__USE_FILE_OFFSET64 defined, please find the place where it gets defined

Thanks, Peter 
> Same problem here using buildroot:
> 
> ------------------------schnipp----------------------------------
> make[2]: Entering directory
> `/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips_nofpu/uClibc'
>   CC libc/sysdeps/linux/common/sendfile.os
> libc/sysdeps/linux/common/sendfile.c:18: error: conflicting types for
> 'sendfile64'
> ./include/sys/sendfile.h:47: error: previous declaration of 'sendfile64'
> was here
> libc/sysdeps/linux/common/sendfile.c:18: 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
> `/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips_nofpu/uClibc'
> make[1]: *** [lib/libc.so.0] Fehler 2
> make[1]: Leaving directory
> `/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips_nofpu/uClibc'
> make: ***
> [/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips_nofpu/uClibc/lib/libc.a]
> Fehler 2
> ------------------------schnipp----------------------------------
> 
> BR2_mips=y
> BR2_ENDIAN="BIG"
> BR2_KERNEL_HEADERS_2_4_25=y
> BR2_PTHREADS_OLD=y
> BR2_BINUTILS_VERSION_2_16_1=y
> BR2_GCC_VERSION_3_4_3=y
> BR2_SOFT_FLOAT=y
> BR2_UCLIBC_VERSION_SNAPSHOT=y
> BR2_PACKAGE_BUSYBOX_SNAPSHOT=y
> 
> I must admit that I replaced the 2.4.25 header package with a custom
> 2.4.18 header package. I don't know if this matters.
> 
> > Peter
> 
> CU
> Michael.
> 
> 

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list