#31234 [NEW]: apxs:Error: Command failed with rc=65536
| From: | junk at fishgills dot net | Date: | Tue, 21 Dec 2004 22:37:14 +0000 |
| Subject: | #31234 [NEW]: apxs:Error: Command failed with rc=65536 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-70866@lists.php.net to get a copy of this message | ||
From: junk at fishgills dot net
Operating system: Fedora 3 X86_64
PHP version: 5.0.3
PHP Bug Type: Compile Failure
Bug description: apxs:Error: Command failed with rc=65536
Description:
------------
I have searched and read all the other bug reports mentioning the same
error and found all to be not very helpful. This is on a x86_64 linux
distribution with x86_64 libraries of MySQL and everything else.
When I run the configure script like so:
./configure --with-apxs2=/www/bin/apxs --with-mysqli
The configure script works fine. Then during the make command, everything
seems to run find except for a small warning during the linking stage:
*** Warning: This system can not link to static lib archive
/usr/lib64/mysql/libmysqlclient.la.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** But as you try to build a module library, libtool will still create
*** a static module, that should work as long as the dlopening
application
*** is linked with the -dlopen flag to resolve symbols at runtime.
The compilation itself finishes fine. Then I run make install and get the
following error:
Installing PHP SAPI module: apache2handler
/www/build/instdso.sh SH_LIBTOOL='/www/build/libtool' libphp5.la
/www/modules
/www/build/libtool --mode=install cp libphp5.la /www/modules/
cp .libs/libphp5.lai /www/modules/libphp5.la
cp .libs/libphp5.a /www/modules/libphp5.a
ranlib /www/modules/libphp5.a
chmod 644 /www/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish
/download/php-5.0.3/libs'
Warning! dlname not found in /www/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /www/modules/libphp5.so
chmod: cannot access `/www/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
Reproduce code:
---------------
./configure --with-apxs2=/www/bin/apxs --with-mysqli
make
make install
Expected result:
----------------
I expect PHP 5 to be compiled for Apache and isntalled in the modules
directory and to...well... work. ;)
Actual result:
--------------
Installing PHP SAPI module: apache2handler
/www/build/instdso.sh SH_LIBTOOL='/www/build/libtool' libphp5.la
/www/modules
/www/build/libtool --mode=install cp libphp5.la /www/modules/
cp .libs/libphp5.lai /www/modules/libphp5.la
cp .libs/libphp5.a /www/modules/libphp5.a
ranlib /www/modules/libphp5.a
chmod 644 /www/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish
/download/php-5.0.3/libs'
Warning! dlname not found in /www/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /www/modules/libphp5.so
chmod: cannot access `/www/modules/libphp5.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1
--
Edit bug report at http://bugs.php.net/?id=31234&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31234&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31234&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31234&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31234&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31234&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31234&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31234&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31234&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31234&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31234&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31234&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31234&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31234&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31234&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31234&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31234&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31234&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31234&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31234&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31234&r=mysqlcfg