Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2149 - PHP 4.1.2-r8 couldn't find a required gettext library
Summary: PHP 4.1.2-r8 couldn't find a required gettext library
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jared H. Hudson
URL:
Whiteboard:
Keywords:
: 2171 (view as bug list)
Depends on:
Blocks: 2654
  Show dependency tree
 
Reported: 2002-04-27 07:27 UTC by Bram Voorzaat
Modified: 2002-05-21 10:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bram Voorzaat 2002-04-27 07:27:49 UTC
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.
Comment 1 Sven Jacobs 2002-04-28 03:18:49 UTC
I have the same problem though gettext and all other dependencies needed by php are installed... 
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2002-04-28 18:41:04 UTC
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?
Comment 3 Ryan Phillips (RETIRED) gentoo-dev 2002-04-28 21:45:38 UTC
*** Bug 2171 has been marked as a duplicate of this bug. ***
Comment 4 Ian Smith 2002-04-30 12:48:43 UTC
type env on the command line, and put env in the ebuild - diff ?

Sorry but I had to suggest it . . .
Comment 5 Andreas Erhart 2002-05-07 02:46:46 UTC
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} } 
Comment 6 Mike Williams 2002-05-07 05:12:11 UTC
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