From: carlo dot mosca at eurostar dot co dot uk
Operating system: AIX 5.2
PHP version: 4.3.3RC3
PHP Bug Type: Compile Failure
Bug description: make install fails using with-apxs2
Description:
------------
Noticed a few similar bugs on the database, but none seem exactly the same
and none of the suggested solutions (where given) worked, so operning a
new one...
Compilation fails on 'make install'. Appears install is expecting a .so
file when there isn't one (although one is built into ./.libs). Tried
various monkeying around like copy the .so in manually to libs or
apache2/modules, but none of that seems to work.
Editing the libphp4.la file (to set library_files to .so's) lets
installation complete successfully, but Apache then refuses to load it, so
that doesn't seem right either.
I get this error both on the 4.3.2 stable release and the latest available
.tar.gz stable 4.3.x-dev snapshot. Quite possibly an AIX-specific issue,
since 4.3.2 builds just fine on one of our Sun boxes.
CRM php4-STABLE-200308121530 -> make install
Installing PHP CLI binary: /elgar/local/bin/
Installing PHP CLI man page: /elgar/local/man/man1/
Installing PHP SAPI module: apache2handler
/elgar/local/apache2/build/instdso.sh
SH_LIBTOOL='/elgar/local/apache2/build/libtool' libphp4.la
/elgar/local/apache2/modules
rm -f /elgar/local/apache2/modules/libphp4.so
/elgar/local/apache2/build/libtool --mode=install cp libphp4.la
/elgar/local/apache2/modules/
cp .libs/libphp4.a /elgar/local/apache2/modules/libphp4.a
cp .libs/libphp4.lai /elgar/local/apache2/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish
/elgar/devel/user/carlo/local/php4-STABLE-200308121530/libs'
chmod 755 /elgar/local/apache2/modules/libphp4.so
chmod: /elgar/local/apache2/modules/libphp4.so: A file or directory in the
path name does not exist.
apxs:Error: Command failed with rc=65536
.
gnu-make: *** [install-sapi] Error 1
CRM php4-STABLE-200308121530 -> cat libphp4.la
# libphp4.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4.3 (1.922.2.110 2002/10/23
01:39:54)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='libphp4.so'
# Names of this library.
library_names='libphp4.a libphp4.a'
# The name of the static archive.
old_library=''
# Libraries that this one depends upon.
dependency_libs=' -lm'
# Version information for libphp4.
current=0
age=0
revision=0
# Is this an already installed library?
installed=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/elgar/devel/user/carlo/local/php4-STABLE-200308121530/libs'
Version and config stuff:
CRM php4-STABLE-200308121530 -> cat config.nice
#! /bin/sh
#
# Created by configure
CC='gcc' \
'./configure' \
'--prefix=/elgar/local' \
'--with-apxs2=/elgar/local/apache2/bin/apxs' \
'--silent' \
"$@"
CRM php4-STABLE-200308121530 -> make -version
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
CRM php4-STABLE-200308121530 -> gcc -v
Reading specs from
/elgar/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3/specs
Configured with: /elgar/devel/user/carlo/gcc-3.3/configure
--prefix=/elgar/local
Thread model: aix
gcc version 3.3
CRM php4-STABLE-200308121530 -> bison --version
bison (GNU Bison) 1.875
Written by Robert Corbett and Richard Stallman.
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
CRM php4-STABLE-200308121530 -> flex --version
flex version 2.5.4
CRM php4-STABLE-200308121530 -> /elgar/local/apache2/bin/apachectl -V
Server version: Apache/2.0.47
Server built: Aug 12 2003 11:49:59
Server's Module Magic Number: 20020903:4
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_PROC_PTHREAD_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/elgar/local/apache2"
-D SUEXEC_BIN="/elgar/local/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
--
Edit bug report at http://bugs.php.net/?id=25058&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25058&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25058&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25058&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25058&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25058&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25058&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25058&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25058&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25058&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25058&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25058&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25058&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25058&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25058&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25058&r=gnused