While updating PHP to 4.1.2-r8 using emerge -u world, configure died with the following error message: checking whether to include GNU gettext support... yes checking for bindtextdomain in -lintl... no checking for bindtextdomain in -lc... no configure: error: Unable to find required gettext library !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 78, Exitcode 1 !!! bad ./configure !!! emerge aborting on /usr/portage/dev-lang/php/php-4.1.2-r8.ebuild . Installing the Berkeley Internet Name Deamon by runnning 'emerge bind' did not solve this problem, gettext was already installed and up-to-date on my system.
I have the same problem though gettext and all other dependencies needed by php are installed...
I've reverted the ebuild back to seemant's original build. drobbins: the --with-gettext option needs to be passed to configure to enable nls support. ./configure --with-gettext works fine from the commandline, but fails from within emerge php. Ideas?
*** Bug 2171 has been marked as a duplicate of this bug. ***
type env on the command line, and put env in the ebuild - diff ? Sorry but I had to suggest it . . .
commenting out all the java stuff in the ebuild's src_unpack function did the trick for me. configure now detects far more options for example in libgd and others - didn't test java though because I don't need it. Just setting USE=-java didn't work. My src_unpack(): src_unpack() { unpack ${P}.tar.gz cd ${S} }
export USE="-jave $USE" && emerge php works like you (andi@zollhaus.net) found, without editing the ebuild. Compilation barfs now: /bin/sh /var/tmp/portage/php-4.1.2-r9/work/php-4.1.2/libtool --silent --mode=link gcc -I. -I/var/tmp/portage/php-4.1.2-r9/work/php-4.1.2/ -I/var/tmp/portage/php-4.1.2-r9/work/php-4.1.2/main -I/var/tmp/portage/php-4.1.2-r9/work/php-4.1.2 -I/usr/include/apache -I/var/tmp/portage/php-4.1.2-r9/work/php-4.1.2/Zend -I/usr/include/libxml2 -I/usr/include/freetype -I/var/tmp/portage/php-4.1.2-r9/work/php-4.1.2/ext/mysql/libmysql -I/var/tmp/portage/php-4.1.2-r9/work/php-4.1.2/ext/xml/expat -DHARD_SERVER_LIMIT=512 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET="apache" -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM -I/var/tmp/portage/php-4.1.2-r9/work/php-4.1.2/TSRM -march=i686 -O3 -pipe -prefer-pic -o libphp4.la -rpath /var/tmp/portage/php-4.1.2-r9/work/php-4.1.2/libs -export-symbols /var/tmp/portage/php-4.1.2-r9/work/php-4.1.2/sapi/apache/php.sym -avoid-version -L/usr/X11R6/lib -R /usr/X11R6/lib stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/zlib/libzlib.la ext/bcmath/libbcmath.la ext/bz2/libbz2.la ext/calendar/libcalendar.la ext/dba/libdba.la ext/dbase/libdbase.la ext/domxml/libdomxml.la ext/ftp/libftp.la ext/gd/libgd.la ext/gmp/libgmp.la ext/mcrypt/libmcrypt.la ext/mhash/libmhash.la ext/mysql/libmysql.la ext/openssl/libopenssl.la ext/pcre/libpcre.la ext/pdf/libpdf.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/sysvsem/libsysvsem.la ext/sysvshm/libsysvshm.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl -lz -ljpeg -lpng -ltiff -lpdf -lmhash -lmcrypt -lltdl -lgmp -lgd -lttf -lX11 -lXpm -lpng -lz -ljpeg -lz -lxml2 -ldb-3 -lgdbm -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lresolv -lcrypt /usr/i686-pc-linux-gnu/bin/ld: cannot find -lintl collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/var/tmp/portage/php-4.1.2-r9/work/php-4.1.2' make: *** [all-recursive] Error 1 nothing I can find supplies libintl