php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25443 make install fails for new module
Submitted: 2003-09-08 18:59 UTC Modified: 2003-09-08 19:08 UTC
From: dtonn at packeteer dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.3 OS: RedHat 9.0
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dtonn at packeteer dot com
New email:
PHP Version: OS:

 

 [2003-09-08 18:59 UTC] dtonn at packeteer dot com
Description:
------------
With the existing RedHat 9.0 installation, I was able to build and install both Apache 2.0.47 and PHP 4.3.3.

So far so good. Everything works.

Then I added a module in the ext directory.

As long as the module is in c, and is a single file, it STILL works! I am able to build the module, install PHP again, and have phpinfo call the info function of the module correctly. Still happy.

But then I add additional files to the extension module.

./buildconf --force does not work properly, but provides some warnings that there are incompatible versions of autoconf and automake. (This was always the case, but everything worked with one file, so I ignored it.) I then changed the automake to automake-1.5 as indicated, and got the appropriate version of autoconf as well.

The buildconf now works, generating a configure file which contains all of the correct filenames in my extension module.

make clean   - fine
make         - fine, compiles and links
make install - fails in install-pear and install-pear-installer which are rules in the Makefile


make install (run as root) now fails with this message:

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.so /usr/local/apache2/modules/libphp4.so
cp .libs/libphp4.lai /usr/local/apache2/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish /home/dtonn/ng2/user-pp/http/php-4.3.3/libs'
chmod 755 /usr/local/apache2/modules/libphp4.so
[activating module `php4' in /usr/local/apache2/conf/httpd.conf]
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:      /usr/local/lib/php/
PHP Fatal error:  Unable to start messagerouterclient module in Unknown on line
0
make[1]: *** [install-pear-installer] Error 254
make: *** [install-pear] Error 2


It appears to me that it is not possible to create a module for PHP using either the RedHat 9.0 distribution (not PHP's fault, but rather RH's) or the recommended versions of automake and autoconf. So far I have not been able to track down the line of code which actually dumps that error message.






Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-08 19:08 UTC] sniper@php.net
We don't support 3rd party extensions.
Please ask this kind of support questions elsewhere,
for example internals@lists.php.net (as you're obviously doing something wrong here)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 10:00:03 2025 UTC