Trying to compile mpio-0.7.1_pre2 on my machine irremediably fails during the first parts of the build. Indeed, here's the failure point: *** configure: WARNING: you need at least version 0.1.7 of the libusb library for USB support *** http://sourceforge.net/projects/libusb/ *** If you cannot find the appropriate version, try CVS It should be noted that libusb-0.1.10a is currently installed. Reproducible: Always Steps to Reproduce: 1. Install latest x86 libusb (0.1.10a) 2. Try installing mpio-0.7.1_pre2. Actual Results: mpio's configure complains about not finding libusb. Expected Results: mpio's configure script should detect the present libusb installation.
You didn't include the output of emerge --info as instructed on the bug submission page. Please do that.
Woops! Didn't pay too much attention, first time here ;-). Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.12-gentoo-r4 i686) ================================================================= System uname: 2.6.12-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/" LANG="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib acpi alsa apache2 atm avi berkdb bitmap-fonts bluetooth bonobo bzip2 cdparanoia cdr cjk crypt cups curl divx4linux dvd eds emboss encode esd ethereal fbcon flac foomaticdb fortran ftp gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile iconv icq imagemagick imlib ipv6 java javascript joystick jpeg ldap libg++ libwww lm_sensors mad mikmod mmx mono motif mozilla mp3 mpeg msn ncurses nls nptl nvidia ogg oggvorbis opengl pam pdflib perl png ppds python quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb v4l vorbis win32codecs xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
The same happens on an amd64 system. emerge --info below: Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r4 x86_64) ================================================================= System uname: 2.6.12-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -fomit-frame-pointer -pipe -march=k8" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -fomit-frame-pointer -pipe -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://distfiles.gentoo.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage/" USE="amd64 X alsa arts avi berkdb bitmap-fonts cdparanoia crypt cups encode fam flac foomaticdb fortran gdbm gif gphoto2 gpm gstreamer gtk gtk2 imlib ipv6 ithreads java jpeg kde lzw lzw-tiff mad mozilla mp3 mpeg ncurses netboot nls nvidia ogg opengl pam pdflib perl png python qt quicktime rdesktop readline samba sdl spell ssl tcpd tiff truetype-fonts type1-fonts usb userlocales vorbis wifi xine xml2 xpm xscreensaver xv zeroconf zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Downgrading to dev-libs/libusb-0.1.7-r1 works. It's the same if you try to build manually from source. Maybe some error in the makefiles?
Autoconf version checking is obviously wrong (string comparison): if test "$LIBUSB_VER" \< "0.1.7"; then AC_MSG_WARN([ *** You need at least version 0.1.7 of the libusb library for USB support *** http://sourceforge.net/projects/libusb/ *** If you cannot find the appropriate version, try CVS ]) exit 1 fi What is funny is that it's a copy/paste from libgphoto2, where it is just used to display a warning because it is known to be broken, but it has been made fatal in mpio. The proper fix would be to use a real version comparison macro like ax_compare_version, but i guess for the need of making this ebuild work ripping out the offending chunk would be enough.
Created attachment 85672 [details, diff] removing libusb version check in configure script. add unpack section to the build: src_unpack() { unpack ${A} cd "${S}" epatch ${FILESDIR}/${P}-libusb.patch } Please check the patch and close a bug.
it should be also one more line in ebuild: inherit eutils
*** Bug 134968 has been marked as a duplicate of this bug. ***
Created attachment 94106 [details] use this ebuild and the patch above to compile.
# Diego Pettenò <flameeyes@gentoo.org> (03 Feb 2007) # Pending removal March 3rd, no upstream, old package # requires specific hardware. media-sound/mpio