[uClibc 0000748]: Compliation failure for arm due to sendfile/sendfile64 conflict
bugs at busybox.net
bugs at busybox.net
Mon Feb 20 23:08:32 UTC 2006
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=748
======================================================================
Reported By: jcwillia
Assigned To: uClibc
======================================================================
Project: uClibc
Issue ID: 748
Category: Architecture Specific
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 02-20-2006 07:43 PST
Last Modified: 02-20-2006 15:08 PST
======================================================================
Summary: Compliation failure for arm due to
sendfile/sendfile64 conflict
Description:
When using daily snapshot with buildroot, building for StrongARM (SA1100),
the file toolchain_build_arm/uClibc/libc/sysdeps/linux/common/sendfile.c
fails to compile with the following errors:
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:20: error: conflicting types for
'sendfile64'
./include/sys/sendfile.h:47: error: previous declaration of 'sendfile64'
was here
libc/sysdeps/linux/common/sendfile.c:21: error: conflicting types for
'sendfile64'
./include/sys/sendfile.h:47: error: previous declaration of 'sendfile64'
was here
libc/sysdeps/linux/common/sendfile.c:22: error: '__EI_sendfile64' aliased
to undefined symbol '__GI_sendfile64'
make[2]: *** [libc/sysdeps/linux/common/sendfile.os] Error 1
make[1]: *** [lib/libc.so.0] Error 2
======================================================================
----------------------------------------------------------------------
jcwillia - 02-20-06 10:46
----------------------------------------------------------------------
forgot to mention: using gcc-4.0.2
----------------------------------------------------------------------
jcwillia - 02-20-06 14:47
----------------------------------------------------------------------
Looks like mips and i386 kernel headers define sendfile64, while arm
headers do not (in an '#if 0' block).
----------------------------------------------------------------------
jcwillia - 02-20-06 15:08
----------------------------------------------------------------------
Problem was that I was using 2.4.31 kernel headers. Moved to 2.6.12 headers
and __NR_sendfile64 is defined, so the problematic block at the bottom of
sendfile.c is avoided.
Issue History
Date Modified Username Field Change
======================================================================
02-20-06 07:43 jcwillia New Issue
02-20-06 07:43 jcwillia Status new => assigned
02-20-06 07:43 jcwillia Assigned To => uClibc
02-20-06 07:43 jcwillia File Added: sendfile.i
02-20-06 09:52 jcwillia Issue Monitored: jcwillia
02-20-06 10:46 jcwillia Note Added: 0001124
02-20-06 11:22 vapier Summary Compliation failure for
arm => Compliation failure for arm due to sendfile/sendfile64 conflict
02-20-06 14:47 jcwillia Note Added: 0001132
02-20-06 15:08 jcwillia Note Added: 0001133
======================================================================
More information about the uClibc-cvs
mailing list