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

mlpcap FTBFS on ppc64el:

https://buildd.debian.org/status/fetch.php?pkg=mlpcap&arch=ppc64el&ver=0.9-17&stamp=1502205676&raw=0

...
checking for alloc_trampoline_r in -lcallback... no
configure: error: can't find callback library.
/usr/share/cdbs/1/class/autotools.mk:44: 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
/usr/lib/gcc/powerpc64le-linux-gnu/7/../../../powerpc64le-linux-gnu/libcallback.so:
 undefined reference to `tramp_r'
collect2: error: ld returned 1 exit status
(sid_ppc64el-dchroot)bunk@plummer:~/build$


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