Buildroot: conflicting types for 'sendfile64'

Peter S. Mazinger ps.m at gmx.net
Mon Jan 30 17:22:22 UTC 2006


On Mon, 30 Jan 2006, Michael Hunold wrote:

> Hi,
> 
> Peter S. Mazinger wrote:
> > I have done an update to svn, please try that first, if not....
> 
> I updated svn, created a uClibc snapshot from that and ran buildroot again.

update only include/sys/sendfile.h and 
libc/sysdeps/linux/common/sendfile.c

> 
> ---------------------schnipp-----------------------------------
> make[2]: Entering directory 
> `/mnt/teemhu/devel/buildroot/buildroot/toolchain_build_mips_nofpu/uClibc'
>    CC ldso/ldso/ldso.oS
> In file included from ./ldso/include/ldso.h:34,
>                   from ldso/ldso/ldso.c:33:
> ./ldso/include/dl-syscall.h: In function `_dl_exit':
> ./ldso/include/dl-syscall.h:69: error: syntax error before "asm"

no idea what happened here, let's concentrate on sendfile64() for now

> This results in:
> ---------------------schnipp-----------------------------------
>    CC libc/sysdeps/linux/common/sendfile.os
> In file included from libc/sysdeps/linux/common/sendfile.c:12:
> ./include/sys/sendfile.h:34:2: warning: #warning "__USE_FILE_OFFSET64 
> not defined"
> ./include/sys/sendfile.h:49:2: warning: #warning "__USE_LARGEFILE64 defined"
> libc/sysdeps/linux/common/sendfile.c:18: error: conflicting types for 
> 'sendfile64'
> ./include/sys/sendfile.h:51: error: previous declaration of 'sendfile64' 
> was here
> libc/sysdeps/linux/common/sendfile.c:18: error: conflicting types for 
> 'sendfile64'
> ./include/sys/sendfile.h:51: error: previous declaration of 'sendfile64' 
> was here
> ---------------------schnipp-----------------------------------
> 
>  > 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
> 
> Seems like __USE_FILE_OFFSET64 is *not* defined and __USE_LARGEFILE64 is 
> defined.

do the mini-update above, rebuild sendfile.c, I hope I have catched 
exactly that case

Thanks, Peter

-- 
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