From:             dtonn at packeteer dot com
Operating system: RedHat 9.0
PHP version:      4.3.3
PHP Bug Type:     Compile Failure
Bug description:  make install fails for new module

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.






-- 
Edit bug report at http://bugs.php.net/?id=25443&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25443&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25443&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25443&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25443&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25443&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25443&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25443&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25443&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25443&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25443&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25443&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25443&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25443&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25443&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25443&r=gnused

Reply via email to