I have attempted and failed to build PHP 5 from the latest snapshot (19 Aug
2003).

I've just successfully built PHP 4.3.2 on this very same platform, so I
thought I'd send you the post-mortem in case its of some use to you.
Unfortunately I'm not very familiar with C development, so I can't offer any
opinion on likely reasons why the 'iconv' library seems to be failing to
load.

I provide below the debug.log file, and my current LD_LIBRARY_PATH and
INCLUDE settings, which worked ok with 4.3.2

Let me know if theres any other information I can provide which would help
debugging this...


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#




Sean Healey
Database Administrator
Bayerische Landesbank
+44 207 955 5108 


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to