I'm attempting to build PHP-4.3.0RC1 on HP-UX 11.00 with Apache-2.0.43 and
MYSQL-3.23.53 using GCC-3.2.  There are two problems I've been having so
far.  This first one concerns that apparently ranlib or libtool wants
libphp4 to be called libphp4.so and not libphp4.a

PHP:

./configure --prefix=/opt/php --with-apxs2=/opt/apache/bin/apxs
--enable-libgcc --with-mysql=/opt/mysql --enable-sockets

make install

Installing PHP SAPI module
/opt/apache/build/instdso.sh SH_LIBTOOL='/opt/apache/build/libtool'
libphp4.la /opt/apache/modules
/opt/apache/build/libtool --mode=install cp libphp4.la /opt/apache/modules/
cp .libs/libphp4.lai /opt/apache/modules/libphp4.la
cp .libs/libphp4.a /opt/apache/modules/libphp4.a
ranlib /opt/apache/modules/libphp4.a
chmod 644 /opt/apache/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish
/home/pbriggs/software/php-4.3.0RC1/libs'
Warning!  dlname not found in /opt/apache/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /opt/apache/modules/libphp4.so
chmod: can't access /opt/apache/modules/libphp4.so
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1

So I go into the /opt/apache/modules directory and rename libphp4.a to
libphp4.so.  Then try "make install" over again.

make install

Installing PHP SAPI module
/opt/apache/build/instdso.sh SH_LIBTOOL='/opt/apache/build/libtool'
libphp4.la /opt/apache/modules
/opt/apache/build/libtool --mode=install cp libphp4.la /opt/apache/modules/
cp .libs/libphp4.lai /opt/apache/modules/libphp4.la
cp .libs/libphp4.a /opt/apache/modules/libphp4.a
ranlib /opt/apache/modules/libphp4.a
chmod 644 /opt/apache/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish
/home/pbriggs/software/php-4.3.0RC1/libs'
Warning!  dlname not found in /opt/apache/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /opt/apache/modules/libphp4.so
Installing shared extensions:
/opt/php/lib/php/extensions/no-debug-non-zts-20020429/
Installing PHP CLI binary:        /opt/php/bin/
Installing PEAR environment:      /opt/php/lib/php/
[PEAR] Archive_Tar    - already installed: 0.9
[PEAR] Console_Getopt - already installed: 1.0
[PEAR] PEAR           - already installed: 1.0b2
[PEAR] DB             - already installed: 1.3
[PEAR] HTTP           - already installed: 1.2
[PEAR] Mail           - already installed: 1.0.1
[PEAR] Net_SMTP       - already installed: 1.0
[PEAR] Net_Socket     - already installed: 1.0.1
[PEAR] XML_Parser     - already installed: 1.0
[PEAR] XML_RPC        - already installed: 1.0.4
Installing build environment:     /opt/php/lib/php/build/
Installing header files:          /opt/php/include/php/
Installing helper programs:       /opt/php/bin/
  program: phpize
  program: php-config
  program: phpextdist

Now that everything looks good, when I attempt to start apache, it doesn't
start and gives me this error message:

# ./apachectl start
Syntax error on line 231 of /opt/apache/conf/httpd.conf:
Cannot load /opt/apache/modules/libphp4.so into server: Bad magic number for
shared library: /opt/apache/modules/libphp4.so

Does anyone have any ideas?  What is a bad magic number anyway?

Patrick Briggs
Unix System Administrator
Clinitech Information Resources, Inc.



This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential or privileged
information.  Any unauthorized review; use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.

Reply via email to