php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26319 apxs:Error: Command failed with rc=65536
Submitted: 2003-11-19 11:18 UTC Modified: 2003-11-20 05:59 UTC
From: hylke at herbaldistribution dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.4 OS: linux redhat Opteron
Private report: No CVE-ID: None
 [2003-11-19 11:18 UTC] hylke at herbaldistribution dot com
Description:
------------
I've got a problem installing the libphp4.so. When I have done 'make' the file libphp4.so.0 isn't created in the directory .libs or libs.

Configure rule:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-ftp --with-pear --with-mysql --enable-shared --with-trans-sid --enable-trans-sid --with-mod_charset --enable-mod_charset --with-zlib-dir=/usr/local/lib --enable-mysql --enable-ftp --with-ssl --enable-ssl

Things I tried:

- Changed the CFLAG
- Edit the libtool file
- Used the latest snapshot

None of these things solved the problem.

Reproduce code:
---------------
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp4.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp4.la /usr/local/apache2/modules/
cp .libs/libphp4.lai /usr/local/apache2/modules/libphp4.la
cp .libs/libphp4.a /usr/local/apache2/modules/libphp4.a
ranlib /usr/local/apache2/modules/libphp4.a
chmod 644 /usr/local/apache2/modules/libphp4.a
libtool: install: warning: remember to run `libtool --finish /usr/src/php-4.3.3/libs'
Warning!  dlname not found in /usr/local/apache2/modules/libphp4.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp4.so
chmod: failed to get attributes of `/usr/local/apache2/modules/libphp4.so': No such file or directory
apxs:Error: Command failed with rc=65536

Expected result:
----------------
That the libphp4.so is created.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-19 19:45 UTC] sniper@php.net
Get 'fresh' sources of PHP 4.3.4 and try this configure line:

# ./configure --disable-all --with-apxs2= /usr/local/apache2/bin/apxs --disable-cli

btw. These configure options do not exist:
--with-mod_charset
--enable-mod_charset (this is for apache1 only)
--enable-mysql
--enable-ssl
--with-ssl
--with-ftp
--with-trans-sid
--enable-trans-sid

Path to --with-zlib-dir is wrong. It should be just '/usr/local'.

 [2003-11-20 03:38 UTC] hylke at herbaldistribution dot com
I've run with ./configure --disable-all --with-apxs2= /usr/local/apache2/bin/apxs
--disable-cli

But still the same problem. I've updated the php source and the gcc to 3.2.3 Maybe the problem has something to do with the Opteron platform.
 [2003-11-20 05:59 UTC] hylke at herbaldistribution dot com
I've solved it by using php 4.2.2 and several patches.

php-4.2.2-apache2.patch
php-4.2.2-cookies.patch
php-4.2.2-inidir.patch
php-4.2.2-lib64.patch
php-4.2.2-mailsec.patch
php-4.2.2-openssl097.patch
php-4.2.2-snmp.patch
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 17:01:30 2024 UTC