[HPADM] Couldnt start Apache with PHP on HP-UX 11.23

From: mathan (mathan@hotpop.com)
Date: Thu Jul 15 2004 - 07:33:31 EDT


Hello Admins,

    I have built Apache 2.0.50 + PHP 4.3.7 on HP-UX 11.23. I have the following error while starting apache daemon. Also I have buit 64 bit PHP 4.3.7 to use with default system HP Apache (64 bit /opt/hpws/apache/bin/httpd). I got some unsatisfied symbol errors. Please help me to solve this errors. Its very urgent. Thanks in advance.

    Is that possible to install PHP as a shared object under HP-UX 11.23?

OS: HP-UX 11.23 LR

1) Apache 2.0.50 + PHP 4.3.7 (32 bit build)

Apache build steps:
  # ./configure --prefix=/disk1/mathan/PHP/fileset/httpd --enable-so
  # gmake
  # gmake install
PHP build steps:
  # ./configure --prefix=/disk1/mathan/PHP/fileset/php --with-apxs=/disk1/mathan/PHP/fileset/httpd/bin/apxs --with-mysql=/opt/mysql
  # gmake
  # gmake test
  # gmake install

  # ./apachectl start
  Syntax error on line 232 of /disk1/mathan/PHP/fileset/httpd/conf/httpd.conf:
  Cannot load /disk1/mathan/PHP/fileset/httpd/modules/libphp4.so into server: Unresolved external

Also I have buit 64 bit PHP 4.3.7 to use with default system Apache (64 bit /opt/hpws/apache/bin/httpd). I got the following unsatisfied symbol errors. These symbols (__udivdi3, __udivsi3, __divdi3. etc..) are in /usr/local/lib/gcc-lib/ia64-hp-hpux11.22/3.3.2/hpux64/libgcc.a library. But I cant link this library with libphp4.so, as it cannot accept static library.

2) HP Apache 2.0.46 + PHP 4.3.7 (64 bit build)

  PHP build:
  # export CFLAGS="-mlp64"
  # ./configure --prefix=/opt/hpws/apache/php --with-apxs2=/opt/hpws/apache/bin/apxs
  # gmake
  # gmake test
  # gmake install

  # ./apachectl start
  /usr/lib/hpux64/dld.so: Unsatisfied code symbol '__udivdi3' in load module '/opt/hpws/apache/modules/libphp4.so'.
  /usr/lib/hpux64/dld.so: Unsatisfied code symbol '__udivsi3' in load module '/opt/hpws/apache/modules/libphp4.so'.
  /usr/lib/hpux64/dld.so: Unsatisfied code symbol '__divdi3' in load module '/opt/hpws/apache/modules/libphp4.so'.
  /usr/lib/hpux64/dld.so: Unsatisfied code symbol '__divdf3' in load module '/opt/hpws/apache/modules/libphp4.so'.
  /usr/lib/hpux64/dld.so: Unsatisfied code symbol '__divsi3' in load module '/opt/hpws/apache/modules/libphp4.so'.
  /usr/lib/hpux64/dld.so: Unsatisfied code symbol '__moddi3' in load module '/opt/hpws/apache/modules/libphp4.so'.
  /usr/lib/hpux64/dld.so: Unsatisfied code symbol '__modsi3' in load module '/opt/hpws/apache/modules/libphp4.so'.
  /usr/lib/hpux64/dld.so: Unsatisfied code symbol '__umoddi3' in load module '/opt/hpws/apache/modules/libphp4.so'.
  Syntax error on line 222 of /opt/hpws/apache/conf/httpd.conf:
  Cannot load /opt/hpws/apache/modules/libphp4.so into server: Unresolved external
Please help me to solve this errors. Its very urgent. Thanks in advance

Thanks,
                                  Mathan

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.718 / Virus Database: 474 - Release Date: 7/9/2004
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:41 EDT