php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25058 make install fails using with-apxs2
Submitted: 2003-08-12 11:54 UTC Modified: 2003-08-26 07:13 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: carlo dot mosca at eurostar dot co dot uk Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.3.3RC4-dev OS: AIX 5.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: carlo dot mosca at eurostar dot co dot uk
New email:
PHP Version: OS:

 

 [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"                             



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-12 12:02 UTC] carlo dot mosca at eurostar dot co dot uk
Additional note: Works fine when not configured as --with-apxs2
 [2003-08-12 12:49 UTC] sniper@php.net
What does this output:

# ls -l /elgar/devel/user/carlo/local/php4-STABLE-200308121530/.libs 

 [2003-08-13 05:56 UTC] 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-13 13:48 UTC] sniper@php.net
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)

 [2003-08-14 06:16 UTC] carlo dot mosca at eurostar dot co dot uk
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 start
 [2003-08-15 07:20 UTC] sniper@php.net
Now, if you do 'make install', does it copy the correct libphp4.so in place?

 [2003-08-15 07:30 UTC] carlo dot mosca at eurostar dot co dot uk
I 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
 [2003-08-25 22:06 UTC] sniper@php.net
Does copying that libphp4.so manually work for you?
(when using --disable-cli)

 [2003-08-26 07:12 UTC] carlo dot mosca at eurostar dot co dot uk
Yes, seems to be okay now (although I haven't actually tried running a CGI PHP script to make sure).
 [2003-08-26 07:13 UTC] carlo dot mosca at eurostar dot co dot uk
Found the Close button! :)
 [2004-05-11 15:59 UTC] rehanann at kfupm dot edu dot sa
I think this issue is not yet completed please try to help me out this error?

I am using PHP version 4.3.6.

Operating System Aix 5.2.

Complitation option is :
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gettext --with-xml --with-imap-ssl=/usr/local/ssl

Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp4.la /usr/local/apache2/modules
rm -f /usr/local/apache2/modules/libphp4.so
/usr/local/apache2/build/libtool --mode=install cp libphp4.la /usr/local/apache2/modules/
cp .libs/libphp4.a /usr/local/apache2/modules/libphp4.a
cp .libs/libphp4.lai /usr/local/apache2/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish /tmp/horde/php-4.3.6/libs'
chmod 755 /usr/local/apache2/modules/libphp4.so
chmod: /usr/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.


Hope for the reply.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC