Hi all,
I am building PHP 5.2.13 on Solaris 10 u8 x86 using Sun Studio 12 u1.
I want to install php and all dependant libraries (for the php extensions)
in ${INSTALLDIR}. This is not a default library location, so I want all
paths to the libs to be compiled in.
I succeed in compiling it, but it needed a few tweaks and 'make test' fails
more than I want to.
The modules that needed some tweaks are 'gd' and 'oci8' with oracle
instantclient 10.2.
Here is my configure string and tweak for oci8 with instantclient:
# CC="/usr/bin/cc" CFLAGS="-xO4 -xtarget=generic" EXTRA_LIBS="-liconv"
../configure --prefix=${INSTALLDIR}/php
--with-config-file-path=${INSTALLDIR}/php --disable-cgi
--with-apxs2=${INSTALLDIR}/apache2/bin/apxs --with-zlib --with-bz2=shared
--without-sqlite --without-pgsql
--with-oci8=shared,instantclient,${INSTALLDIR}/instantclient_10_2
--with-mysql=shared,${INSTALLDIR}
--with-mysqli=shared,${INSTALLDIR}/bin/mysql_config
--with-pdo-mysql=shared,${INSTALLDIR} --with-libxml-dir=shared,${INSTALLDIR}
--with-xsl=shared,${INSTALLDIR} --with-gd --enable-exif
--enable-gd-native-ttf --with-jpeg-dir=${INSTALLDIR}
--with-png-dir=${INSTALLDIR} --with-t1lib=${INSTALLDIR}
--with-freetype-dir=${INSTALLDIR} --enable-calendar --enable-mbstring
--enable-sockets --enable-wddx --enable-zip --with-iconv-dir=${INSTALLDIR}
--with-ldap=shared,${INSTALLDIR} --with-mcrypt=shared,${INSTALLDIR}
--with-openssl=shared,${INSTALLDIR} --with-curl=shared,${INSTALLDIR}
--with-tidy=shared,${INSTALLDIR}
# cp Makefile Makefile.orig
# sed -e 's/^OCI8_SHARED_LIBADD.*/& -lnnz10/' Makefile.orig > Makefile
We use the oracle instantclient 10.2 for OCI8. At linking the nnz10 library
was neglected for some reason.
So I had to add it manually to the Makefile.
The EXTRA_LIBS variable was needed because the gd library requires iconv,
but the linker did not link to it.
Compilation succeeds, but 'make test' fails.
Can someone shed some light on these issues? Should these be considered
(minor) bugs?
Thanks in advance.
--
Kind regards,
Kristof Van Damme.
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]