note 9454 added to Installation on UNIX systems
| From: | cary at elocale dot com | Date: | Fri, 03 Nov 2000 21:40:08 +0000 |
| Subject: | note 9454 added to Installation on UNIX systems | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7353@lists.php.net to get a copy of this message | ||
Unless you have magical powers (or maybe you just have a clue about these things) you will be unable
to compile PHP
(4.0.3pl1) as a DSO for Apache on HP-UX (11). You will get the following error when running make
install:
----------------------------------------
*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
/opt/apache/bin/apxs -i -a -n php4 libs/libphp4.sl
apxs:Error: file libs/libphp4.sl is not a DSO
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
----------------------------------------
I was only able to install PHP must as a static module, and only after doing the following:
1. Install GCC (I could not get HP ANSI C to compile it)
2. Install Gnu binutils
3. Modify the zend_extension_startup function defined in the Zend/zend_extensions.c file
(preprocessor definitions added):
----------------------------------------
static void zend_extension_startup(zend_extension *extension)
{
#if ZEND_EXTENSIONS_SUPPORT /* this line added */
if(extension->startup) {
if(extension->startup(extension)!=SUCCESS) {
DL_UNLOAD(extension->handle)
}
}
#endif /* this line added */
}
----------------------------------------
Without adding these preprocessor lines you will get the following error when running make install
on Apache (after PHP is
already built):
----------------------------------------
/usr/ccs/bin/ld: Unsatisfied symbols:
DL_UNLOAD (code)
collect2: ld returned 1 exit status
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
----------------------------------------
Thanks to Lutz Jaenicke (Lutz.Jaenicke@iee.TU-Berlin.DE) for this information, who also reports that
a bug report has been filed for this.
http://www.php.net/manual/install.unix.php