Package: libaio Version: 0.3.106 Severity: normal Tags: patch Yesterday I was working on adding libaio 0.3.106 into OpenEmbedded [1] repository. I took 00_arches.patch from Debian to get it build for ARM (cross compiled) and it builds. But when I tried to build anything with libaio I got error:
undefined reference to '__io_getevents_0_4' After some tweaking I finally got information that io_syscall5 for ARM need fixing, so I did it and now I'm able to link binaries with libaio. I did not yet tested it on ARM device but want to share as this is a way which I prefer to follow (giving back fixes for stuff which I use). 1. http://www.openembedded.org/ ============================================================ --- packages/libaio/libaio-0.3.106/00_arches.patch cb7cae621aa8f597dedbb89fffc315c59c8dea58 +++ packages/libaio/libaio-0.3.106/00_arches.patch bf9f27ebabc12426c353e5fa1690f96a38423464 @@ -751,7 +751,7 @@ +} + +#define io_syscall5(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5) \ -+type ffname(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) {\ ++type fname(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) {\ + __SYS_REG(sname) \ + register long __r0 __asm__("r0") = (long)arg1; \ + register long __r1 __asm__("r1") = (long)arg2; \ ============================================================ -- System Information: Debian Release: unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-beyond3 Locale: LANG=pl_PL.UTF8, LC_CTYPE=pl_PL.UTF8 (charmap=UTF-8) (ignored: LC_ALL set to pl_PL.UTF8) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]