libusb failed

M. Warner Losh imp at bsdimp.com
Thu May 31 15:37:56 UTC 2007


In message: <20070531105722.GA15885 at darklight.abyss>
            Yuri Pankov <yuri.pankov at gmail.com> writes:
: On Thu, May 31, 2007 at 01:30:40AM -0600, M. Warner Losh wrote:
: > Maybe this is old news, but libusb failed for me:
: > 
: > (cd .libs && rm -f libusb.la && ln -s ../libusb.la libusb.la)
: > if /bin/sh /usr/local/bin/libtool --mode=compile c++ -DHAVE_CONFIG_H    -I.    -O2 -fno-strict-aliasing -pipe -MT usbpp.lo -MD -MP -MF ".deps/usbpp.Tpo" -c -o usbpp.lo usbpp.cpp;  then mv -f ".deps/usbpp.Tpo" ".deps/usbpp.Plo"; else rm -f ".deps/usbpp.Tpo"; exit 1; fi
: >  c++ -DHAVE_CONFIG_H -I. -O2 -fno-strict-aliasing -pipe -MT usbpp.lo -MD -MP -MF .deps/usbpp.Tpo -c usbpp.cpp  -fPIC -DPIC -o .libs/usbpp.o
: >  c++ -DHAVE_CONFIG_H -I. -O2 -fno-strict-aliasing -pipe -MT usbpp.lo -MD -MP -MF .deps/usbpp.Tpo -c usbpp.cpp -o usbpp.o >/dev/null 2>&1
: > /bin/sh /usr/local/bin/libtool --mode=link c++  -O2 -fno-strict-aliasing -pipe    -o libusbpp.la -rpath /usr/local/lib -version-info 8:4:4  -release 0.1  -export-dynamic   -lusb  usbpp.lo  
: > c++ -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o  .libs/usbpp.o  -Wl,--rpath -Wl,/tmp/ports/devel/libusb/work/libusb-0.1.12/.libs -Wl,--rpath -Wl,/usr/local/lib /tmp/ports/devel/libusb/work/libusb-0.1.12/.libs/libusb.so -L/usr/lib -lstdc++ -lm -lgcc_pic /usr/lib/crtendS.o /usr/lib/crtn.o  -Wl,-soname -Wl,libusbpp-0.1.so.8 -o .libs/libusbpp-0.1.so.8
: > /usr/bin/ld: cannot find -lgcc_pic
: > *** Error code 1
: > 
: > Stop in /tmp/ports/devel/libusb/work/libusb-0.1.12.
: > *** Error code 1
: > 
: > Stop in /tmp/ports/devel/libusb/work/libusb-0.1.12.
: > *** Error code 1
: > 
: > Stop in /tmp/ports/devel/libusb/work/libusb-0.1.12.
: > *** Error code 1
: > 
: > Stop in /tmp/ports/devel/libusb.
: > ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.60394.37 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=libusb-0.1.12 UPGRADE_PORT_VER=0.1.12 make
: > ** Fix the problem and try again.
: > 
: > Any ideas?
: > 
: > Warner
: 
: Try reinstalling libtool.

The libtool I had was the most current.  Yet, when I removed the
symlink I'd kludged in and rebuild/installed libtool, libusb now
builds.  Thanks for the tip.

Warner



More information about the freebsd-ports mailing list