Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269935 - media-libs/libmtp-0.3.7 fails to compile with dev-libs/libusb-1.0.1
Summary: media-libs/libmtp-0.3.7 fails to compile with dev-libs/libusb-1.0.1
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 270039
  Show dependency tree
 
Reported: 2009-05-15 11:54 UTC by Märt Bakhoff
Modified: 2009-08-12 11:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/tmp/portage/media-libs/libmtp-0.3.7/work/libmtp-0.3.7/config.log (config.log,32.12 KB, text/plain)
2009-05-15 12:39 UTC, Märt Bakhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Märt Bakhoff 2009-05-15 11:54:56 UTC
After upgrading dev-libs/libusb from 0.1.12-r5 to 1.0.1: 
revdep-rebuild reported broken linking on libmtp, but failed to build it: 

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)


Reproducible: Always

Steps to Reproduce:
1. upgrade to dev-libs/libusb-1.0.1
2. run revdep-rebuild




 * Messages for package media-libs/libmtp-0.3.7:
 * ERROR: media-libs/libmtp-0.3.7 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line  163:  Called econf '--enable-shared' '--disable-static'
 *               ebuild.sh, line  534:  Called die

mart@artemis ~ $ emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.0.0
Timestamp of tree: Fri, 15 May 2009 11:00:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/jokey /usr/local/portage/custom"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion bzip2 cli consolekit cracklib crypt cups dbus dri gdbm gnome gnutls gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg libnotify midi mmx mmxext mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre png policykit pppd python qt4 readline reflection sdl session spl sse sse2 ssl ssse3 sysfs tcpd threads unicode xattr xinerama xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sebastian Luther (few) 2009-05-15 12:22:42 UTC
The config.log please.
Comment 2 Märt Bakhoff 2009-05-15 12:39:59 UTC
Created attachment 191357 [details]
/var/tmp/portage/media-libs/libmtp-0.3.7/work/libmtp-0.3.7/config.log

I just noticed that libusb has slots. When I have libusb-0.1.12-r5 AND libusb-1.0.1 installed, libmtp builds fine. Without 0.1.12-r5, the build fails.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-16 08:09:33 UTC
Please emerge libusb-compat, and then test your MTP hardware by actually using it.
NO RECOMPILE IS NEEDED. If it works, we can change the dep from dev-libs/libusb to =virtual/libusb-0*.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-16 09:51:16 UTC
Bug 270039 tracks the virtual/libusb migration. libmtp does need to be actually tested with hardware.
Comment 5 Märt Bakhoff 2009-05-17 14:09:08 UTC
If I understood you right. 
Tested with rhythmbox, iRiver media player with mtp: 
Bus 004 Device 009: ID 4102:112a iRiver, Ltd.
media-sound/rhythmbox-0.12.1-r1

Installed: 
dev-libs/libusb-0.1.12-r5
dev-libs/libusb-1.0.1
All working, no errors. 

Installed: 
dev-libs/libusb-compat-0.1.0
dev-libs/libusb-1.0.1
Working (can transfer/list files), but shows errors: 
libmtp error: PTP Layer error 02fe: Error getting friendlyname. 
libmtp error: (Look this up in ptp.h for an explanation.)
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-05-18 22:23:54 UTC
Here's a fix, since I'm not sure how it got messed up in your system. I fixed the ebuild, so might want to wait for an hour.

emerge --sync
emerge gentoolkit
qlist -CI libusb
emerge -C `libusb`
emerge -avDNut world
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-18 22:35:35 UTC
Per comment #5, this needs to be fixed in libmtp itself:
> Working (can transfer/list files), but shows errors: 
> libmtp error: PTP Layer error 02fe: Error getting friendlyname. 
> libmtp error: (Look this up in ptp.h for an explanation.)
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2009-05-24 12:30:11 UTC
The PTP files have been synced with upstream at libmtp CVS, it would be a good idea to test current HEAD.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2009-08-08 18:21:30 UTC
Try libmtp-1.0.0...
Comment 10 Märt Bakhoff 2009-08-12 11:36:29 UTC
tested with =media-libs/libmtp-1.0.0, no changes really

installed:
dev-libs/libusb-1.0.1
dev-libs/libusb-0.1.12-r5
result: 
no errors

installed:
dev-libs/libusb-1.0.1
result:
econf fails: can't find the libusb libraries

installed:
dev-libs/libusb-1.0.1
dev-libs/libusb-compat-0.1.0
result:
libmtp error: PTP Layer error 02ff: get_handles_recursively(): could not get object handles.
libmtp error: PTP Layer error 02fe: Error getting friendlyname.
libmtp error: PTP Layer error 02fd: Error setting friendlyname.
libmtp error: PTP Layer error 02fe: get_all_metadata_fast(): could not get proplist of all objects.
libmtp error: (Look this up in ptp.h for an explanation.)