I try to emerge libnjb (this is for gnomad2), but I get this error: checking for usb_control_msg in -lusb... no configure: error: I can't find the libusb libraries on your system. You may need to set the LDFLAGS environment variable to include the search path where you have libusb installed before running configure (e.g. setenv LDFLAGS=-L/usr/local/lib) !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/libnjb-2.0_pre20050208/work/libnjb-2.0/config.log !!! ERROR: media-libs/libnjb-2.0_pre20050208 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge libnjb 2. 3. Actual Results: Error Expected Results: It should find libusb and finish emerging successfully. Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.11-gentoo-r3 x86_64) ================================================================= System uname: 2.6.11-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 5 2005, 16:20:28)] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r4, 2.15.92.0.2-r5, 2.15.92.0.2-r6 sys-devel/libtool: 1.5.10-r5 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="no" CFLAGS="-mtune=athlon64 -march=x86-64 -O3 -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4 -fexpensive-optimizations -maccumulate-outgoing-args" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mtune=athlon64 -march=x86-64 -O3 -pipe -funroll-loops -fomit-frame-pointer -fforce-addr -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4 -fexpensive-optimizations -maccumulate-outgoing-args" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks noclean sandbox" GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync8.us.gentoo.org/gentoo-portage/" USE="X acpi alsa amd64 apache2 avi berkdb bitmap-fonts cdr crypt cups curl dba dmx dvd encode esd fam flac font-server foomaticdb fortran freetds ftp gd gif gkrellm gnome gpm gstreamer gtk gtk2 hal howl imagemagick imlib innodb ipv6 jack java jp2 jpeg jpg junit kerberos libclamav lzw lzw-tiff mad matroska mozilla mp3 mpeg mssql mysql ncurses nls nptl oav ogg oggvorbis opengl oss pam pcre perl php png postgres python qt readline samba sdl session sharedmem sockets ssl tcltk tcpd tidy tiff truetype truetype-fonts type1-fonts usb userlocales vhosts xml xml2 xmms xpm xrandr xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Created attachment 53278 [details] config.log from /var/tmp/portage/libnjb-2.0_pre20050208/work/libnjb-2.0/config.log
since libusb is listed as a dependency of libnjb, please try to re-emerge both packages with sane CFLAGS like CFLAGS="-O2 -march=k8 -pipe" CXXFLAGS="${CFLAGS}"
I have just tried that, but I get the same error. I have also tried doing what the error says, except I replaced setenv with export, I tried /usr/lib, /usr/lib64, all kinds of places, even symlinked libusb-* into /usr/local/lib, but still no luck.
which version of libusb have you installed? does grep usb_control_msg /usr/lib/libusb* output anything?
It appears I have libusb-0.1.8 installed. aw ~ # grep usb_control_msg /usr/lib/libusb* Binary file /usr/lib/libusb matches Binary file /usr/lib/libusb-0.1.4 matches Binary file /usr/lib/libusb-0.1.4.4.0 matches Binary file /usr/lib/libusb.a matches
Maybe this would be best in library.
Seems that libusb-0.10 fixed it.
I have still the same problem using libusb-0.1.10a (newest in portage). Tried also various libnjb versions. Output of 'grep usb_control_msg /usr/lib/libusb*': Binary file /usr/lib/libusb matches Binary file /usr/lib/libusb-0.1.4 matches Binary file /usr/lib/libusb-0.1.4.4.2 matches Binary file /usr/lib/libusb.a matches Binary file /usr/lib/libusbpp matches Binary file /usr/lib/libusbpp-0.1.4 matches Binary file /usr/lib/libusbpp-0.1.4.4.2 matches Binary file /usr/lib/libusbpp.a matches Output of 'emerge info': Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.3 [2.3.3 (#1, Feb 10 2004, 19:15:50)] dev-lang/python: 2.2.3-r5, 2.3.3 sys-devel/autoconf: 2.59-r4 sys-devel/automake: 1.8.3 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.4.3-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/gentoo-de" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apache2 avi bitmap-fonts cdr crypt cups curl divx4linux dvd dvdr dvdread emboss encode fam flac foomaticdb fortran gd gdbm gif gtk gtk2 guile imagemagick imlib ipv6 jack java joystick jpeg junit kde libg++ lirc mad matroska mmx motif mp3 mpeg mysql ncurses nvidia odbc ogg oggvorbis opengl pam perl png python qt quicktime readline samba sdl snmp speex spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts usb v4l vorbis xine xinerama xml xml2 xmms xv xvid zlib linguas_de" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Created attachment 57485 [details] Output of /var/tmp/portage/libnjb-2.0_pre20050208/work/libnjb-2.0/config.log