Trying to emerge media-libs/libgphoto2-2.4.9 fails with the following error: >>> Emerging (1 of 4) media-libs/libgphoto2-2.4.9 * libgphoto2-2.4.9.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * CPV: media-libs/libgphoto2-2.4.9 * REPO: gentoo * Maintainer: gnome@gentoo.org graphics@gentoo.org * USE: amd64 elibc_glibc hal kernel_linux multilib nls userland_GNU * libgphoto2 supports: all adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 * digigr8 digita dimera3500 directory enigma13 fuji gsmart300 hp215 iclick * jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 * konica konica_qm150 largan lg_gsm mars dimagev mustek panasonic_coolshot * panasonic_l859 panasonic_dc1000 panasonic_dc1580 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 st2205 stv0674 stv0680 sx330z template toshiba_pdrm11 * topfield * All camera drivers will be built since you did not specify * via the CAMERAS variable what camera you use. * NOTICE: Upstream will not support you if you do not compile all camera drivers first >>> Unpacking source... >>> Unpacking libgphoto2-2.4.9.tar.bz2 to /var/tmp/portage/media-libs/libgphoto2-2.4.9/work >>> Source unpacked in /var/tmp/portage/media-libs/libgphoto2-2.4.9/work >>> Preparing source in /var/tmp/portage/media-libs/libgphoto2-2.4.9/work/libgphoto2-2.4.9 ... * Applying libgphoto2-2.4.7-respect-bonjour.patch ... [ ok ] * Applying libgphoto2-2.4.7-no-test-build.patch ... [ ok ] * Applying libgphoto2-2.4.8-increase_max_entries.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/media-libs/libgphoto2-2.4.9/work/libgphoto2-2.4.9/libgphoto2_port' ... * Running aclocal -I auto-m4 -I m4 ... [ ok ] * Running libtoolize --copy --force --install --automake ... [ ok ] * Running aclocal -I auto-m4 -I m4 ... [ ok ] * Running autoconf ... [ !! ] * Failed Running autoconf ! * * Include in your bugreport the contents of: * * /var/tmp/portage/media-libs/libgphoto2-2.4.9/temp/autoconf.out * ERROR: media-libs/libgphoto2-2.4.9 failed: * Failed Running autoconf ! * * Call stack: * ebuild.sh, line 56: Called src_prepare * environment, line 2946: Called eautoreconf * environment, line 917: Called eautoreconf * environment, line 932: Called eautoconf * environment, line 868: Called autotools_run_tool 'autoconf' * environment, line 409: Called die * The specific snippet of code: * die "Failed Running $1 !"; * * If you need support, post the output of 'emerge --info =media-libs/libgphoto2-2.4.9', * the complete build log and the output of 'emerge -pqv =media-libs/libgphoto2-2.4.9'. * The complete build log is located at '/var/tmp/portage/media-libs/libgphoto2-2.4.9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/libgphoto2-2.4.9/temp/environment'. * S: '/var/tmp/portage/media-libs/libgphoto2-2.4.9/work/libgphoto2-2.4.9' ***** autoconf ***** ***** PWD: /var/tmp/portage/media-libs/libgphoto2-2.4.9/work/libgphoto2-2.4.9/libgphoto2_port ***** autoconf configure:11176: error: possibly undefined macro: AS_MESSAGE_LOG_FDdnl If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. Downgrading autotconf to sys-devel/autoconf-2.65-r1 fixed the error Reproducible: Always Steps to Reproduce: 1. emerge sys-devel/autoconf-2.67 2. emerge media-libs/libgphoto2-2.4.9 Actual Results: compilation failes Expected Results: compilation succeeds
Created attachment 246617 [details] emerge --info I can confirm this on amd64, attached emerge --info.
Proper solution: remove pkg.m4 from the directory.
Would like to but: $ find /var/tmp/portage/media-libs/libgphoto2-2.4.9/work/libgphoto2-2.4.9/ -name "pkg.m4" $ egrep "pkg.m4" /var/tmp/portage/media-libs/libgphoto2-2.4.9/work/libgphoto2-2.4.9/ -r --color /var/tmp/portage/media-libs/libgphoto2-2.4.9/work/libgphoto2-2.4.9/aclocal.m4:# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- /var/tmp/portage/media-libs/libgphoto2-2.4.9/work/libgphoto2-2.4.9/libgphoto2_port/aclocal.m4:# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- $ egrep "AS_MESSAGE_LOG_FD.*dnl" /var/tmp/portage/media-libs/libgphoto2-2.4.9/work/libgphoto2-2.4.9/ -r --color Is this something else breaking up than pkgconfig this time ?
Created attachment 246727 [details, diff] adds missing []'s Try this...
Created attachment 246731 [details, diff] Actually, only one set of []'s seem required better one
(In reply to comment #5) > Created an attachment (id=246731) [details] > Actually, only one set of []'s seem required > > better one > Works perfectly for me, thanks.
Created attachment 246741 [details, diff] Patch for Autoconf >= 2.66 I've cleaned up the above patch. Same otherwise.
Pushed to upstream here: https://sourceforge.net/tracker/?func=detail&atid=108874&aid=3063825&group_id=8874
+ 10 Sep 2010; Samuli Suominen <ssuominen@gentoo.org> + libgphoto2-2.4.9.ebuild, +files/libgphoto2-2.4.9-dnl.patch: + Fix building with Autoconf >= 2.66 wrt #336598 by S. Holzbach.