Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2007 14:57:22 +0400
From:      Yuri Pankov <yuri.pankov@gmail.com>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: libusb failed
Message-ID:  <20070531105722.GA15885@darklight.abyss>
In-Reply-To: <20070531.013040.-135505334.imp@bsdimp.com>
References:  <20070531.013040.-135505334.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


HTH,
Yuri



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