Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2007 09:35:37 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        yuri.pankov@gmail.com
Cc:        freebsd-ports@freebsd.org
Subject:   Re: libusb failed
Message-ID:  <20070531.093537.1387162158.imp@bsdimp.com>
In-Reply-To: <20070531105722.GA15885@darklight.abyss>
References:  <20070531.013040.-135505334.imp@bsdimp.com> <20070531105722.GA15885@darklight.abyss>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20070531105722.GA15885@darklight.abyss>
            Yuri Pankov <yuri.pankov@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070531.093537.1387162158.imp>