apxs attempts to build a DSO with a .so extension.  On HPUX, you will
have to hack the apxs script to force it to .sl

--
Jim

>>> Alexander Skwar <[EMAIL PROTECTED]> 08/21/03 05:45AM >>>
Hello!

I'm having problems getting PHP 4.3.3RC4 successfully to install on my
HP-UX 11.00 server. 

After a (successfull?) compile, "make install" errors out with this
error
message:

#############################################################################################################

Installing PHP CLI binary:        /opt/php/bin/
Installing PHP CLI man page:      /opt/php/man/man1/
Installing PHP SAPI module:       apache2handler
/opt/apache2/build/instdso.sh SH_LIBTOOL='/opt/apache2/build/libtool'
libphp4.la /opt/apache2/modules
/opt/apache2/build/libtool --mode=install cp libphp4.la
/opt/apache2/modules/
cp .libs/libphp4.lai /opt/apache2/modules/libphp4.la
cp .libs/libphp4.a /opt/apache2/modules/libphp4.a
ranlib /opt/apache2/modules/libphp4.a
chmod 644 /opt/apache2/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish
/root/admin/src/php-4.3.3RC4/libs'
Warning!  dlname not found in /opt/apache2/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /opt/apache2/modules/libphp4.so
chmod: can't access /opt/apache2/modules/libphp4.so
apxs:Error: Command failed with rc=65536
.
*** Error exit code 1

Stop.

#############################################################################################################

You can see the whole "make" log at
http://email-server.info/~askwar/stuff/PHP_MakeLog.txt 

/opt/apache2 contains the Apache 2.0.47 installation.

root_s08nfs:/root/admin/depots/ > ls -la /opt/apache2/modules/
total 7074
drwxr-xr-x   2 root       sys             96 Aug 21 12:32 .
drwxr-xr-x  15 root       sys           1024 Aug 21 07:21 ..
-rw-rw-r--   1 vz6tml     pcei          8131 Aug 21 07:21 httpd.exp
-rw-r--r--   1 root       sys        3609588 Aug 21 12:32 libphp4.a
-rw-rw-r--   1 root       sys           2097 Aug 21 12:32 libphp4.la

I'm wondering - why does "make install" (or rather apxs) look for
libphp4.so? In HP-UX, shared library files have the extension .sl, not
.so
(that's Linux). And also - why was no libphp4.sl compiled at all?

To configure PHP, I used the following configure "caller":

#############################################################################################################

#!/bin/sh

INST_DIR=/opt/php

CC=/usr/local/bin/gcc
CFLAGS=-O6
CPPFLAGS="$CFLAGS -I/opt/gmp/include"
LDFLAGS=-L/opt/gmp/lib
export CC CFLAGS CPPFLAGS LDFLAGS

PATH=/usr/local/bin:$PATH
export PATH

apache2=/opt/apache2

./configure \
        --prefix=$INST_DIR \
\
        --with-apxs2filter=${apache2}/bin/apxs \
        --with-apxs2=${apache2}/bin/apxs \
\
        --with-openssl \
\
        --with-zlib \
        --enable-bcmath \
        --with-bz2 \
        --enable-calendar \
        --with-curl \
\
        --enable-dba \
                --with-gdbm \
                --with-inifile \
                --with-flatfile \
\
        --enable-dbase \
        --enable-dbx \
        --enable-exif \
        --enable-ftp \
\
        --with-gd=/opt/gd2 \
                --with-ttf \
                --enable-gd-native-ttf \
                --enable-gd-jis-conv\
\
        --with-gettext \
        --with-gmp=/opt/gmp \
        --with-iconv \
        --with-java=/opt/java1.4 \
        --with-mhash \
        --with-mime-magic \
        --with-mysql \
        --with-recode \
        --enable-shmop \
        --enable-sockets \
        --enable-sysvmsg \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-yp \
\
        --enable-memory-limit

#############################################################################################################

Thanks a lot,

Alexander Skwar
-- 
die_if_kernel("Penguin instruction from Penguin mode??!?!", regs);
        2.2.16 /usr/src/linux/arch/sparc/kernel/traps.c

Reply via email to