Operating System - HP-UX
1835671 Members
2771 Online
110082 Solutions
New Discussion

Compilation error with PHP

 
brutkiewicz
Occasional Contributor

Compilation error with PHP

Hello,
I try to compile PHP 2.4.2
with the option --with-apxs=/

the here under error occurs.

Note: I have to launch the compilation on a server which does not hosts Oracle (accessible on another server). How can I compile the extension oci8 needed?

Thank you for your help,

Gilles.


./configure --prefix=/opt/php --enable-so --with-apxs=/opt/apache/bin/apxs
--enable-libgcc


Making all in Zend
Making all in main
Making all in ext
Making all in ctype
Making all in mysql
Making all in libmysql
Making all in pcre
Making all in pcrelib
Making all in posix
Making all in session
Making all in standard
Making all in xml
Making all in expat
Making all in sapi
Making all in apache
Making all in TSRM
Making all in regex
Making all in .
/bin/sh /u02/apache/php-4.2.3/libtool --silent --mode=link
gcc -I. -I/
02/apache/php-4.2.3/ -I/u02/apache/php-4.2.3/main -I/u02/apache/php-4.2.3 -I
/op
/apache/include -I/u02/apache/php-4.2.3/Zend -I/u02/apache/php-4.2.3/ext/mys
ql/
ibmysql -I/u02/apache/php-4.2.3/ext/xml/expat -DHPUX11 -DMOD_SSL=208111 -DU
SE_
SREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -DCHROOT -I/u02/apache/php-4.2.3/TSRM -g
-O
-prefer-pic -o libphp4.la -rpath
/u02/apache/php-4.2.3/libs -avoid-version -
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2 -R
/usr/local/lib/gcc-lib/hpp
2.0n-hp-hpux11.00/3.2 stub.lo Zend/libZend.la sapi/apache/libsapi.la
main/li
main.la regex/libregex.la /u02/apache/php-4.2.3/ext/ctype/libctype.la
/u02/ap
che/php-4.2.3/ext/mysql/libmysql.la
/u02/apache/php-4.2.3/ext/pcre/libpcre.la /
02/apache/php-4.2.3/ext/posix/libposix.la
/u02/apache/php-4.2.3/ext/session/lib
ession.la /u02/apache/php-4.2.3/ext/standard/libstandard.la
/u02/apache/php-4.2
3/ext/xml/libxml.la TSRM/libtsrm.la -lpam -lcrypt -lm -lnsl -lgcc -lcrypt

*** Warning: This library needs some functionality provided by -lcrypt.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lgcc.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lcrypt.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
/usr/ccs/bin/ld: Unexpected end of file in
.libs/libphp4.lax/libmain.al/main.lo
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
1 REPLY 1
benoit Bruckert
Honored Contributor

Re: Compilation error with PHP

PHP compilation with apxs is not easy, I don't know if the 4.2.3 solved some issues, but here's a thread with many details :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x531c36e69499d611abdb0090277a778c,00.html

About oci8, You need at least Oracle library installed to compile with OCI8.
To do that, you just have to install the client side + dev on your system. I don't see any other way to include OCI8 !!!

hth
Benoit

Une application mal pansée aboutit à une usine à gaze (GHG)