[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#486255: buildd.emdebian.org: libusb fails to cross-build within a chroot



Package: general
Severity: normal

libusb cross builds successfully in a normal cross building environment
- possibly because libusb is installed as a cross-dependency of other
packages:

ii  libusb-0.1-4-arm-cross  2:0.1.12-11 userspace USB programming library (for cross-compiling)
ii  libusb-dev-arm-cross    2:0.1.12-11 userspace USB programming library development files (fo

This is despite using the 'X-Build-Cross-Libtool: yes' workaround.

This bug report is to track the reasons for the build failure, attempts
to fix this problem or to be reassigned to gnupg if it is shown to be a
Debian packaging problem or upstream bug.

Once buildd.emdebian.org is available as a pseudo-package, all these bug
reports will come to debian-embedded.

*** ../emdebian-tail.log
arm-linux-gnu-g++ -g -O2 -o .libs/descriptor_test descriptor_test.o  ../.libs/libusbpp.so
/usr/lib/gcc/arm-linux-gnu/4.3.1/../../../../arm-linux-gnu/bin/ld: warning: libusb-0.1.so.4, needed by ../.libs/libusbpp.so, not found (try using -rpath or -rpath-link)
.../.libs/libusbpp.so: undefined reference to `usb_find_busses'
.../.libs/libusbpp.so: undefined reference to `usb_find_devices'
.../.libs/libusbpp.so: undefined reference to `usb_get_busses'
.../.libs/libusbpp.so: undefined reference to `usb_init'
.../.libs/libusbpp.so: undefined reference to `usb_control_msg'
.../.libs/libusbpp.so: undefined reference to `usb_get_driver_np'
.../.libs/libusbpp.so: undefined reference to `usb_get_string'
.../.libs/libusbpp.so: undefined reference to `usb_open'
.../.libs/libusbpp.so: undefined reference to `usb_close'
collect2: ld returned 1 exit status
make[3]: *** [descriptor_test] Error 1
make[3]: Leaving directory `/trunk/l/libusb/trunk/libusb-0.1.12/obj-x86_64-linux-gnu/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/trunk/l/libusb/trunk/libusb-0.1.12/obj-x86_64-linux-gnu'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/trunk/l/libusb/trunk/libusb-0.1.12/obj-x86_64-linux-gnu'
make: *** [build-arch-deb-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash



Reply to: