media-gfx/sane-backends-1.0.20 aborts during emerge with the following message: ............. checking whether the i686-pc-linux-gnu-gfortran linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so (cached) (cached) checking how to hardcode library paths into programs... immediate configure: Manually selected backends: gphoto2 abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc25 dc210 dc240 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p ibm leo lexmark ma1509 matsushita microtek microtek2 mustek mustek_pp mustek_usb mustek_usb2 nec net niash pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax_pp umax1220u xerox_mfp *** gphoto2 backend requires gphoto2 and JPEG libraries - aborting !!! Please attach the following file when seeking support: !!! /var/tmp/portage/media-gfx/sane-backends-1.0.20/work/sane-backends-1.0.20/config.log * * ERROR: media-gfx/sane-backends-1.0.20 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2543: Called econf '--enable-libusb' '--with-gphoto2' '--disable-ipv6' '--disable-avahi' '--disable-latex' '--enable-parport-directio' * ebuild.sh, line 534: 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/sane-backends-1.0.20/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-gfx/sane-backends-1.0.20/temp/environment'. * However, I've got media-libs/jpeg , media-libs/libgphoto2 and media-gfx/gphoto2 installed. Reproducible: Always Steps to Reproduce:
Please attach the emerge --info output and, as requested in the error message, /var/tmp/portage/media-gfx/sane-backends-1.0.20/work/sane-backends-1.0.20/config.log Thank you.
Created attachment 195902 [details] emerge --info my emerge --info
Created attachment 195905 [details] /var/tmp/portage/media-gfx/sane-backends-1.0.20/work/sane-backends-1.0.20/config.log
I only manage to reproduce something remotely similar when I put a HAVE_GPHOTO2="false" in my environment, but even then the log is not the same. Can you please attach the complete build log (not just the part before the error) and tell me the output of: pkg-config --modversion --libs libgphoto2 as well as the output of "emerge -pv sane-backends"? Thank you!
Created attachment 195976 [details] complete build.log
(In reply to comment #4) > pkg-config --modversion --libs libgphoto2 Empty package name in Requires or Conflicts in file '/usr/lib/pkgconfig/libgphoto2.pc'
Could you please re-install libgphoto2?
(In reply to comment #7) > Could you please re-install libgphoto2? Alas, it didn't help.
pkg-config still does not know anything about it?
Same happened here. No idea how it got there, but /usr/lib/pkgconfig/libgphoto2.pc has a comma at the end of line 12 that doesn't seem to belong there: prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include VERSION=2.4.6 driverdir=${libdir}/libgphoto2/2.4.6 Name: libgphoto2 Description: Library for easy access to digital cameras URL: http://gphoto.org/proj/libgphoto2/ Version: 2.4.6 Requires: libgphoto2_port >= 0.6.2, Libs: -L${libdir} -lgphoto2 -lm Cflags: -I${includedir}/gphoto2 Deleted it, pkg-config now has meaningful output again, and sane-backends builds, too.
Maybe the libgphoto2 maintainers are interested in this...
Erm looks like we have a long standing undercover bug: # Fix pkgconfig file when USE="-exif" if use exif; then sed -i "s/, @REQUIREMENTS_FOR_LIBEXIF@//" libgphoto2.pc.in || die " libgphoto2.pc sed failed" fi -> try to put a ! before use exif and rebuild libgphoto2, that should fix the problem.
Same error here. Taking the comma off of /usr/lib/pkgconfig/libgphoto2.pc fixed it. W
*** Bug 276200 has been marked as a duplicate of this bug. ***
(In reply to comment #13) > Same error here. Taking the comma off of /usr/lib/pkgconfig/libgphoto2.pc > fixed it. > > W > I agree, the problem is due to syntax error due to an unnecessary comma, at end of "Requires" line.
Good catch, Gilles. Fixed without a bump.
(And fixed...)