|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-12 11:54 UTC] 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"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
Thanks, that seems to work: Build complete. (It is safe to ignore warnings about tempnam and tmpnam). 80.030u 26.400s 2:10.45 81.5% 2200+1516k 0+0io 1479pf+0w CRM php4-STABLE-200308121530 -> ls -l libs total 9872 -rw-r--r-- 1 carlo devel 5044390 Aug 14 12:13 libphp4.a -rw-r--r-- 1 carlo devel 723 Aug 14 12:13 libphp4.la CRM php4-STABLE-200308121530 -> ls -l .libs/ total 19624 -rw-r--r-- 1 carlo devel 5044390 Aug 14 12:13 libphp4.a -rw-r--r-- 1 carlo devel 26411 Aug 14 12:13 libphp4.exp lrwxrwxrwx 1 carlo devel 13 Aug 14 12:13 libphp4.la -> ../libphp4.la -rw-r--r-- 1 carlo devel 723 Aug 14 12:13 libphp4.lai -rwxr-xr-x 1 carlo devel 4961410 Aug 14 12:13 libphp4.so CRM php4-STABLE-200308121530 -> cp .libs/libphp4.so /elgar/local/apache2/modules/ CRM php4-STABLE-200308121530 -> /elgar/local/apache2/bin/apachectl -k start CRM php4-STABLE-200308121530 -> psme UID PID PPID C STIME TTY TIME CMD carlo 44404 52024 0 12:14:00 - 0:00 /elgar/local/apache2/bin/httpd -k start carlo 45672 52024 0 12:14:00 - 0:00 /elgar/local/apache2/bin/httpd -k start carlo 47718 52024 0 12:14:00 - 0:00 /elgar/local/apache2/bin/httpd -k start carlo 48826 51928 1 12:14:07 pts/4 0:00 ps -f -u carlo carlo 50510 52024 0 12:14:00 - 0:00 /elgar/local/apache2/bin/httpd -k start carlo 50716 52024 0 12:14:00 - 0:00 /elgar/local/apache2/bin/httpd -k start carlo 51928 7218 0 11:48:23 pts/4 0:00 -tcsh carlo 52024 1 0 12:14:00 - 0:00 /elgar/local/apache2/bin/httpd -k startI still get the same error off make install: 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 . make: 1254-004 The error code from the last command is 1. Stop. 2.360u 3.070s 0:12.30 44.1% 517+671k 0+0io 1251pf+0w CRM php4-STABLE-200308121530 -> ls -l libs/ total 9872 -rw-r--r-- 1 carlo devel 5044390 Aug 15 13:28 libphp4.a -rw-r--r-- 1 carlo devel 723 Aug 15 13:28 libphp4.la CRM php4-STABLE-200308121530 -> ls -l .libs/ total 19624 -rw-r--r-- 1 carlo devel 5044390 Aug 15 13:28 libphp4.a -rw-r--r-- 1 carlo devel 26411 Aug 15 13:28 libphp4.exp lrwxrwxrwx 1 carlo devel 13 Aug 15 13:28 libphp4.la -> ../libphp4.la -rw-r--r-- 1 carlo devel 723 Aug 15 13:28 libphp4.lai -rwxr-xr-x 1 carlo devel 4961410 Aug 15 13:28 libphp4.so