Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484276 - media-libs/libgphoto2-2.5.2 USE=cameras_ptp2 - gphoto2 --auto-detect --debug: 0.023098 gphoto2-abilities-list(2): Failed to load '/usr/lib64/libgphoto2/2.5.2/ptp2': file not found.
Summary: media-libs/libgphoto2-2.5.2 USE=cameras_ptp2 - gphoto2 --auto-detect --debug:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-08 21:48 UTC by Michael Rowell
Modified: 2013-11-22 21:00 UTC (History)
2 users (show)

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


Attachments
gphoto2 auto-detect debug output (gphoto2_autodetect.log,14.85 KB, text/plain)
2013-09-10 16:22 UTC, Michael Rowell
Details
ptp2 driver .la file (ptp2.la,894 bytes, application/x-shared-library-la)
2013-09-10 22:11 UTC, Michael Rowell
Details
LD_DEBUG=all gphoto2 --auto-detect --debug, grep'd for ptp2 (ptp2.log,15.86 KB, text/plain)
2013-11-22 02:59 UTC, Michael Rowell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rowell 2013-09-08 21:48:32 UTC
Installing libgphoto2-2.5.2 and media-gfx/gphoto2-2.5.2 and running

gphoto2 --auto-detect

fails to detect any cameras using a PTP interface. Applications dependent on libgphoto2 are also affected. Running 

gphoto2 --auto-detect --debug

produces the error "0.023098 gphoto2-abilities-list(2): Failed to load '/usr/lib64/libgphoto2/2.5.2/ptp2': file not found."

Downgrading to arch-stable versions (libgphoto2-2.4.14-r1 and gphoto-2.4.14) resolves the issue.

