From:             jtaisto at iocenter dot net
Operating system: Solaris 9
PHP version:      5.0.1
PHP Bug Type:     PHP options/info functions
Bug description:  linker issue

Description:
------------
Linker dies when trying to build with xml2 support.


Reproduce code:
---------------
export CC="gcc"
export CXX="gcc"
export CFLAGS="-O2 -m64 -mcpu=ultrasparc -mtune=ultrasparc"
export CXXFLAGS="-O2 -m64 -mcpu=ultrasparc -mtune=ultrasparc"
libxml2 build:./configure --prefix=/u1/xml/libxml2-2.6.13 \
--exec-prefix /u1/xml/libxml2-2.6.13/sparcv9 \
--with-xml2=/u1/xml/libxml2-2.6.13 \
--with-threads
./configure --with-libxml-dir=/u1/xml/libxml2-2.6.13/sparcv9 \
linker (/usr/ccs/bin/ld ) dies on this:  configure:18080: gcc -o conftest
-O2 -m64 -mcpu=ultrasparc -mtune=ultrasparc -pthreads 
-D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
-R/usr/ucblib -L/usr/ucblib
-R/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2
-L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2
-R/u1/xml/libxml2-2.6.13/sparcv9/lib -L/u1/xml/libxml2-2.6.13/sparcv9/lib
conftest.c 
-lresolv -lm -ldl -lnsl -lsocket  -lgcc -lxml2 -lz -lm -lsocket -lnsl
1>&5
configure: failed program was:
#line 18069 "configure"
#include "confdefs.h"
char xmlInitParser();
int main() {xmlInitParser();return 0;}

Expected result:
----------------
Not to see a fatal ld from the configure script.  Configure able to use
xml2 library that is most recent stable.  I've tried this even with just
32-bit using different version with no avail.  Can't seem to get a 64-bit
version supporting xml2 on Solaris 9 to work.


-- 
Edit bug report at http://bugs.php.net/?id=30156&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30156&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30156&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30156&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30156&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30156&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30156&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30156&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30156&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30156&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30156&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30156&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30156&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30156&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30156&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30156&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30156&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30156&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30156&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30156&r=mysqlcfg

Reply via email to