Here's the output from emerge -va dev-php5/php-java-bridge >>> Emerging (1 of 4) dev-php5/php-java-bridge-2.0.8 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking php-java-bridge_2.0.8.tar.bz2 ;-) PORTAGE_GPG_DIR is invalid. Removing gpg from FEATURES. * * Using dev-lang/php-5.1.4-r4 * * Checking for required PHP feature(s) ... PORTAGE_GPG_DIR is invalid. Removing gpg from FEATURES. >>> Unpacking source... >>> Unpacking php-java-bridge_2.0.8.tar.bz2 to /var/tmp/portage/php-java-bridge-2.0.8/work PORTAGE_GPG_DIR is invalid. Removing gpg from FEATURES. * Applying zend_backtrace_api_change.diff ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/php-java-bridge-2.0.8/work/php-java-bridge-2.0.8 ... Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 PORTAGE_GPG_DIR is invalid. Removing gpg from FEATURES. PORTAGE_GPG_DIR is invalid. Removing gpg from FEATURES. PORTAGE_GPG_DIR is invalid. Removing gpg from FEATURES. creating cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking how to run the C preprocessor... cc -E checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking for gcc... gcc checking whether the C compiler (gcc -O2 -march=athlon -pipe -fomit-frame-pointer -funit-at-a-time -fweb -frename-registers ) works... yes checking whether the C compiler (gcc -O2 -march=athlon -pipe -fomit-frame-pointer -funit-at-a-time -fweb -frename-registers ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for PHP prefix... /usr/lib/php5 checking for PHP includes... -I/usr/lib/php5/include/php -I/usr/lib/php5/include/php/main -I/usr/lib/php5/include/php/TSRM -I/usr/lib/php5/include/php/Zend -I/usr/lib/php5/include/php/ext checking for PHP extension directory... /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20050922 checking for PHP installed headers prefix... /usr/lib/php5/include/php checking for re2c... re2c checking for re2c version... 0.10.4 (ok) checking for gawk... gawk ./configure: line 2530: syntax error near unexpected token `tests.m4/function_checks.m4' ./configure: line 2530: `m4_include(tests.m4/function_checks.m4)' !!! ERROR: dev-php5/php-java-bridge-2.0.8 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile php-java-bridge-2.0.8.ebuild, line 48: Called php-ext-source-r1_src_compile php-ext-source-r1.eclass, line 56: Called die !!! Unable to configure code to compile !!! If you need support, post the topmost build error, and the call stack if relevant. here's emerge --info PORTAGE_GPG_DIR is invalid. Removing gpg from FEATURES. Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.4.20040808-r1,glibc-2.3.6-r4, 2.6.16-gentoo-r7 i686) ================================================================= System uname: 2.6.16-gentoo-r7 i686 AMD Athlon(tm) processor Gentoo Base System version 1.6.15 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.8.1-r1, 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer -funit-at-a-time -fweb -frename-registers" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer -funit-at-a-time -fweb -frename-registers" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict stricter userfetch" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/ http://194.117.143.69 ftp://194.117.143.69/mirrors/gentoo http://194.117.143.71 ftp://194.117.143.72/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LC_ALL="en_GB.utf8" MAKEOPTS="-j2" 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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X509 Xaw3d aac aalib accessibility aci8 acl acpi adbc adns alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 calendar caps cdb cdparanoia cdr cli cpudetection crypt cscope ctype cups curl curlwrappers dba dga directfb dlloader dri dvd dvdr dvdread eds emboss encode esd ethereal evo exif expat extraengine fam fastbuild fastcgi fbcon flac flash floomaticdb foomaticdb fortran ftp gd gdbm ggi gif glibc-omitfp gmp gpg gpm gstreamer hash hpn iconv idea imap imlib inifile innodb ipv6 isdnlog jack jack-tmpfs java java-external javascript jikes joystick jpeg jpeg2k junit justify kde kerberos ladcca ldap libcaca libclamav libg++ libwww live lm_sensors lzo lzw-tiff mad maildir matroska mbox mcal md5sum mhash mikmod ming mmap mmx mmxext motif mp3 mpeg mpi mysql mysqli nas ncurses nls nocardbus nodrm nptl nptlonly nvidia objc ogg oggvorbis oss pam pcntl pcre pda pdflib pear perl php pic pmg png posix postgres ppds pppd python qt qt3 qt4 quicktime readline real reflection rtc ruby samba sasl scanner sdk sdl session sharedext sharedmem simplexml skey slang slp snmp soap sockets speex spell spl sqlite ssl svga sysvipc tcltk tcpd tetex tetx tga theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb utf8 v4l v4l2 videos vorbis wifi win32codecs wmf wxwindows x509 xanim xine xml xml2 xmlreader xmlrpc xmlwriter xorg xpm xsl xvid xvnn zeo zip zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_sis" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
bug-wranglers@gentoo.org
This appears to be because the wrong version (2.13) of autoconf is being used (m4_include is not available in version 2.13). export WANT_AUTOCONF=2_5 before emerge fixed the problem for me.
(In reply to comment #2) > This appears to be because the wrong version (2.13) of autoconf is being used > (m4_include is not available in version 2.13). > > export WANT_AUTOCONF=2_5 before emerge fixed the problem for me. > It didn't work for me. I have 2 computers... and I managed to emerge php-java-bridge just on the first one. I tried to check dependencies on the 2nd, re-emerged gawk, m4... without success. Today I tried to emerge "again" on the 1st computer and it fails too. I'm gonna check /var/log/emerge.log to see if I find a clue. According to me, an update is responsible of this emerge failure.
(In reply to comment #3) > It didn't work for me. Just a hunch but autoconf 2.60 is in Portage as unstable, so if you have that installed I think you will need to use WANT_AUTOCONF=2_6 instead, i.e.: # export WANT_AUTOCONF=2_6 # emerge -av dev-php5/php-java-bridge But I'm not able to test this for myself so it's just a guess.
(In reply to comment #4) > Just a hunch but autoconf 2.60 is in Portage as unstable, so if you have that > installed I think you will need to use WANT_AUTOCONF=2_6 instead, i.e.: No. WANT_AUTOCONF="2.5" includes autoconf-2.60; and note there's dot, not underscore ;)
(In reply to comment #5) > No. WANT_AUTOCONF="2.5" includes autoconf-2.60; and note there's dot, not > underscore ;) Oops! You're right. It was: # WANT_AUTOCONF=2.5 emerge dev-php5/php-java-bridge that worked for me. Sorry!
it seems that same issue is with dev-php4/php-java-bridge-2.0.8 and WANT_AUTOCONF=2.5 emerge dev-php4/php-java-bridge helps
Same failure on a pretty vanilla ~amd64 during the 2006.1 profile update. In that Process I switched gcc from 3.4.6 to 4.1.1 and therefor did emerge -e system, this was the first thing that failed. WANT_AUTOCONF=2.5 emerge dev-php5/php-java-bridge did the trick here too. Is autoconf 2.5 unstable? Otherwise the ebuild should request it.
afaict gawk has nothing to do with this, it chokes on m4_include(path/file.m4) calls.
Created attachment 98592 [details, diff] add WANT_AUTOCONF variable see attached patch, it indeed fixes compilation as previous reporters pointed out
*** Bug 150412 has been marked as a duplicate of this bug. ***
This bug has cost me one (1) searching the Internet, resyncing, reemerging etc. The simple solution of the attachment (the addWANT_AUTOCONFvariable attachment) solved the problem for me. I strongly suggest someone includes it into "mainstream" and change the status of this bug to FIXED. Very good work guys - keep it up! Chris Karakas http://www.karakas-online.de
(In reply to comment #12) > This bug has cost me one (1) searching the Internet, resyncing, reemerging etc. 1 day, that is. ;-)
WANT_AUTOCONF=2.5 emerge dev-php5/php-java-bridge worked for me as well on 2006.1 with amd64 and gentoo-2.6.16-hardened-r11
Fixed in both dev-php4/php-java-bridge and dev-php5/php-java-bridge by adding "export WANT_AUTOMAKE=1.9 WANT_AUTOCONF=2.5" to src_compile. Please emerge --sync in a couple of hours to get the fix. Best regards, CHTEKK.
Created attachment 99688 [details, diff] php-java-bridge-2.0.8.ebuild.diff OK, current fix is not entirely correct, you are missing automake/autoconf dependency there (which are no longer in system). The above takes cares of the dependencies and also export the variables for compile via autotools.eclass
Reopening so that this can get fixed properly. :)
This is now correctly fixed in the eclass, which depends and sets the correct autotools stuff. Best regards, CHTEKK.