ID: 25058 Updated by: [EMAIL PROTECTED] Reported By: carlo dot mosca at eurostar dot co dot uk -Status: Open +Status: Feedback Bug Type: Apache2 related Operating System: AIX 5.2 PHP Version: 4.3.3RC4-dev New Comment:
Please try this: # rm config.cache # CC=gcc ./configure --prefix=/elgar/local --with-apxs2=/elgar/local/apache2/bin/apxs --disable-all --disable-cli # make clean && make Then check what you have in .libs/ (and libs/) Try then copying that libphp4.so to your apache2 modules/ dir. (notice that the apache instdso.sh copies the libphp4.a, NOT the .so there) Previous Comments: ------------------------------------------------------------------------ [2003-08-13 05:56:18] carlo dot mosca at eurostar dot co dot uk CRM ÷ -> ls -l /elgar/devel/user/carlo/local/php4-STABLE-200308121530/.libs total 27936 -rw-r--r-- 1 carlo devel 7184069 Aug 12 17:39 libphp4.a -rw-r--r-- 1 carlo devel 37958 Aug 12 17:39 libphp4.exp lrwxrwxrwx 1 carlo devel 13 Aug 12 17:39 libphp4.la -> ../libphp4.la -rw-r--r-- 1 carlo devel 723 Aug 12 17:39 libphp4.lai -rwxr-xr-x 1 carlo devel 7068807 Aug 12 17:39 libphp4.so It's building the .so, just not copying it into libs (and consequently not copying it to apache2/modules). I tried copying it manually but apache refused to load the module (with no useful error). ------------------------------------------------------------------------ [2003-08-12 12:49:26] [EMAIL PROTECTED] What does this output: # ls -l /elgar/devel/user/carlo/local/php4-STABLE-200308121530/.libs ------------------------------------------------------------------------ [2003-08-12 12:02:38] carlo dot mosca at eurostar dot co dot uk Additional note: Works fine when not configured as --with-apxs2 ------------------------------------------------------------------------ [2003-08-12 11:54:05] carlo dot mosca at eurostar dot co dot uk 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 this bug report at http://bugs.php.net/?id=25058&edit=1