Operating System - HP-UX
1833827 Members
2438 Online
110063 Solutions
New Discussion

php/apache on HP-UX10.2 compile problems

 
Paul Bowen
Advisor

php/apache on HP-UX10.2 compile problems

I am having great problems with php. I have seen many papaers regarding the same problem, but most conflict each other. I have run the configure and make, but make install gives :
apxs:Error: file libs/libphp4.sl is not a DSO
*** Error exit code 1
I have seen somewhere to rename the .sl file to .so and manually run apxs, and that was fine, but when I start apache, I get :
/usr/lib/dld.sl: Unresolved symbol: __umoddi3 (code) from /opt/apache/lib/modul
es/libphp4.so
Syntax error on line 239 of /opt/apache/etc/httpd.conf:
Cannot load /opt/apache/lib/modules/libphp4.so into server: No such file or directory
Apache v1.3.14
php 4.2.1
Help - I think its a bit of the wood and trees scenario now as I have been looking at it far too long.
shit happens - just deal with it
4 REPLIES 4
Paul Bowen
Advisor

Re: php/apache on HP-UX10.2 compile problems

sorted it myself - thanks for your help everyone!
shit happens - just deal with it
Luis Sandoval_2
New Member

Re: php/apache on HP-UX10.2 compile problems

Hello Paul, everyone...

I am experiencing the same problem with my HPUX-11.00 box! I am running apache 2.0.39 and PHP 4.2.2 Everything compiles (a couple of warnings though), but when I try to get httpd running the infamous unresolved symbol __umoddi3 message shows up. Is it possible for you to explain how you fixed the problem? I will appreciate it so much!

Thanks for your help!

Luis Sandoval
a newbie willing to learn
Paul Bowen
Advisor

Re: php/apache on HP-UX10.2 compile problems

Here's what I had to do:
remove php and apache directories there from previous attempts.
unzip and swinstall gcc-2.95.3 from http://hpftp.cict.fr/hppd/hpux/Gnu/gcc-2.95.3/
unzip and swinstall binutils-2.11.2, bison-1.35 and flex-2.5.4 from http://hpux.connect.org.uk/hppd/hpux/Gnu/alpha.html
ensure path is set to these
unzip and untar apache-1.3.24-ss-11.00
http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/apache-1.3.24/
unzip and untar php-4.2.1 from http://www.php.net/downloads.php
in the php directory - vi configure and remove the 3 occurences of '/src' in lines 3847, 3849 and 3855 (those were the lines in mine, anyway)
Then follow the QUICK INSTALL (Static) section of http://cvs.php.net/co.php/php4/INSTALL
All seems to work fine now
shit happens - just deal with it
Luis Sandoval_2
New Member

Re: php/apache on HP-UX10.2 compile problems

Hello Paul, Everyone...
I decided to give it a try, but using Apache 1.3.26 instead. Everything went smoothly, and got statically compiled the PHP 4.2.2 module. I did not have to edit the configure script though!

I still wonder the reason for that unresolved symbol (__umoddi3) in the 2.0.39 built. I will keep searching for an answer on that.

Thanks for your help!
a newbie willing to learn