[uClibc 0000748]: Compliation failure for arm due to sendfile/sendfile64 conflict

bugs at busybox.net bugs at busybox.net
Tue Feb 21 23:37:26 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-21-2006 15:37 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. 

---------------------------------------------------------------------- 
 psm - 02-20-06 23:11  
---------------------------------------------------------------------- 
could you check current svn, I hope I solved it, thx for the proper report 

---------------------------------------------------------------------- 
 jcwillia - 02-21-06 14:09  
---------------------------------------------------------------------- 
I updated to latest svn:

[williams at foo buildroot]$ svn update
U  toolchain/Config.in
U  toolchain/gcc/Config.in
U  docs/download.html
Updated to revision 14166.

rebuilt with 2.4.31 kernel headers. no change. 

Are you trying to automatically detect the problem and correct it in the
Config.in? Wonder if it wouldn't be easier to undef __UCLIBC_HAS_LFS__
(but I don't know if no sendfile64 means no large file support).

 

---------------------------------------------------------------------- 
 psm - 02-21-06 15:33  
---------------------------------------------------------------------- 
you need uClibc svn, sendfile.c was changed 

---------------------------------------------------------------------- 
 jcwillia - 02-21-06 15:37  
---------------------------------------------------------------------- 
doh! sorry...

I'll fetch the svn tree, tar it up and feed it to buildroot 

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                          
02-20-06 15:10  jcwillia       Issue End Monitor: jcwillia                    
02-20-06 23:11  psm            Note Added: 0001134                          
02-21-06 14:09  jcwillia       Note Added: 0001139                          
02-21-06 14:09  jcwillia       Note Edited: 0001139                         
02-21-06 15:33  psm            Note Added: 0001140                          
02-21-06 15:37  jcwillia       Note Added: 0001141                          
======================================================================




More information about the uClibc-cvs mailing list