% emerge --info
Portage 2.2.1 (hardened/linux/amd64, gcc-4.8.1, glibc-2.17, 3.10.10-grsec x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.10-grsec-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:    16248460 total,   3523684 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 08 Sep 2013 17:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.3.2-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo crossdev-portage local-portage qt ROKO__ sunrise
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA @FREE Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe -flto=4 -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7-avx -O2 -pipe -flto=4 -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4.00 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/ http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.gossamerhost.com http://gentoo.mirrors.tera-byte.com/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed,-O1 -flto=4"
MAKEOPTS="-j4 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-crossdev /usr/local/portage /var/lib/layman/qt /var/lib/layman/ROKO__ /var/lib/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus acl acpi alsa amd64 avx berkdb bluetooth bzip2 cli consolekit cracklib crypt cups cxx dbus declarative dri dts exif ffmpeg flac gdbm gif google gphoto2 gstreamer hardened iconv iproute2 ipv6 jpeg jpeg2k justify kde kipi lcms libass lightdm lzma matroska mmx modules mp3 mpeg mudflap multilib ncurses netlink networkmanager nls nptl offensive ogg openexr opengl openmp orc pam pax_kernel pcre phonon plasma png policykit pulseaudio qt3support qt4 raw readline semantic-desktop session sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd theora threads tiff truetype udev unicode urandom usb vaapi vorbis x264 xattr xcomposite xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon directory fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-libs/libgphoto2-2.4.14-r1 was built with the following:
USE="exif jpeg (multilib) nls -doc -examples -gd -zeroconf" ABI_X86="64" CAMERAS="canon directory fuji ptp2 -adc65 -agfa_cl20 -aox -ax203 -barbie -casio_qv -clicksmart310 -digigr8 -digita -dimagev -dimera3500 -enigma13 -gsmart300 -hp215 -iclick -jamcam -jd11 -jl2005a -jl2005c -kodak_dc120 -kodak_dc210 -kodak_dc240 -kodak_dc3200 -kodak_ez200 -konica -konica_qm150 -largan -lg_gsm -mars -mustek -panasonic_coolshot -panasonic_dc1000 -panasonic_dc1580 -panasonic_l859 -pccam300 -pccam600 -polaroid_pdc320 -polaroid_pdc640 -polaroid_pdc700 -ricoh -ricoh_g3 -samsung -sierra -sipix_blink -sipix_blink2 -sipix_web2 -smal -sonix -sony_dscf1 -sony_dscf55 -soundvision -spca50x -sq905 -st2205 -stv0674 -stv0680 -sx330z -template -topfield -toshiba_pdrm11 -tp6801"
CFLAGS="-march=corei7-avx -O2 -pipe -fno-lto"
CXXFLAGS="-march=corei7-avx -O2 -pipe -fno-lto"
LDFLAGS="-Wl,--as-needed,-O1 -fno-lto"
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-09-09 07:03:45 UTC
Please paste the output of emerge -pv libgphoto2 and qlist libgphoto2 (from portage-utils). Thanks.
Comment 2 Michael Rowell 2013-09-09 15:36:51 UTC
% emerge -pv libgphoto2

[snipped out a warning pertaining to my local crossdev overlay not having a name. Should not affect anything.]



These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-libs/libgphoto2-2.5.2:0/6  USE="exif jpeg nls -doc -examples -gd -zeroconf" CAMERAS="canon directory fuji ptp2 -adc65 -agfa_cl20 -aox -ax203 -barbie -casio_qv -clicksmart310 -digigr8 -digita -dimagev -dimera3500 -enigma13 -gsmart300 -hp215 -iclick -jamcam -jd11 -jl2005a -jl2005c -kodak_dc120 -kodak_dc210 -kodak_dc240 -kodak_dc3200 -kodak_ez200 -konica -konica_qm150 -largan -lg_gsm -mars -mustek -panasonic_coolshot -panasonic_dc1000 -panasonic_dc1580 -panasonic_l859 -pccam300 -pccam600 -polaroid_pdc320 -polaroid_pdc640 -polaroid_pdc700 -ricoh -ricoh_g3 -samsung -sierra -sipix_blink -sipix_blink2 -sipix_web2 -smal -sonix -sony_dscf1 -sony_dscf55 -soundvision -spca50x -sq905 -st2205 -stv0674 -stv0680 -sx330z -template -topfield -toshiba_pdrm11 -tp6801" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

% qlist libgphoto2 
/lib/udev/check-ptp-camera
/lib/udev/rules.d/70-libgphoto2.rules
/usr/bin/gphoto2-config
/usr/bin/gphoto2-port-config
/usr/include/gphoto2/gphoto2
/usr/include/gphoto2/gphoto2-abilities-list.h
/usr/include/gphoto2/gphoto2-camera.h
/usr/include/gphoto2/gphoto2-context.h
/usr/include/gphoto2/gphoto2-file.h
/usr/include/gphoto2/gphoto2-filesys.h
/usr/include/gphoto2/gphoto2-library.h
/usr/include/gphoto2/gphoto2-list.h
/usr/include/gphoto2/gphoto2-port-info-list.h
/usr/include/gphoto2/gphoto2-port-log.h
/usr/include/gphoto2/gphoto2-port-portability.h
/usr/include/gphoto2/gphoto2-port-result.h
/usr/include/gphoto2/gphoto2-port-version.h
/usr/include/gphoto2/gphoto2-port.h
/usr/include/gphoto2/gphoto2-result.h
/usr/include/gphoto2/gphoto2-setting.h
/usr/include/gphoto2/gphoto2-version.h
/usr/include/gphoto2/gphoto2-widget.h
/usr/include/gphoto2/gphoto2.h
/usr/lib64/libgphoto2.la
/usr/lib64/libgphoto2.so
/usr/lib64/libgphoto2.so.2
/usr/lib64/libgphoto2.so.2.4.0
/usr/lib64/libgphoto2.so.6
/usr/lib64/libgphoto2.so.6.0.0
/usr/lib64/libgphoto2/2.5.2/adc65.la
/usr/lib64/libgphoto2/2.5.2/adc65.so
/usr/lib64/libgphoto2/2.5.2/agfa_cl20.la
/usr/lib64/libgphoto2/2.5.2/agfa_cl20.so
/usr/lib64/libgphoto2/2.5.2/aox.la
/usr/lib64/libgphoto2/2.5.2/aox.so
/usr/lib64/libgphoto2/2.5.2/ax203.la
/usr/lib64/libgphoto2/2.5.2/ax203.so
/usr/lib64/libgphoto2/2.5.2/barbie.la
/usr/lib64/libgphoto2/2.5.2/barbie.so
/usr/lib64/libgphoto2/2.5.2/canon.la
/usr/lib64/libgphoto2/2.5.2/canon.so
/usr/lib64/libgphoto2/2.5.2/casio_qv.la
/usr/lib64/libgphoto2/2.5.2/casio_qv.so
/usr/lib64/libgphoto2/2.5.2/clicksmart310.la
/usr/lib64/libgphoto2/2.5.2/clicksmart310.so
/usr/lib64/libgphoto2/2.5.2/digigr8.la
/usr/lib64/libgphoto2/2.5.2/digigr8.so
/usr/lib64/libgphoto2/2.5.2/digita.la
/usr/lib64/libgphoto2/2.5.2/digita.so
/usr/lib64/libgphoto2/2.5.2/dimagev.la
/usr/lib64/libgphoto2/2.5.2/dimagev.so
/usr/lib64/libgphoto2/2.5.2/dimera3500.la
/usr/lib64/libgphoto2/2.5.2/dimera3500.so
/usr/lib64/libgphoto2/2.5.2/directory.la
/usr/lib64/libgphoto2/2.5.2/directory.so
/usr/lib64/libgphoto2/2.5.2/enigma13.la
/usr/lib64/libgphoto2/2.5.2/enigma13.so
/usr/lib64/libgphoto2/2.5.2/fuji.la
/usr/lib64/libgphoto2/2.5.2/fuji.so
/usr/lib64/libgphoto2/2.5.2/gsmart300.la
/usr/lib64/libgphoto2/2.5.2/gsmart300.so
/usr/lib64/libgphoto2/2.5.2/hp215.la
/usr/lib64/libgphoto2/2.5.2/hp215.so
/usr/lib64/libgphoto2/2.5.2/iclick.la
/usr/lib64/libgphoto2/2.5.2/iclick.so
/usr/lib64/libgphoto2/2.5.2/jamcam.la
/usr/lib64/libgphoto2/2.5.2/jamcam.so
/usr/lib64/libgphoto2/2.5.2/jd11.la
/usr/lib64/libgphoto2/2.5.2/jd11.so
/usr/lib64/libgphoto2/2.5.2/jl2005a.la
/usr/lib64/libgphoto2/2.5.2/jl2005a.so
/usr/lib64/libgphoto2/2.5.2/jl2005c.la
/usr/lib64/libgphoto2/2.5.2/jl2005c.so
/usr/lib64/libgphoto2/2.5.2/kodak_dc120.la
/usr/lib64/libgphoto2/2.5.2/kodak_dc120.so
/usr/lib64/libgphoto2/2.5.2/kodak_dc210.la
/usr/lib64/libgphoto2/2.5.2/kodak_dc210.so
/usr/lib64/libgphoto2/2.5.2/kodak_dc240.la
/usr/lib64/libgphoto2/2.5.2/kodak_dc240.so
/usr/lib64/libgphoto2/2.5.2/kodak_dc3200.la
/usr/lib64/libgphoto2/2.5.2/kodak_dc3200.so
/usr/lib64/libgphoto2/2.5.2/kodak_ez200.la
/usr/lib64/libgphoto2/2.5.2/kodak_ez200.so
/usr/lib64/libgphoto2/2.5.2/konica.la
/usr/lib64/libgphoto2/2.5.2/konica.so
/usr/lib64/libgphoto2/2.5.2/konica_qm150.la
/usr/lib64/libgphoto2/2.5.2/konica_qm150.so
/usr/lib64/libgphoto2/2.5.2/largan.la
/usr/lib64/libgphoto2/2.5.2/largan.so
/usr/lib64/libgphoto2/2.5.2/lg_gsm.la
/usr/lib64/libgphoto2/2.5.2/lg_gsm.so
/usr/lib64/libgphoto2/2.5.2/mars.la
/usr/lib64/libgphoto2/2.5.2/mars.so
/usr/lib64/libgphoto2/2.5.2/mustek.la
/usr/lib64/libgphoto2/2.5.2/mustek.so
/usr/lib64/libgphoto2/2.5.2/panasonic_coolshot.la
/usr/lib64/libgphoto2/2.5.2/panasonic_coolshot.so
/usr/lib64/libgphoto2/2.5.2/panasonic_dc1000.la
/usr/lib64/libgphoto2/2.5.2/panasonic_dc1000.so
/usr/lib64/libgphoto2/2.5.2/panasonic_dc1580.la
/usr/lib64/libgphoto2/2.5.2/panasonic_dc1580.so
/usr/lib64/libgphoto2/2.5.2/panasonic_l859.la
/usr/lib64/libgphoto2/2.5.2/panasonic_l859.so
/usr/lib64/libgphoto2/2.5.2/pccam300.la
/usr/lib64/libgphoto2/2.5.2/pccam300.so
/usr/lib64/libgphoto2/2.5.2/pccam600.la
/usr/lib64/libgphoto2/2.5.2/pccam600.so
/usr/lib64/libgphoto2/2.5.2/pentax.la
/usr/lib64/libgphoto2/2.5.2/pentax.so
/usr/lib64/libgphoto2/2.5.2/polaroid_pdc320.la
/usr/lib64/libgphoto2/2.5.2/polaroid_pdc320.so
/usr/lib64/libgphoto2/2.5.2/polaroid_pdc640.la
/usr/lib64/libgphoto2/2.5.2/polaroid_pdc640.so
/usr/lib64/libgphoto2/2.5.2/polaroid_pdc700.la
/usr/lib64/libgphoto2/2.5.2/polaroid_pdc700.so
/usr/lib64/libgphoto2/2.5.2/ptp2.la
/usr/lib64/libgphoto2/2.5.2/ptp2.so
/usr/lib64/libgphoto2/2.5.2/ricoh.la
/usr/lib64/libgphoto2/2.5.2/ricoh.so
/usr/lib64/libgphoto2/2.5.2/ricoh_g3.la
/usr/lib64/libgphoto2/2.5.2/ricoh_g3.so
/usr/lib64/libgphoto2/2.5.2/samsung.la
/usr/lib64/libgphoto2/2.5.2/samsung.so
/usr/lib64/libgphoto2/2.5.2/sierra.la
/usr/lib64/libgphoto2/2.5.2/sierra.so
/usr/lib64/libgphoto2/2.5.2/sipix_blink2.la
/usr/lib64/libgphoto2/2.5.2/sipix_blink2.so
/usr/lib64/libgphoto2/2.5.2/sipix_web2.la
/usr/lib64/libgphoto2/2.5.2/sipix_web2.so
/usr/lib64/libgphoto2/2.5.2/smal.la
/usr/lib64/libgphoto2/2.5.2/smal.so
/usr/lib64/libgphoto2/2.5.2/sonix.la
/usr/lib64/libgphoto2/2.5.2/sonix.so
/usr/lib64/libgphoto2/2.5.2/sony_dscf1.la
/usr/lib64/libgphoto2/2.5.2/sony_dscf1.so
/usr/lib64/libgphoto2/2.5.2/sony_dscf55.la
/usr/lib64/libgphoto2/2.5.2/sony_dscf55.so
/usr/lib64/libgphoto2/2.5.2/soundvision.la
/usr/lib64/libgphoto2/2.5.2/soundvision.so
/usr/lib64/libgphoto2/2.5.2/spca50x.la
/usr/lib64/libgphoto2/2.5.2/spca50x.so
/usr/lib64/libgphoto2/2.5.2/sq905.la
/usr/lib64/libgphoto2/2.5.2/sq905.so
/usr/lib64/libgphoto2/2.5.2/st2205.la
/usr/lib64/libgphoto2/2.5.2/st2205.so
/usr/lib64/libgphoto2/2.5.2/stv0674.la
/usr/lib64/libgphoto2/2.5.2/stv0674.so
/usr/lib64/libgphoto2/2.5.2/stv0680.la
/usr/lib64/libgphoto2/2.5.2/stv0680.so
/usr/lib64/libgphoto2/2.5.2/sx330z.la
/usr/lib64/libgphoto2/2.5.2/sx330z.so
/usr/lib64/libgphoto2/2.5.2/topfield.la
/usr/lib64/libgphoto2/2.5.2/topfield.so
/usr/lib64/libgphoto2/2.5.2/toshiba_pdrm11.la
/usr/lib64/libgphoto2/2.5.2/toshiba_pdrm11.so
/usr/lib64/libgphoto2/2.5.2/tp6801.la
/usr/lib64/libgphoto2/2.5.2/tp6801.so
/usr/lib64/libgphoto2/print-camera-list
/usr/lib64/libgphoto2_port.la
/usr/lib64/libgphoto2_port.so
/usr/lib64/libgphoto2_port.so.0
/usr/lib64/libgphoto2_port.so.0.8.0
/usr/lib64/libgphoto2_port.so.10
/usr/lib64/libgphoto2_port.so.10.1.1
/usr/lib64/libgphoto2_port/0.10.0/disk.la
/usr/lib64/libgphoto2_port/0.10.0/disk.so
/usr/lib64/libgphoto2_port/0.10.0/ptpip.la
/usr/lib64/libgphoto2_port/0.10.0/ptpip.so
/usr/lib64/libgphoto2_port/0.10.0/serial.la
/usr/lib64/libgphoto2_port/0.10.0/serial.so
/usr/lib64/libgphoto2_port/0.10.0/usb.la
/usr/lib64/libgphoto2_port/0.10.0/usb.so
/usr/lib64/libgphoto2_port/0.10.0/usb1.la
/usr/lib64/libgphoto2_port/0.10.0/usb1.so
/usr/lib64/libgphoto2_port/0.10.0/usbdiskdirect.la
/usr/lib64/libgphoto2_port/0.10.0/usbdiskdirect.so
/usr/lib64/libgphoto2_port/0.10.0/usbscsi.la
/usr/lib64/libgphoto2_port/0.10.0/usbscsi.so
/usr/lib64/pkgconfig/libgphoto2.pc
/usr/lib64/pkgconfig/libgphoto2_port.pc
/usr/share/doc/libgphoto2-2.5.2/AUTHORS.bz2
/usr/share/doc/libgphoto2-2.5.2/ChangeLog.bz2
/usr/share/doc/libgphoto2-2.5.2/HACKING.bz2
/usr/share/doc/libgphoto2-2.5.2/MAINTAINERS.bz2
/usr/share/doc/libgphoto2-2.5.2/NEWS.bz2
/usr/share/doc/libgphoto2-2.5.2/README.bz2
/usr/share/doc/libgphoto2-2.5.2/README.in.bz2
/usr/share/doc/libgphoto2-2.5.2/README.packaging.bz2
/usr/share/doc/libgphoto2-2.5.2/TESTERS.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/ChangeLog.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.9050.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.9051.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.9052.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.905C.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.913C.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.913D.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.adc65.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.agfa-cl20.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.aox.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.ax203-compression.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.ax203.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.canon.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.clicksmart310.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.enigma13.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.gsmart300.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.iclick.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.jamcam.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.jl2005a.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.jl2005bcd-compression.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.jl2005c.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.konica.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.largan-lmini.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.lg_gsm.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.mars.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.minolta-dimagev.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.mustek.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.panasonic-coolshot.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.panasonic-l859.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.panasonic.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.pccam300.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.pccam600.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.pentax.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.ptp2.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.smal.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.sonix.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.sonydscf1.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.soundvision.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.spca50x.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.sq905.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.st2205-compression.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.st2205.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.toshiba-pdrm11.bz2
/usr/share/doc/libgphoto2-2.5.2/camlibs/README.tp6801.bz2
/usr/share/doc/libgphoto2-2.5.2/hotplug/usbcam.console.bz2
/usr/share/doc/libgphoto2-2.5.2/hotplug/usbcam.group.bz2
/usr/share/doc/libgphoto2-2.5.2/hotplug/usbcam.user.bz2
/usr/share/doc/libgphoto2-2.5.2/hotplug/usbcam.x11-app.bz2
/usr/share/libgphoto2/2.5.2/konica/english
/usr/share/libgphoto2/2.5.2/konica/french
/usr/share/libgphoto2/2.5.2/konica/german
/usr/share/libgphoto2/2.5.2/konica/japanese
/usr/share/libgphoto2/2.5.2/konica/korean
/usr/share/libgphoto2/2.5.2/konica/spanish
/usr/share/man/man3/libgphoto2.3.bz2
/usr/share/man/man3/libgphoto2_port.3.bz2
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-09-10 14:27:28 UTC
Thanks. So /usr/lib64/libgphoto2/2.5.2/ptp2.{la,so} are installed on your system, but gphoto2 doesn't see them for some reason.

Please attach the complete "gphoto2 --auto-detect --debug" output, maybe there is a useful error message in it.
Comment 4 Michael Rowell 2013-09-10 16:22:55 UTC
Created attachment 358418 [details]
gphoto2 auto-detect debug output
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-09-10 20:39:09 UTC
Thanks. Unfortunately, the debug output didn't help with diagnosing the problem.

Another possibility, maybe the /usr/lib64/libgphoto2/2.5.2/ptp2.la file is invalid for some reason. Could you attach it please?
Comment 6 Michael Rowell 2013-09-10 22:11:03 UTC
Created attachment 358440 [details]
ptp2 driver .la file
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-09-11 02:36:56 UTC
.la file looks fine.

Another possibility: libgphoto2 plugins compiled using lto are confusing libltdl's loader somehow. Try setting conservative CFLAGS/CXXFLAGS/LDFLAGS in your make.conf (so CFLAGS="-march=corei7-avx -O2 -pipe", LDFLAGS="-Wl,-O1 -Wl,--as-needed").
Then rebuild sys-devel/libtool, media-libs/libgphoto2, and media-gfx/gphoto2, and see if the problem persists.
Comment 8 Michael Rowell 2013-09-11 17:02:52 UTC
(In reply to Alexandre Rostovtsev from comment #7)
> .la file looks fine.
> 
> Another possibility: libgphoto2 plugins compiled using lto are confusing
> libltdl's loader somehow. Try setting conservative CFLAGS/CXXFLAGS/LDFLAGS
> in your make.conf (so CFLAGS="-march=corei7-avx -O2 -pipe", LDFLAGS="-Wl,-O1
> -Wl,--as-needed").
> Then rebuild sys-devel/libtool, media-libs/libgphoto2, and
> media-gfx/gphoto2, and see if the problem persists.

Sorry, compiled libtool, libgphoto2 and gphoto2 with

CFLAGS="-march=corei7-avx -O2 -pipe -fno-lto"
CXXFLAGS="-march=corei7-avx -O2 -pipe -fno-lto"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -fno-lto"

Issue persists.
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-09-12 14:33:11 UTC
I am out of ideas, and nobody on the gnome team has been able to reproduce this :/

@base-system, any suggestions why lt_dlopenext("/usr/lib64/libgphoto2/2.5.2/ptp2") would be failing with FILE_NOT_FOUND?
Comment 10 Michael Rowell 2013-09-12 16:12:54 UTC
(In reply to Alexandre Rostovtsev from comment #9)
> I am out of ideas, and nobody on the gnome team has been able to reproduce
> this :/

No problem, I guess I'll just stick with stable for now.

Honestly, that's what my experience with Gentoo always seems to be. Every time I install and use it, eventually something weird breaks in a way no one else seems to experience, and it's never a serious bug that crashes the desktop or anything, always something small.
Comment 11 Michael Rowell 2013-11-22 02:59:58 UTC
Created attachment 363778 [details]
LD_DEBUG=all gphoto2 --auto-detect --debug, grep'd for ptp2
Comment 12 Michael Rowell 2013-11-22 03:01:49 UTC
UPDATE: Alright, so I have a shiny new Nikon D5200 sitting in front of me, and it's convinced me to try to fix this thing. I read that setting LD_DEBUG=all and running gphoto2 would give lots of library-related debug. Well, LOTS is the word. 8M log file. I grep'd for ptp2 and attached the result.

2.5.2, no LTO, ggdb symbols and support for all cameras compiled. Ran 'LD_DEBUG=all gphoto2 --auto-detect --debug &> gphoto2.log' with no cameras attached. 'cat gphoto2 | grep ptp2 > ptp2.log' Here's what I found:

First mention of ptp2:
0.048508 gphoto2-abilities-list(2): Found '/usr/lib64/libgphoto2/2.5.2/ptp2'.
     16272:     file=/usr/lib64/libgphoto2/2.5.2/ptp2.so [0];  dynamically loaded by /usr/lib64/libltdl.so.7 [0]
     16272:     file=/usr/lib64/libgphoto2/2.5.2/ptp2.so [0];  generating link map

Then a whole bunch of GLIBC version checking, then some "relocation processing", some symbol lookup information. Binding /usr/lib64/libgphoto2/2.5.2/ptp2.so to /lib64/libc.so.6, individual symbols at a time is what it looks like. And then this little gem:

16272:     symbol=olympus_setup;  lookup in file=/usr/lib64/libgphoto2/2.5.2/ptp2.so [0]
     16272:     /usr/lib64/libgphoto2/2.5.2/ptp2.so: error: symbol lookup error: undefined symbol: olympus_setup (fatal)
     16272:     file=/usr/lib64/libgphoto2/2.5.2/ptp2.so [0];  destroying link map
     16272:     file=/usr/lib64/libgphoto2/2.5.2/ptp2.so [0];  dynamically loaded by /usr/lib64/libltdl.so.7 [0]
     16272:     file=/usr/lib64/libgphoto2/2.5.2/ptp2.so [0];  generating link map

After which the output is the same as before. So it does this a few times (trying again, I suppose), before we get to:

     16272:     symbol=olympus_setup;  lookup in file=/usr/lib64/libgphoto2/2.5.2/ptp2.so [0]
     16272:     /usr/lib64/libgphoto2/2.5.2/ptp2.so: error: symbol lookup error: undefined symbol: olympus_setup (fatal)
     16272:     file=/usr/lib64/libgphoto2/2.5.2/ptp2.so [0];  destroying link map
0.113037 gphoto2-abilities-list(2): Failed to load '/usr/lib64/libgphoto2/2.5.2/ptp2': file not found.

So by my interpretation gphoto2 tried and tried and failed on this symbol.

While I'm researching this issue, perhaps someone with more knowledge of what we're dealing with could chime in and either point me in the right direction or else correct any errors in my understanding? Much appreciated.
Comment 13 Evgeny Bobkin 2013-11-22 10:25:35 UTC
Can you please try to build libgphoto2 with the two patches included in this bug report, maybe they are related to this report as well, because of the libxml2 linkage where ptp is also involved.
Comment 14 Evgeny Bobkin 2013-11-22 10:26:06 UTC
in this bug report ...
https://bugs.gentoo.org/show_bug.cgi?id=491782
Comment 15 Michael Rowell 2013-11-22 17:43:52 UTC
(In reply to Evgeny Bobkin from comment #14)
> in this bug report ...
> https://bugs.gentoo.org/show_bug.cgi?id=491782

Seems to fix it. My PTP cameras are autodetected just fine now, no errors in 'gphoto2 --auto-detect --debug'. Well then.

Thank you very much. Looks like I'm good to go.
Comment 16 Pacho Ramos gentoo-dev 2013-11-22 21:00:07 UTC
+*libgphoto2-2.5.2-r1 (22 Nov 2013)
+
+  22 Nov 2013; Pacho Ramos <pacho@gentoo.org>
+  +files/libgphoto2-2.5.2-libxml2-detection.patch,
+  +files/libgphoto2-2.5.2-libxml2-detection2.patch, +libgphoto2-2.5.2-r1.ebuild,
+  -libgphoto2-2.5.2.ebuild:
+  Apply important fixes: solve libxml2 detection, update configure options, rely
+  on udev >= 175, update cameras (#484276 by Nikoli and Evgeny Bobkin, also
+  solving #484276 by Michael Rowell); drop old.
+