ID: 25130 User updated by: sean dot healey at bayernlb dot co dot uk Reported By: sean dot healey at bayernlb dot co dot uk -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Solaris 9 PHP Version: 5.0.0b1 (beta1) New Comment:
Tried the latest CVS snapshot, and got the same problem. Here's the debug.log and my LD_LIBRARY_PATH / INCLUDE settings: bash-2.05# cat debug.log CONFIGURE: './configure' '--prefix=/opt/php' '--localstatedir=/var/php' '--with-apache2=/usr/build/httpd-2.0.47' '--with-apxs2=/opt/apache/2.0/bin/apxs' '--with-sybase-ct=/opt/sybase/11.9.2' '--with-db4' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' CC: gcc CFLAGS: -g -O2 -pthreads CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT CXX: CXXFLAGS: INCLUDES: -I$(top_builddir)/Zend -I/usr/local/include/libxml2 LDFLAGS: -L/usr/local/BerkeleyDB.4.1/lib -ldb-4.1 -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 -R/usr/local/BerkeleyDB.4.1/lib -L/usr/local/BerkeleyDB.4.1/lib -R/usr/local/lib -L/usr/local/lib LIBS: -ldb-4.1 -lresolv -lm -ldl -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl DLIBS: SAPI: apache2handler PHP_RPATHS: /usr/ucblib /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 /usr/local/BerkeleyDB.4.1/lib /usr/local/lib uname -a: SunOS tstsvr 5.9 Generic_112233-03 sun4m sparc SUNW,SPARCstation-20 gcc -o conftest -g -O2 -pthreads -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -L/usr/local/BerkeleyDB.4.1/lib -ldb-4.1 -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 -R/usr/local/BerkeleyDB.4.1/lib -L/usr/local/BerkeleyDB.4.1/lib -R/usr/local/lib -L/usr/local/lib conftest.c -ldb-4.1 -lresolv -lm -ldl -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5 ld: fatal: library -liconv: not found ld: fatal: library -liconv: not found ld: fatal: File processing errors. No output written to conftest collect2: ld returned 1 exit status bash-2.05# bash-2.05# bash-2.05# echo $LD_LIBRARY_PATH /opt/sybase/11.9.2/lib:/usr/openwin/lib:/usr/local/lib:/usr/ccs/lib bash-2.05# echo $INCLUDE /opt/sybase/11.9.2/include:/usr/openwin/include:/usr/local/include bash-2.05# I just got PHP 4.3.2 to successfully build on this same platform, so I'm probably not going to pursue the 5.0 route - unless it would be of some help to you guys. I'm happy to carry on bashing away at this if it will benefit your beta testing :-)) If not, let me know. Previous Comments: ------------------------------------------------------------------------ [2003-08-18 11:46:14] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip many bugs have been fixed in CVS since the beta was released. ------------------------------------------------------------------------ [2003-08-18 11:43:42] sean dot healey at bayernlb dot co dot uk Sorry, I should have mentioned that I did a search for the offending library: # find /usr -name iconv* -print /usr/bin/iconv /usr/lib/iconv /usr/lib/iconv/iconv_data /usr/include/iconv.h /usr/build/php-5.0.0b1/ext/iconv /usr/build/php-5.0.0b1/ext/iconv/tests/iconv001.phpt /usr/build/php-5.0.0b1/ext/iconv/tests/iconv002.phpt /usr/build/php-5.0.0b1/ext/iconv/tests/iconv003.phpt /usr/build/php-5.0.0b1/ext/iconv/tests/iconv_mime_decode.phpt /usr/build/php-5.0.0b1/ext/iconv/tests/iconv_mime_encode.phpt /usr/build/php-5.0.0b1/ext/iconv/tests/iconv_strlen.phpt /usr/build/php-5.0.0b1/ext/iconv/tests/iconv_strpos.phpt /usr/build/php-5.0.0b1/ext/iconv/tests/iconv_strrpos.phpt /usr/build/php-5.0.0b1/ext/iconv/tests/iconv_substr.phpt /usr/build/php-5.0.0b1/ext/iconv/iconv.c /usr/build/php-5.0.0b1/ext/iconv/iconv.dsp ------------------------------------------------------------------------ [2003-08-18 11:37:56] sean dot healey at bayernlb dot co dot uk Description: ------------ While trying to get PHP 5.0 to compile, I've found a couple of bugs in the configure script. 1. There are 2 instances of a call 'grep -E {...args...}' Under Solaris 9, the '-E' switch is only valid on the alternate version of grep - '/usr/xpg4/bin/grep'. I added the necessary path to these calls and the error went away. 2. I found that there are a number of instances of paths being built containing the string 'usrucb'. This should in fact be '/usr/ucb'. 3. Although I fixed the above, I still can't get it to compile - there seems to be some issue with inclusion of a library 'iconv'. I supply the bebug.log file below: # cat debug.log CONFIGURE: './configure' '--prefix=/opt/php' '--localstatedir=/var/php' '--with-apache2=/usr/build/httpd-2.0.47' '--with-apxs2=/opt/apache/2.0/bin/apxs' '--with-sybase-ct=/opt/sybase/11.9.2' '--with-db4' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' CC: gcc CFLAGS: -g -O2 -pthreads CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT CXX: CXXFLAGS: INCLUDES: -I/opt/apache/2.0/include -I$(top_builddir)/Zend -I/usr/include/libxml2 -I/usr/local/include/libxml2 LDFLAGS: -L/usr/local/BerkeleyDB.4.1/lib -ldb-4.1 -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 -R/usr/local/BerkeleyDB.4.1/lib -L/usr/local/BerkeleyDB.4.1/lib -R/usr/local/lib -L/usr/local/lib LIBS: -lz -ldb-4.1 -lresolv -lm -ldl -lnsl -lsocket -lgcc -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl DLIBS: SAPI: apache2handler PHP_RPATHS: /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 /usr/local/BerkeleyDB.4.1/lib /usr/local/lib uname -a: SunOS tstsvr 5.9 Generic_112233-03 sun4m sparc SUNW,SPARCstation-20 gcc -o conftest -g -O2 -pthreads -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -L/usr/local/BerkeleyDB.4.1/lib -ldb-4.1 -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3 -R/usr/local/BerkeleyDB.4.1/lib -L/usr/local/BerkeleyDB.4.1/lib -R/usr/local/lib -L/usr/local/lib conftest.c -lz -ldb-4.1 -lresolv -lm -ldl -lnsl -lsocket -lgcc -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5 ld: fatal: library -liconv: not found ld: fatal: File processing errors. No output written to conftest collect2: ld returned 1 exit status In the meantime, I'm going to download and compile the latest stable version. Cheers :-) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25130&edit=1