Package: libffcall1-dev
Version: 1.10+cvs20100619-4
Severity: serious
Control: affects -1 src:mlpcap

mlpcap FTBFS on ppc64el:

checking for alloc_trampoline_r in -lcallback... no
configure: error: can't find callback library.
/usr/share/cdbs/1/class/ recipe for target 
'debian/stamp-autotools' failed
make: *** [debian/stamp-autotools] Error 1
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2

The root problem is:

(sid_ppc64el-dchroot)bunk@plummer:~/build$ cat test.c
char alloc_trampoline_r();
int main()
    return alloc_trampoline_r();
(sid_ppc64el-dchroot)bunk@plummer:~/build$ gcc -O2 -Wall test.c -lcallback
 undefined reference to `tramp_r'
collect2: error: ld returned 1 exit status

The same works on amd64.

autoconf uses a dummy (and in this case incorrect) prototype
in AC_CHECK_LIB checks. The bug is the link error, after
successful linking it is not expected that the resulting
binary built from this testcase works.

Reply via email to