Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
View Bug Activity | Format For Printing | XML | Clone This Bug
media-gfx/gphoto2-2.4.0 failed to build on ~amd64 due to a configure error: configure: error: Version requirement libgphoto2 >= 2.3.1.3.trunk not met. Found: 2.4.0 I have just upgraded media-libs/libgphoto2 to 2.4.0-r1 before that. Reproducible: Always Steps to Reproduce: On ~amd64 1. install/upgrade media-libs/libgphoto2 to 2.4.0-r1 2. install/upgrade media-gfx/gphoto2 to 2.4.0 Actual Results: the configuration step failed Expected Results: gphoto2 configuration would have been successful, get compiled and installed. a snip from the build log (will be also attached in a sec): checking for libgphoto2 to use... autodetect checking for LIBGPHOTO2... no checking libgphoto2 config program... gphoto2-config checking for gphoto2-config... /usr/bin/gphoto2-config checking for libgphoto2 version according to gphoto2-config... 2.4.0 checking if libgphoto2 version is matching requirement >= 2.3.1.3.trunk... no configure: error: Version requirement libgphoto2 >= 2.3.1.3.trunk not met. Found: 2.4.0 !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/media-gfx/gphoto2-2.4.0/work/gphoto2-2.4.0/config.log * * ERROR: media-gfx/gphoto2-2.4.0 failed. * Call stack: * ebuild.sh, line 1687: Called dyn_compile * ebuild.sh, line 1025: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * gphoto2-2.4.0.ebuild, line 29: Called econf '--enable-nls' '--with-cdk' '--without-aalib' '--without-jpeg' '--without-exif' '--with-readline' * ebuild.sh, line 624: Called die * The specific snippet of code: * die "econf failed" * The die message: * econf failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-gfx/gphoto2-2.4.0/temp/build.log'. * I could not reproduce the error on my ~x86, and I have seen the line "checking for LIBGPHOTO2..." says yes instead. my emerge --info: Portage 2.1.3.12 (default-linux/amd64/2007.0/desktop, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r8 x86_64) ================================================================= System uname: 2.6.22-gentoo-r8 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Timestamp of tree: Sat, 06 Oct 2007 10:32:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18 sys-devel/gcc-config: 1.4.0-r2 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/X11 /etc/bash /etc/bash_completion.d /etc/env.d /etc/env.d/java/ /etc/gconf /etc/gimp /etc/gtk /etc/gtk-2.0 /etc/hal /etc/hotplug /etc/init.d /etc/modules.d /etc/pam.d /etc/revdep-rebuild /etc/skel /etc/ssl /etc/terminfo /etc/texmf /etc/texmf/web2c /etc/udev /etc/udev/rules.d /etc/vim /etc/wget" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.utf8" LINGUAS="en" MAKEOPTS="-j3 -s" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/portage/local/kvm /usr/portage/local/crossdev" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa amd64 arts bash-completion berkdb bidi bitmap-fonts bzip2 cairo cdr cli cracklib css cups dbus dri dv dvd dvdnav dvdr dvdread emboss enca encode evo fam ffmpeg firefox flac fortran gdbm gif glitz gstreamer gtk hal iconv isdnlog ithreads jpeg kde kdeenablefinal logrotate lzo mad midi mikmod mmx mng mp2 mp3 mp4 mpeg mudflap musepack musicbrainz ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf png pnm pppd qt3 qt3support quicktime readline reflection rtc sdl session speex spell spl sse sse2 ssl ssse3 svg tcpd tetex theora threads tiff tordns truetype truetype-fonts type1-fonts unicode utempter vcd vorbis wavepack xanim xml xorg xprint xscreensaver xv xvid xvmc 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 mulaw multi null plug rate route share shm softvol" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS here i checking for libgphoto2 to use... autodetect checking for LIBGPHOTO2... no checking libgphoto2 config program... gphoto2-config checking for gphoto2-config... /usr/bin/gphoto2-config checking for libgphoto2 version according to gphoto2-config... 2.4.0 checking if libgphoto2 version is matching requirement >= 2.3.1.3.trunk... no configure: error: Version requirement libgphoto2 >= 2.3.1.3.trunk not met. Found: 2.4.0 !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/media-gfx/gphoto2-2.4.0/work/gphoto2-2.4.0/config.log * * ERROR: media-gfx/gphoto2-2.4.0 failed. * Call stack: * ebuild.sh, line 1687: Called dyn_compile * ebuild.sh, line 1025: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * gphoto2-2.4.0.ebuild, line 29: Called econf '--enable-nls' '--with-cdk' '--without-aalib' '--without-jpeg' '--without-exif' '--with-readline' * ebuild.sh, line 624: Called die * The specific snippet of code: * die "econf failed" * The die message: * econf failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-gfx/gphoto2-2.4.0/temp/build.log'. *
Created an attachment (id=132760) [edit] My failed build log
the version written in the configure confused me. Fix is in CVS, thanks for reporting.
I webrsynced just now (portage 9.10.2007'th snapshot). gphoto2-2.4.0 still fails to build even after recompiling libgphoto2-2.4.0-r1 same error as described before. nothing has changed.
webrsync is not supposed to be always up to date (I already webrsynced a box that went back 3 days in time compared to its last rsync !). So, works for me as you can see below: [snip] checking for x86_64-pc-linux-gnu-pkg-config... (cached) /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for libgphoto2 to use... autodetect checking for LIBGPHOTO2... yes checking libgphoto2 library flags... "-lgphoto2 -lgphoto2_port -lexif -lm -lusb " checking libgphoto2 cpp flags... "-I/usr/include/gphoto2 -I/usr/include/libexif " checking for strptime... yes [snip] If it still fails for you after using the normal sync procedure, please reopen. # emerge --info Portage 2.1.3.12 (default-linux/amd64/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r5 x86_64) ================================================================= System uname: 2.6.22-gentoo-r5 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50 Timestamp of tree: Tue, 09 Oct 2007 12:00:01 +0000 app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r5, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0_rc4-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r3 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -g -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -g -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict test unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://85.25.128.62" LANG="fr_FR.UTF-8" LC_ALL="fr_FR.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="fr en ja" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/nouveau /usr/portage/local/layman/voip /usr/portage/local/layman/sunrise /usr/portage/local/layman/gnome-experimental /home/eva/devel/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 avahi bash-completion bitmap-fonts bogofilter bzip2 cairo cdr cjk cli cracklib crypt cups curl daap dbus dga dri dvd dvdr eds encode evo exif ffmpeg flac freewnn galago glitz gnome gnutls gphoto2 gpm gstreamer gtk gtkhtml hal iconv ipv6 isdnlog jpeg keyring kqemu ldap libgda libnotify logrotate mad mmx mpeg mudflap musicbrainz ncurses networkmanager nfs nls nntp nptl nptlonly ntp ogg openct opengl openmp pam pcre pda pdf perl png ppds pppd python readline reflection sasl session smp spell spl sse sse2 ssl svg sysfs tcpd test theora threads truetype-fonts type1-fonts unicode urandom usb v4l vim-syntax vorbis x264 xcb xinerama xml xorg xulrunner xv xvid 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en ja" USERLAND="GNU" VIDEO_CARDS="vesa nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created an attachment (id=133068) [edit] Another failed configure log Another compilation of gphoto2-2.4.0 after a regular rsync and a recompiled libgphoto-2.4.0-r1.
as you can see in the 2nd attachment: [snip] checking for x86_64-pc-linux-gnu-pkg-config... (cached) /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for libgphoto2 to use... autodetect checking for LIBGPHOTO2... no checking libgphoto2 config program... gphoto2-config checking for gphoto2-config... /usr/bin/gphoto2-config checking for libgphoto2 version according to gphoto2-config... 2.4.0 checking if libgphoto2 version is matching requirement >= 2.3.1.3.trunk... no configure: error: Version requirement libgphoto2 >= 2.3.1.3.trunk not met. Found: 2.4.0 [/snip] I wonder why the LIBGPHOTO2 test failed in my case, while passed at yours. I looked at the configure script and understood that it calls pkg-config to check whether libgphoto2 exists. A manual call revealed: [snip] beast ~ # pkg-config --exists libgphoto2 --print-errors Package libexif was not found in the pkg-config search path. Perhaps you should add the directory containing `libexif.pc' to the PKG_CONFIG_PATH environment variable Package 'libexif', required by 'libgphoto2', not found [/snip] but I installed libgphoto2 without libexif support (I don't have exif in USE flags at all): [snip] [ebuild R ] media-libs/libgphoto2-2.4.0-r1 USE="hal nls -doc -exif" CAMERAS="canon -adc65 -agfa_cl20 -aox -barbie -casio_qv -clicksmart310 -digigr8 -digita -dimagev -dimera3500 -directory -enigma13 -fuji -gsmart300 -hp215 -iclick -jamcam -jd11 -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 -ptp2 -ricoh -ricoh_g3 -samsung -sierra -sipix_blink -sipix_blink2 -sipix_web2 -smal -sonix -sony_dscf1 -sony_dscf55 -soundvision -spca50x -sq905 -stv0674 -stv0680 -sx330z -template -toshiba_pdrm11" 0 kB [/snip] On both my x86 and x86_64 installations I don't have exif in my USE flags. On the x86 I have media-libs/libexif installed and on the x86_64 I don't have it installed. This brings me to a preposition that the pkg-config data of libgphoto2 is not correct if installed without libexif support. This could explain why I succeeded on my x86 and failed on my x86_64: I have libexif on the x86 and not on x86_64.
aha, that could indeed explain the problem. I have exif on both my dev box and my work box (the amd64) hence I couldn't see thep problem. I don't remember seeing a change about exif in libgphoto2's configure.in so it might be a problem in the generation of the .pc file. I'll dig this weekend hopefully but if you come up with a fix first, please fill free to submit a patch.
I have the same problem here >>> Emerging (1 of 1) media-gfx/gphoto2-2.4.0 to / * gphoto2-2.4.0.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking gphoto2-2.4.0.tar.gz ;-) ... [ ok ] * This profile has not been tested thoroughly and is not considered to be * a supported server profile at this time. For a supported server * profile, please check the Hardened project (http://hardened.gentoo.org). * This profile is merely a convenience for people who require a more * minimal profile, yet are unable to use hardened due to restrictions in * the software being used on the server. This profile should also be used * if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this * applies to you, then it doesn't and you should probably be using * Hardened, instead. >>> Unpacking source... >>> Unpacking gphoto2-2.4.0.tar.gz to /var/tmp/portage/media-gfx/gphoto2-2.4.0/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/media-gfx/gphoto2-2.4.0/work/gphoto2-2.4.0 ... [...] checking pkg-config is at least version 0.9.0... yes checking for libgphoto2 to use... autodetect checking for LIBGPHOTO2... no checking libgphoto2 config program... gphoto2-config checking for gphoto2-config... /usr/bin/gphoto2-config checking for libgphoto2 version according to gphoto2-config... 2.4.0 checking if libgphoto2 version is matching requirement >= 2.3.1.3.trunk... no configure: error: Version requirement libgphoto2 >= 2.3.1.3.trunk not met. Found: 2.4.0 !!! Please attach the following file when seeking support: !!! /var/tmp/portage/media-gfx/gphoto2-2.4.0/work/gphoto2-2.4.0/config.log * * ERROR: media-gfx/gphoto2-2.4.0 failed. * Call stack: * ebuild.sh, line 35: Called src_compile * environment, line 69: Called econf 'src_compile' 'src_compile' '--enable-nls' '--with-cdk' '--without-aalib' '--without-jpeg' * ebuild.sh, line 490: Called die * The specific snippet of code: * die "econf failed" * The die message: * econf failed /var/tmp/portage/media-gfx/gphoto2-2.4.0/work/gphoto2-2.4.0/config.log DOES NOT EXIST finally, libgphoto2 >= 2.3.1.3 idefix ~ # equery list libgphoto2 [ Searching for package 'libgphoto2' in all categories among: ] * installed packages [I--] [ ~] media-libs/libgphoto2-2.4.0-r1 (0)
Thanks but the "me too" aren't helping. The issue is clearly identified, .pc files are not generated the way it was in previous releases for libgphoto and that's what's triggering this bug. Unless you have info for a fix or some upstream diff, please don't add any more comments.
Created an attachment (id=143201) [edit] configure patch Hi, I've made a little patch changing the way of checking the currently installed version of libgphoto2 with the 2.3.1.3.trunk.
Emerging libexif solves the problem. From /usr/lib/pkgconfig/libgphoto2.pc: ... 12 Requires: libgphoto2_port >= 0.6.2, libexif >= 0.6.13 Error message is a little bit imprecise.
libgphoto 2.4.1 + gphoto 2.4.1 has a fix for this. The fix is not perfect but oh well...