When I try to compile gnokii 0.6.27-r2 or 0.6.27-r4 I get following error. # emerge -av gnokii These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] app-mobilephone/gnokii-0.6.27-r4 [0.6.22-r2] USE="sms -X -bluetooth -debug -ical -irda -mysql -nls -postgres -usb" LINGUAS="pl -cs -de -et -fi -fr -it -nl -pt -sk -sl -sv -zh_CN" 0 kB Total: 1 package (1 upgrade), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Emerging (1 of 1) app-mobilephone/gnokii-0.6.27-r4 * gnokii-0.6.27.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.20.21-20.chilan * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking gnokii-0.6.27.tar.bz2 to /var/tmp/portage/app-mobilephone/gnokii-0.6.27-r4/work >>> Source unpacked in /var/tmp/portage/app-mobilephone/gnokii-0.6.27-r4/work >>> Preparing source in /var/tmp/portage/app-mobilephone/gnokii-0.6.27-r4/work/gnokii-0.6.27 ... * Applying gnokii-0.6.27-icon.patch ... [ ok ] * Applying gnokii-0.6.27-disable-database.patch ... [ ok ] * Applying gnokii-0.6.27-TP-PI.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/app-mobilephone/gnokii-0.6.27-r4/work/gnokii-0.6.27' ... * Running aclocal -I m4 ... [ ok ] * Running libtoolize --copy --force --automake ... [ ok ] * Running aclocal -I m4 ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] * Running automake --add-missing --copy ... [ ok ] * Running elibtoolize in: gnokii-0.6.27 * Applying portage-1.5.10.patch ... * Applying sed-1.5.6.patch ... * Applying as-needed-1.5.26.patch ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-mobilephone/gnokii-0.6.27-r4/work/gnokii-0.6.27 ... * econf: updating gnokii-0.6.27/config.sub with /usr/share/gnuconfig/config.sub * econf: updating gnokii-0.6.27/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-nls --disable-libical --disable-libusb --disable-irda --disable-bluetooth --without-x --enable-smsd --disable-mysql --disable-postgres --disable-fulldebug --disable-xdebug --disable-rlpdebug --enable-security --disable-unix98test --enable-libpcsclite configure: WARNING: unrecognized options: --disable-nls checking build system type... i486-pc-linux-gnu checking host system type... i486-pc-linux-gnu checking target system type... i486-pc-linux-gnu checking for i486-pc-linux-gnu-gcc... i486-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i486-pc-linux-gnu-gcc accepts -g... yes checking for i486-pc-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... i486-pc-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of i486-pc-linux-gnu-gcc... gcc3 checking for i486-pc-linux-gnu-gcc... (cached) i486-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i486-pc-linux-gnu-gcc accepts -g... (cached) yes checking for i486-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed checking whether i486-pc-linux-gnu-gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... i486-pc-linux-gnu-gcc -E checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for rm... /bin/rm checking for find... /usr/bin/find checking for gmake... gmake checking for ar... ar checking for a BSD-compatible install... /usr/bin/install -c ./configure: line 6330: syntax error near unexpected token `0.35.0' ./configure: line 6330: `IT_PROG_INTLTOOL(0.35.0)' !!! Please attach the following file when seeking support: !!! /var/tmp/portage/app-mobilephone/gnokii-0.6.27-r4/work/gnokii-0.6.27/config.log * * ERROR: app-mobilephone/gnokii-0.6.27-r4 failed. * Call stack: * ebuild.sh, line 49: Called src_configure * environment, line 3419: Called econf '--disable-nls' '--disable-libical' '--disable-libusb' '--disable-irda' '--disable-bluetooth' '--without-x' '--enable-smsd' '--disable-mysql' '--disable-postgres' '--disable-fulldebug' '--disable-xdebug' '--disable-rlpdebug' '--enable-security' '--disable-unix98test' '--enable-libpcsclite' * 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/app-mobilephone/gnokii-0.6.27-r4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-mobilephone/gnokii-0.6.27-r4/temp/environment'. * >>> Failed to emerge app-mobilephone/gnokii-0.6.27-r4, Log file: >>> '/var/tmp/portage/app-mobilephone/gnokii-0.6.27-r4/temp/build.log' Reproducible: Always Steps to Reproduce: 1. export USE="sms"; export LINGUAS="pl" 2. emerge gnokii Actual Results: Fails on configure stage.
# emerge --info Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.20.21-21.chilan i686) ================================================================= System uname: Linux-2.6.20.21-21.chilan-i686-AMD_Athlon-tm-_64_Processor_3800+-with-gentoo-1.12.11.1 Timestamp of tree: Tue, 25 Aug 2009 12:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-lang/python: 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i486-pc-linux-gnu" CFLAGS="-O2 -mtune=i686 -pipe" CHOST="i486-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.prz.rzeszow.pl/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="pl" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="berkdb bzip2 cli cracklib crypt dri gdbm iconv isdnlog mmx mudflap ncurses nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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 unique_id usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Did you try emerging intltool ? Though, that configure warning does mean that other fixes to the ebuild may be needed.
(In reply to comment #2) > Did you try emerging intltool ? > Though, that configure warning does mean that other fixes > to the ebuild may be needed. As for now emerging dev-perl/XML-Parser-2.36 dev-util/intltool-0.40.5 solves the problem for gnokii-0.6.27-r4. Didn't try with gnokii-0.6.27-r2.
This raises a question of why it didn't fail during eautoconf. And there's still that configure warning.
(In reply to comment #4) > This raises a question of why it didn't fail > during eautoconf. > And there's still that configure warning. When I remove intltool and XML-Parser and comment eautoreconf in src_unpack(), it causes: checking whether yytext is a pointer... yes checking for rm... /bin/rm checking for find... /usr/bin/find checking for gmake... gmake checking for ar... ar checking for a BSD-compatible install... /usr/bin/install -c checking for intltool >= 0.35.0... 0.37.1 found checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for msgfmt... /usr/bin/msgfmt checking for perl... /usr/bin/perl checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
After commenting eautoreconf and installing XML-Parser (I still don't have intltool installed) I have: <cut> rlpdebug --enable-security --disable-unix98test --enable-libpcsclite checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of i686-pc-linux-gnu-gcc... gcc3 checking whether i686-pc-linux-gnu-gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for rm... /bin/rm checking for find... /usr/bin/find checking for gmake... gmake checking for ar... ar checking for a BSD-compatible install... /usr/bin/install -c checking for intltool >= 0.35.0... 0.37.1 found checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for msgfmt... /usr/bin/msgfmt checking for perl... /usr/bin/perl checking for XML::Parser... ok checking for nl_langinfo and CODESET... yes <cut> config.status: creating include/links/Makefile config.status: creating include/gnokii/Makefile config.status: creating common/gnokii.pc config.status: creating common/Makefile config.status: creating common/data/Makefile config.status: creating common/devices/Makefile config.status: creating common/links/Makefile config.status: creating common/phones/Makefile config.status: creating gnokii/Makefile config.status: creating gnokiid/Makefile config.status: creating smsd/Makefile config.status: creating utils/Makefile config.status: creating xgnokii/xgnokii.pc config.status: creating xgnokii/Makefile config.status: creating xgnokii/xpm/Makefile config.status: creating xgnokii/docs/Makefile config.status: creating xgnokii/docs/help/pl_PL/netmon/Makefile config.status: creating xgnokii/docs/help/pl_PL/netmon/gsm/Makefile config.status: creating xgnokii/docs/help/pl_PL/Makefile config.status: creating xgnokii/docs/help/en_US/firmware/Makefile config.status: creating xgnokii/docs/help/en_US/netmon/Makefile config.status: creating xgnokii/docs/help/en_US/Makefile config.status: creating xgnokii/docs/help/Makefile config.status: creating po/Makefile.in config.status: creating patches/Makefile config.status: creating testsuite/Makefile config.status: creating testsuite/data/Makefile config.status: creating win32/Makefile config.status: creating include/config.h config.status: executing depfiles commands config.status: executing intltool commands config.status: executing default-1 commands config.status: executing po/stamp-it commands G N O K I I A toolset and driver for the mobile phones. Copyright (C) 1999-2008 The Gnokii Development Team. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See file COPYING for more details. Host system: linux-gnu Gnokii version: 0.6.27 Xgnokii version: 1.0 SMSD version: 1.4.3 X (GTK+) support: no smsd support: yes Postgres support: no MySQL support: no Debug: yes XDebug: no RLPDebug: no NLS: yes IrDA: no ical read support: no Bluetooth: no libusb support: no libpcsclite support:yes readline support: yes Security: yes Build Shared Lib: yes Build Static Lib: yes Win32: no Prefix: /usr Type 'gmake' for compilation and then 'gmake install', to install gnokii. make -j5 cd . && /bin/sh /var/tmp/portage/app-mobilephone/gnokii-0.6.27-r2/work/gnokii-0.6.27/missing --run aclocal-1.10 -I m4 ac-wrapper: warning: invalid WANT_AUTOCONF 'latest'; ignoring. cd . && /bin/sh /var/tmp/portage/app-mobilephone/gnokii-0.6.27-r2/work/gnokii-0.6.27/missing --run autoconf cd . && /bin/sh /var/tmp/portage/app-mobilephone/gnokii-0.6.27-r2/work/gnokii-0.6.27/missing --run automake-1.10 --gnu ac-wrapper: warning: invalid WANT_AUTOCONF 'latest'; ignoring. ac-wrapper: warning: invalid WANT_AUTOCONF 'latest'; ignoring. /bin/sh ./config.status --recheck running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-nls --disable-libical --disable-libusb --disable-irda --disable-bluetooth --without-x --enable-smsd --disable-mysql --disable-postgres --disable-fulldebug --disable-xdebug --disable-rlpdebug --enable-security --disable-unix98test --enable-libpcsclite build_alias=i686-pc-linux-gnu host_alias=i686-pc-linux-gnu CFLAGS=-O2 -march=i686 -pipe LDFLAGS=-Wl,-O1 CXXFLAGS=-O2 -march=i686 -pipe --no-create --no-recursion configure: WARNING: unrecognized options: --disable-nls checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of i686-pc-linux-gnu-gcc... gcc3 checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes checking for i686-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed checking whether i686-pc-linux-gnu-gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for rm... /bin/rm checking for find... /usr/bin/find checking for gmake... gmake checking for ar... ar checking for a BSD-compatible install... /usr/bin/install -c ./configure: line 6330: syntax error near unexpected token `0.35.0' ./configure: line 6330: `IT_PROG_INTLTOOL(0.35.0)' make: *** [config.status] Error 2 make: *** Waiting for unfinished jobs....
Do You have older version of this ebuild, so we could see how it's done there?
Calling 'ebuild /usr/portage/app-mobilephone/gnokii/gnokii-0.6.27-r2.ebuild unpack' then removing line 6330 from /var/tmp/portage/app-mobilephone/gnokii-0.6.27-r2/work/gnokii-0.6.27/configure: `IT_PROG_INTLTOOL(0.35.0)' and calling 'ebuild /usr/portage/app-mobilephone/gnokii/gnokii-0.6.27-r2.ebuild compile' solves the problem for me. All this is done without intltool and XML-Parser installed. So maybe it's bug in eautoreconf ?
IT_PROG_INTLTOOL(0.35.0) is not an error. The call of that macro makes it simply necessary to have intltool installed, if using eautoreconf.
(In reply to comment #9) > IT_PROG_INTLTOOL(0.35.0) is not an error. > The call of that macro makes it simply necessary > to have intltool installed, if using eautoreconf. As You can see intltool is not needed in order to properly build this package, so why this macro is added ? What solution do You propose, add intltool as dependency, patching 'configure' file after eautoreconf or other ?
Fixed in cvs by adding dev-util/intltool to DEPEND.