php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26397 make install fails
Submitted: 2003-11-25 05:48 UTC Modified: 2003-12-04 07:45 UTC
Votes:5
Avg. Score:4.8 ± 0.4
Reproduced:5 of 5 (100.0%)
Same Version:1 (20.0%)
Same OS:3 (60.0%)
From: tippa000 at yahoo dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.4 OS: AIX 5.2
Private report: No CVE-ID: None
 [2003-11-25 05:48 UTC] tippa000 at yahoo dot com
Description:
------------
Similar situation than bug report 25058.
http://bugs.php.net/bug.php?id=25058

make install fails:
"apxs:Error: Command failed with rc=65536"



Reproduce code:
---------------
somebody@aix52> cd /testing/php-4.3.4
somebody@aix52> ./configure \
   --prefix=/testing/php \
   --with-apxs2=/testing/apache/bin/apxs \
   --disable-all \
   --disable-cli 

...
...
...

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

gmake[1]: Leaving directory `/testing/php-4.3.4'
cd /testing/php-4.3.4 && gmake install
gmake[1]: Entering directory `/testing/php-4.3.4'
Installing PHP SAPI module:       apache2handler
/testing/apache/build/instdso.sh SH_LIBTOOL='/testing/apache/build/libtool' libphp4.la /testing/apache/modules
rm -f /testing/apache/modules/libphp4.so
/testing/apache/build/libtool --mode=install cp libphp4.la /testing/apache/modules/
cp .libs/libphp4.a /testing/apache/modules/libphp4.a
cp .libs/libphp4.lai /testing/apache/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish /testing/php-4.3.4/libs'
chmod 755 /testing/apache/modules/libphp4.so
chmod: /testing/apache/modules/libphp4.so: A file or directory in the path name does not exist.
apxs:Error: Command failed with rc=65536
.
gmake[1]: *** [install-sapi] Error 1
gmake[1]: Leaving directory `/testing/php-4.3.4'
gmake: *** [buildphp] Error 2
somebody@aix52> 
somebody@aix52> 
somebody@aix52> uname -a
AIX aix52 2 5 0057C30A4C00
somebody@aix52> libtool --version
ltmain.sh (GNU libtool) 1.5 (1.1220 2003/04/05 19:32:58)

Copyright (C) 2003  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.
somebody@aix52>
somebody@aix52> /testing/apache/bin/httpd -v
Server version: Apache/2.0.48
Server built:   Nov 25 2003 10:00:00
somebody@aix>
somebody@aix52> gcc -v
Reading specs from /tools/gnu/gcc/AIX/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.1/specs
Configured with: ../configure --prefix=/tools/gnu/gcc/AIX --enable-threads=posix --disable-shared --disable-nls --enable-libstdcxx-v3
Thread model: aix
gcc version 3.3.1
somebody@aix52> 


Expected result:
----------------
I expect this already corrected... but...


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-01 08:47 UTC] sniper@php.net
So it works with Apache1..for the apache2 compile, what do you have in libs/ and .libs/ directories when the 'make install' fails?

 [2003-12-03 07:15 UTC] tippa000 at yahoo dot com
Hi again,
  sniper asked what is inside ".libs" and "libs" direcorires. See below.

--------------------------

somebody@aix52> /testing/apache/bin/httpd -v
Server version: Apache/2.0.48
Server built:   Dec  3 2003 13:00:00
somebody@aix52> bin/httpd -l
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c
somebody@aix52> 

...

somebody@aix52>  ./configure \
   --prefix=/testing/php \
   --with-apxs2=/testing/apache/bin/apxs \
   --disable-all \
   --disable-cli 

....

somebody@aix52> pwd
/testing/php-4.3.4
somebody@aix52> gmake install
Installing PHP SAPI module:       apache2handler
/testing/apache/build/instdso.sh SH_LIBTOOL='/testing/apache/build/libtool' libphp4.la /testing/apache/modules
rm -f /testing/apache/modules/libphp4.so
/testing/apache/build/libtool --mode=install cp libphp4.la /testing/apache/modules/
cp .libs/libphp4.a /testing/apache/modules/libphp4.a
cp .libs/libphp4.lai /testing/apache/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish /testing/php-4.3.4/libs'
chmod 755 /testing/apache/modules/libphp4.so
chmod: /testing/apache/modules/libphp4.so: A file or directory in the path name does not exist.
apxs:Error: Command failed with rc=65536
.
gmake: *** [install-sapi] Error 1
somebody@aix52> 
somebody@aix52> # The contents of ".libs/" and "libs/" were same before gmake install
somebody@aix52> ls -la .libs/
total 20515
drwxrwxr-x   2 testuser  testgroup             355 Dec 03 13:31 .
drwxrwxr-x  18 testuser  testgroup            4377 Dec 03 13:31 ..
-rw-rw-r--   1 testuser  testgroup         5277130 Dec 03 13:31 libphp4.a
-rw-rw-r--   1 testuser  testgroup           26411 Dec 03 13:31 libphp4.exp
lrwxrwxr-x   1 testuser  testgroup              13 Dec 03 13:31 libphp4.la -> ../libphp4.la
-rw-rw-r--   1 testuser  testgroup             725 Dec 03 13:31 libphp4.lai
-rwxrwxr-x   1 testuser  testgroup         5192838 Dec 03 13:31 libphp4.so
somebody@aix52> ls -al libs/
total 10319
drwxrwxr-x   2 testuser  testgroup             194 Dec 03 13:31 .
drwxrwxr-x  18 testuser  testgroup            4377 Dec 03 13:31 ..
-rw-rw-r--   1 testuser  testgroup         5277130 Dec 03 13:31 libphp4.a
-rw-rw-r--   1 testuser  testgroup             725 Dec 03 13:31 libphp4.la
somebody@aix52>
 [2003-12-04 07:45 UTC] sniper@php.net
There error happens in instdso.sh, which is part of Apache, not PHP..so please report this to the Apache bug system.
(there might already be an open report though, so check that first)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC