checking for readline in -lreadline... no configure: error: readline library not found !!! ERROR: dev-php/php-4.3.1-r1 failed. !!! Function econf, Line 273, Exitcode 1 !!! econf failed the error is the same with both php-4.3.1 and php-4.3.1-r1. right before i found this problem, i did an "emerge sync" to try to fix it i've re-emerged readline and then i tried "env-update ; source /etc/profile". the problem is unchanged. Reproducible: Always Steps to Reproduce: 1. emerge php or ACCEPT_KEYWORDS="~ppc" emerge php 2. 3. Actual Results: php configure fails to find the readline library Expected Results: it should have found the installed version of readline i just installed mod-php-4.3.1 and that worked fine.... i assume php-as-a-module doesn't use readline? emerge info: Portage 2.0.47-r10 (default-ppc-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r8) ================================================================= System uname: 2.4.19-r6 ppc GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="oss mitshm png ppc gdbm berkdb slang readline gpm libwww ssl perl python oggvorbis aalib afs cdr crypt curl directfb -dvd encode -esd ethereal fbcon -gif -gnome -gtk -imlib ipv6 -jpeg -kde -motif -mozilla mpeg ncurses -nls oav -opengl -pam -qt samba -sdl snmp spell static -tcpd -truetype -X -xv zlib" COMPILER="" CHOST="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" ACCEPT_KEYWORDS="ppc" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="ccache"
mod_php doesn't use readline. Do you have 'readline' in your USE flags? If you do, then it should be included, otherwise not.
i know this. regardless of whether or not it's in my use flags, it's installed on the system and php isn't finding it. the way i see it, either the ebuild is giving the wrong options to configure, or there's a bug in the configure script and it needs to be patched to emerge properly (and thus should be masked or patched). kimu root # grep readline /etc/make.profile/use.defaults readline sys-libs/readline kimu root # grep readline /etc/make.conf kimu root # (to answer your question, yes, it's in my use flags. -j
could you please post the output of: "emerge -vkpD readline php mod_php" and "ACCEPT_KEYWORDS="~ppc" emerge -vkpD readline php mod_php" (eg once without the ~ppc and once with it)
it's worth mentioning that i got it to work with the following: USE="-readline" emerge php it still shouldn't break with +readline with readline installed though. the requested information follows: kimu root # emerge -vkpD readline php mod_php These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-libs/readline-4.3-r4 [ebuild R ] dev-php/php-4.3.1 -truetype -postgres -tiff +libwww -nls -jpeg +readline +ssl -oci8 -mysql -X +gdbm +curl -imap -xml2 -xml -cjk -pdflib -qt +snmp +crypt -flash -odbc -ldap +berkdb -freetds -firebird -pam +spell [ebuild R ] dev-php/mod_php-4.3.1 -java +spell +png -apache2 -truetype -postgres -tiff +libwww -nls -gd -jpeg +ssl -oci8 -mysql -X +gdbm +curl -imap -xml2 -xml -cjk -pdflib -qt +snmp +crypt -flash -odbc -ldap +berkdb -freetds -firebird -pam kimu root # ACCEPT_KEYWORDS="~ppc" emerge -vkpD readline php mod_php These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-libs/readline-4.3-r4 [ebuild U ] dev-php/php-4.3.1-r1 [4.3.1] -truetype -postgres -tiff +libwww -nls -jpeg +readline +ssl -oci8 -mysql -X +gdbm +curl -imap -xml2 -xml -cjk -pdflib -qt +snmp +crypt -flash -odbc -ldap +berkdb -freetds -firebird -pam +spell [ebuild U ] dev-php/mod_php-4.3.1-r2 [4.3.1] -java +png -apache2 -truetype -postgres -tiff +libwww -nls -gd -jpeg +ssl -oci8 -mysql -X +gdbm +curl -imap -xml2 -xml -cjk -pdflib -qt +snmp +crypt -flash -odbc -ldap +berkdb -freetds -firebird -pam +spell kimu root #
Please do: "emerge php" then when it crashes could you get: /var/tmp/portage/php-4.3.1*/work/php-4.3.1*/config.log and attach that here? (where 'php-4.3.1*' is the version that emerge tried to do.)
Created attachment 11805 [details] config.log from php-4.3.1 emerge
Created attachment 11806 [details] config.log from php-4.3.1 emerge
Could you please try the latest php (4.3.1-r2) and mod_php (4.3.1-r3)
closing old bugs.