Operating System - HP-UX
1754357 Members
4545 Online
108813 Solutions
New Discussion юеВ

PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11

 
SOLVED
Go to solution
Mauro Scarlata
Frequent Advisor

PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11

hi,

I'm trying to install a webportal on new-server and I need to compile PHP 5.0.3 as a static module on HP-UX 11.11 with apache 1.3.33.

When I run:
./configure --with-apache=../apache_1.3.33 --with-oracle=/oracle/ora92 --with-oci8=/oracle/ora92 --with-config-file-path=/web/apache/conf --with-mysql

the output is:
.............
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.
webport-/opt/depot-inst/php-5.0.3 :

In attachment:
- config.log
- new-server manifest.info
- new-server "swlist -l product" output


On another old-server the installation is ok but on the old-server there are more patches than the new-server and I don't know what patches have to install.

I installed:
- PHSS_30970
- PHSS_28435

but I had the same error.

In attachment:
- old-server patch list
- old-server manifest.info
- old-server "swlist -l product" output

what am I missing?

Thanks a lot,

Mauro
40 REPLIES 40
Denver Osborn
Honored Contributor

Re: PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11

either disable LIBXML support or get the appropriate lib and include files needed


to disable, try these configure flags.

--disable-simplexml
--disable-libxml

hope this helps,
-denver
Steven E. Protter
Exalted Contributor

Re: PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11

I've seen other people trying to do this.

They have failed.

HP-UX has pre-built sd/ux comaptible releases of the web suite that includes Tomcat v 4.x

Those work with and are even compatible with Oracle.

Suggestions: use a version of the httpd/web server that ships with Oracle. Don't use Tomcat 5.x as its not been tested or certified with Oracle.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mauro Scarlata
Frequent Advisor

Re: PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11

hi,

I've tried to disable like you say: nothing good :(

I know that php needs libxml. Infact I installed libxml2.

I installed the same software on another test -server and it's OK.

do I have install some patches?

tks
Mauro
Mauro Scarlata
Frequent Advisor

Re: PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11


Have you seen confgig.log:

it has many errors about gcc.
............

/usr/local/lib/libxml2.sl: file not recognized: File format not recognized
.......................

The system don't recognize .sl file?

thk for any help

Mauro


Alex Lavrov.
Honored Contributor

Re: PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11

In general, I support Steven. Many ppl tried it ...

How did you install libxml? What are the messages of configure script? Is it looking for shared library in the worng place?
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Mauro Scarlata
Frequent Advisor

Re: PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11

hi,

I've used a Libxml2 2.6.15 Depot.

I don't know if the problem is only libxml, but it's the last error in the config.log (in attachment you can find the details).

I've just set the SHLIB_PATH with the paths of gcc and ORACLE_HOME: is it the right way?

I haven't said a thing: one different from old-server and new-server:
- old-server: Oracle 8.1.7
- new-server: Oracle 9.2.0.6

could it be a problem?

Thank you so much for your time

Mauro
Alex Lavrov.
Honored Contributor

Re: PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11

Can please post here the output of:

ll /usr/local/lib/libxml2.sl
what /usr/local/lib/libxml2.sl
file /usr/local/lib/libxml2.sl


I don't give a damn for a man that can only spell a word one way. (M. Twain)
Ermin Borovac
Honored Contributor

Re: PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11

From your config.log it seems that you are using 64-bit gcc to compile PHP. libxml2.sl is probably 32-bit, so 64-bit gcc is rejecting it as it expects 64-bit library.

32-bit gcc is typically installed in /usr/local/bin/gcc and 64-bit one is in /usr/local/pa64/bin/gcc (that's if you got the HP depot from http://www.hp.com/go/gcc).

Make sure that 32-bit gcc is found first in your $PATH and try compiling again. Or try

$ CC=/usr/local/bin/gcc ./configure ...
Alex Lavrov.
Honored Contributor

Re: PHP 5.0.3 - Apache 1.3.33 - HP-UX 11.11

Generally the error of 32/64 problems is in mmap() system call ....
I don't give a damn for a man that can only spell a word one way. (M. Twain)