Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20688 - both dev-php/php-4.3.1 and dev-php/php-4.3.1-r1 fail to find libreadline even though it's installed
Summary: both dev-php/php-4.3.1 and dev-php/php-4.3.1-r1 fail to find libreadline even...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-09 06:01 UTC by Rev. Jeffrey Paul
Modified: 2003-09-26 17:10 UTC (History)
0 users

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


Attachments
config.log from php-4.3.1 emerge (config.log,55.45 KB, text/plain)
2003-05-11 16:42 UTC, Rev. Jeffrey Paul
Details
config.log from php-4.3.1 emerge (config.log,55.45 KB, text/plain)
2003-05-11 16:43 UTC, Rev. Jeffrey Paul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rev. Jeffrey Paul 2003-05-09 06:01:20 UTC
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"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-09 14:02:49 UTC
mod_php doesn't use readline.
Do you have 'readline' in your USE flags?
If you do, then it should be included, otherwise not.
Comment 2 Rev. Jeffrey Paul 2003-05-09 20:20:42 UTC
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
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-09 20:37:03 UTC
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)
Comment 4 Rev. Jeffrey Paul 2003-05-11 15:19:05 UTC
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 #
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-11 15:57:54 UTC
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.)
Comment 6 Rev. Jeffrey Paul 2003-05-11 16:42:48 UTC
Created attachment 11805 [details]
config.log from php-4.3.1 emerge
Comment 7 Rev. Jeffrey Paul 2003-05-11 16:43:03 UTC
Created attachment 11806 [details]
config.log from php-4.3.1 emerge
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-15 20:36:41 UTC
Could you please try the latest php (4.3.1-r2) and mod_php (4.3.1-r3)
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-26 17:10:12 UTC
closing old bugs.