Buildroot: conflicting types for 'sendfile64'

Peter S. Mazinger ps.m at gmx.net
Mon Jan 30 18:40:10 UTC 2006


On Mon, 30 Jan 2006, Michael Hunold wrote:

[...]
> 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.
> 
> Does this make sense?

no, if you disabled LFS both __USE_FILE_OFFSET64 and __USE_LARGEFILE64 
should be disabled by features.h.

I wonder how you get to line 18 in sendfile.c if you LFS is disabled.

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