[Buildroot] [buildroot 0003394]: compilation problem : __NR_socketcall, __NR_ipc undefined...

bugs at busybox.net bugs at busybox.net
Mon Oct 13 10:04:01 UTC 2008


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=3394 
====================================================================== 
Reported By:                rk_appan
Assigned To:                buildroot
====================================================================== 
Project:                    buildroot
Issue ID:                   3394
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             05-22-2008 02:04 PDT
Last Modified:              10-13-2008 03:04 PDT
====================================================================== 
Summary:                    compilation problem : __NR_socketcall, __NR_ipc
undefined...
Description: 
I am building uClibc(0.9.29), when i enable the strace for the target, i am
getting the following errors.  target is arm926t with EABI support.

please provide me inputs as how to get out of this problem..

syscall.c: In function 'get_scno':
syscall.c:1051: warning: passing argument 4 of 'ptrace' makes integer from
pointer without a cast
syscall.c:1080: warning: passing argument 4 of 'ptrace' makes integer from
pointer without a cast
syscall.c: In function 'syscall_fixup':
syscall.c:1350: warning: unused variable 'pid'
syscall.c: In function 'syscall_enter':
syscall.c:1928: warning: unused variable 'pid'
syscall.c: In function 'trace_syscall':
syscall.c:2408: error: '__NR_socketcall' undeclared (first use in this
function)
syscall.c:2408: error: (Each undeclared identifier is reported only once
syscall.c:2408: error: for each function it appears in.)
syscall.c:2412: error: '__NR_ipc' undeclared (first use in this function)
make[2]: *** [syscall.o] Error 1
make[2]: Leaving directory `/home/kans/buildroot/build_arm/strace-4.5.15'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/kans/buildroot/build_arm/strace-4.5.15'
make: *** [/home/kans/buildroot/build_arm/strace-4.5.15/strace] Error 2

====================================================================== 

---------------------------------------------------------------------- 
 tklas - 06-16-08 03:47  
---------------------------------------------------------------------- 
I had the same problem. You can try my workaround patch attached above.
Copy this file to buildroot/package/strace/ and rebuild. 

---------------------------------------------------------------------- 
 tpetazzoni - 10-13-08 03:04  
---------------------------------------------------------------------- 
I confirm that the problem still exists and that the patch fixes the
issue.

Is it possible to integrate this patch in Buildroot SVN ? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-22-08 02:04  rk_appan       New Issue                                    
05-22-08 02:04  rk_appan       Status                   new => assigned     
05-22-08 02:04  rk_appan       Assigned To               => buildroot       
06-16-08 03:45  tklas          File Added:
strace-armeabi_undefined_syscalls.patch                    
06-16-08 03:47  tklas          Note Added: 0008284                          
10-13-08 03:04  tpetazzoni     Note Added: 0013414                          
======================================================================




More information about the buildroot mailing list