Operating System - HP-UX
1827439 Members
5350 Online
109965 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)
Mauro Scarlata
Frequent Advisor

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

hi alex,

this is the output:

-------------------------------------------------------------------------------------

new-server where I have the problem

-----------------------------------------
webport-/ : ll /usr/local/lib/libxml2.sl
-r-xr-xr-x 1 root sys 1642496 Oct 28 2004
/usr/local/lib/libxml2.sl
-----------------------------------------
webport-/ : what /usr/local/lib/libxml2.sl
/usr/local/lib/libxml2.sl:
$Id: trionan.c,v 1.14 2003/10/15 08:17:58 veillard Exp $
-----------------------------------------
file /usr/local/lib/libxml2.sl
/usr/local/lib/libxml2.sl: PA-RISC1.1 shared library
-----------------------------------------------------------------------------------------

old-server where webportal is correctly installed

------------------------------------------
root@bunny:/ > ll /usr/local/lib/libxml2.sl
-r-xr-xr-x 1 root sys 1642496 Oct 28 2004 /usr/local/lib/libxml2.sl
------------------------------------------
root@bunny:/ > what /usr/local/lib/libxml2.sl
/usr/local/lib/libxml2.sl:
$Id: trionan.c,v 1.14 2003/10/15 08:17:58 veillard Exp $
-------------------------------------------
root@bunny:/ > file /usr/local/lib/libxml2.sl
/usr/local/lib/libxml2.sl: PA-RISC1.1 shared library
root@bunny:/ >
---------------------------------------------------------------------------------------------------

tks
Mauro
Alex Lavrov.
Honored Contributor

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

Your libxml is 32bit, so the problem is probably like it was mentioned before, that you are trying to compile 64bit application with 32bit shared library.

It's not gonna work.

Install this 64bit version:
http://hpux.cs.utah.edu/hppd/hpux/Gnome/libxml2-2.6.17/
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 alex
hi ermin

see the attchment!

I try to install libxml 64!

THANKS!

:)
Mauro Scarlata
Frequent Advisor

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

hi,

what is the correct way to set SHLIB_PATH?

thanks

Muaro
Alex Lavrov.
Honored Contributor

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

export SHLIB_PATH=/usr/lib:/my/lib:/your/lib
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,
on the old-server I've just installed all the same software whit 32-bit gcc, so before to change libxml2 I'm trying to install on new-server all the same software using 32-bit gcc (I've changed the env and now 32-bit gcc is found first in my $PATH).

I've tried to install but....it fails

In attachment:
config.log
.profile


Thanks

Mauro
Alex Lavrov.
Honored Contributor

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

What version of gcc do you have?

gcc -v
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

Reading specs from /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3.3/specs
Configured with: /scratch/zack/pkgbuild/3.3.1/hpux-11/gcc-3.3.3/configure --enable-languages=c,c++ --enable-threads=posix --disable-nls --with-gnu-as --without-gnu-ld --with-as=/usr/local/bin/as --prefix=/usr/local
Thread model: posix
gcc version 3.3.3



Alex Lavrov.
Honored Contributor

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

well, replacing gcc with 32bit is not enough. as I can see from the log, ld (linker) has some problems.

Anyway, I don't see any point in compiling 32bit programs on 64bit system.

Did you try to install libxml2 from the link I sent you?
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

PHP has many dependencies. Next one on the list is zlib (looking at your config.log). It will install libz.sl in /usr/local/lib.

http://hpux.cs.utah.edu/hppd/hpux/Misc/zlib-1.2.2
Mauro Scarlata
Frequent Advisor

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

I've installed libxml2-2.6.17-sd-11.11.depot

--------------------------------------------------------
then I've tried to compile with 32-bit gcc

SHLIB_PATH=/usr/lib

PATH=/usr/local/bin:/usr/local/lib:/usr/local/pa64/bin/:/usr/local/pa64/lib/:/usr/sbin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/resmon/bin:/opt/pd/bin:/opt/gnome/bin:/opt/perf/bin:/opt/ignite/bin:/opt/mozilla:/usr/bin/X11:/usr/contrib/bin/X11:/opt/graphics/common/bin:/opt/perl/bin:/opt/prm/bin:/usr/sbin/diag/contrib:/opt/mx/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/wlm/bin:/opt/langtools/bin:/opt/imake/bin:/sbin:/home/root:/usr/contrib/bin

see 32_config.log


----------------------------------------------------------
and then I've tried to compile with 64-bit gcc

SHLIB_PATH=/usr/lib

PATH=/usr/local/pa64/bin/:/usr/local/pa64/lib/:/usr/local/bin:/usr/local/lib:/usr/sbin:/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/resmon/bin:/opt/pd/bin:/opt/gnome/bin:/opt/perf/bin:/opt/ignite/bin:/opt/mozilla:/usr/bin/X11:/usr/contrib/bin/X11:/opt/graphics/common/bin:/opt/perl/bin:/opt/prm/bin:/usr/sbin/diag/contrib:/opt/mx/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/wlm/bin:/opt/langtools/bin:/opt/imake/bin:/sbin:/home/root:/usr/contrib/bin

see 64_config.log
----------------------------------------------------------

thanks for your time

Mauro
Alex Lavrov.
Honored Contributor

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

It's strange that gcc does not recognize -R option. You have 3.3.3 version that it's not that old ....

I think you have a little mess on you box with libraries and compilers.


what about ld ... can you post the output of:
which ld
what ld
file ld
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



webport-/ : which ld
/usr/bin/ld
webport-/ : what ld
can't open ld (26)
webport-/ : file ld
ld: cannot open

:(
Alex Lavrov.
Honored Contributor

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

Try:

what /usr/bin/ld
file /usr/bin/ld
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

webport-/ : what /usr/bin/ld
/usr/bin/ld:
$Revision: 92453-07 linker linker crt0.o B.11.37 040218 $
HP aC++ B3910B A.03.52 Classic Iostream Library
HP aC++ B3910B A.03.52 Language Support Library
ld_msgs.cat: $Revision: 1.85 $
92453-07 linker command s800.sgs ld PA64 B.11.43 REL 050124
webport-/ : file /usr/bin/ld
/usr/bin/ld: PA-RISC1.1 shared executable dynamically linked
webport-/ :