Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336598 - media-libs/libgphoto2-2.4.9 fails to compile with sys-devel/autoconf-2.67
Summary: media-libs/libgphoto2-2.4.9 fails to compile with sys-devel/autoconf-2.67
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://sourceforge.net/tracker/?func...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 14:36 UTC by S.Holzbach
Modified: 2010-09-10 18:25 UTC (History)
4 users (show)

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


Attachments
emerge --info (emergeinfo.txt,4.06 KB, text/plain)
2010-09-09 16:01 UTC, hind
Details
adds missing []'s (libgphoto2-2.4.9-autoconf-2.67.patch,956 bytes, patch)
2010-09-10 15:32 UTC, Samuli Suominen (RETIRED)
Details | Diff
Actually, only one set of []'s seem required (foo.patch,952 bytes, patch)
2010-09-10 15:39 UTC, Samuli Suominen (RETIRED)
Details | Diff
Patch for Autoconf >= 2.66 (libgphoto2-2.4.9-dnl.patch,471 bytes, patch)
2010-09-10 18:08 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description S.Holzbach 2010-09-09 14:36:01 UTC
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
Comment 1 hind 2010-09-09 16:01:00 UTC
Created attachment 246617 [details]
emerge --info

I can confirm this on amd64, attached emerge --info.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-09-09 18:29:15 UTC
Proper solution: remove pkg.m4 from the directory.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-09 22:34:15 UTC
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 ?
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-09-10 15:32:28 UTC
Created attachment 246727 [details, diff]
adds missing []'s

Try this...
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-09-10 15:39:41 UTC
Created attachment 246731 [details, diff]
Actually, only one set of []'s seem required

better one
Comment 6 Lubomir Krajcovic 2010-09-10 17:12:18 UTC
(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.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-09-10 18:08:01 UTC
Created attachment 246741 [details, diff]
Patch for Autoconf >= 2.66

I've cleaned up the above patch. Same otherwise.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-09-10 18:16:30 UTC
Pushed to upstream here:

https://sourceforge.net/tracker/?func=detail&atid=108874&aid=3063825&group_id=8874
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2010-09-10 18:25:38 UTC
+  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.