Re: Compiling on HP-UX
| From: | James Greenhalgh | Date: | Sat, 28 Oct 2000 15:44:30 +0000 |
| Subject: | Re: Compiling on HP-UX | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-525@lists.php.net to get a copy of this message | ||
PHP seems to make lots of mistakes when it comes to dlopen.. It might
actually be HPUX, but theres certainly a bug or two in the PHP src too.
When you've run the configure, unless you have: /usr/lib/libdl.sl, change
php_config.h thus:
/* */
#undef HAVE_LIBDL
That's what I had to do on mine to fix it. you may later see DL_UNLOAD
errors - these are caused by the same thing, as in some places DL_UNLOAD
(alias of dlclose) is called, without checking to see if HAVE_LIBDL is
set. dlopen/dlclose are listed in the HPUX man pages, but as yet - I
haven't actually found the library they exist in, if at all..
james
--
James Greenhalgh - Unix Systems Architect
FIGHT THE RIP BILL! www.stand.org.uk Your privacy depends on it!
BOYCOTT THE PUMPS! www.boycott-the-pumps.com
* The views in this message are not those of Powernet International *
On Sat, 28 Oct 2000, Jesse Swensen wrote:
> I am trying to compile PHP and I get an error as follows:
>
> Making all in .
> make[1]: Entering directory `/zrtph036_appl/d01/home/web/build/php-4.0.3pl1'
> /bin/sh /d01/home/web/build/php-4.0.3pl1/libtool --silent --mode=link gcc
> -I. -I/d01/home/web/build/php-4.0.3pl1/ -I/d01/home/web/b
> uild/php-4.0.3pl1 -I/d01/home/web/build/php-4.0.3pl1/main
> -I/d01/home/web/build/php-4.0.3pl1/Zend -I/d01/home/web/build/php-4.0.3pl1
> -I/u01/home/oracle/dist/8.1.6/rdbms/public
> -I/u01/home/oracle/dist/8.1.6/rdbms/demo
> -I/u01/home/oracle/dist/8.1.6/network/public -I
> /d01/home/web/build/php-4.0.3pl1/ext/xml/expat/xmltok
> -I/d01/home/web/build/php-4.0.3pl1/ext/xml/expat/xmlparse
> -I/d01/home/web/buil
> d/php-4.0.3pl1/TSRM -DXML_BYTE_ORDER=21 -g -O2 -o php -export-dynamic
> stub.lo libphp4.la
> /usr/bin/ld: Unsatisfied symbols:
> dlclose (code)
> dlerror (code)
> dlsym (code)
> collect2: ld returned 1 exit status
> make[1]: *** [php] Error 1
> make[1]: Leaving directory `/zrtph036_appl/d01/home/web/build/php-4.0.3pl1'
> make: *** [all-recursive] Error 1
>
>
> I have tried it both with HP's cc and I have installed GNU binutils and gcc.
> I have searched the archives and found a few references to problems with
> HP-UX, but none like this. I thought the problem may have been with HP's
> ld, but when I try to build that as part of the binutils and gcc, it tells
> me it is not supported in this configuration.
>
> I am using HP-UX 11.0 on a machine with multiple processors, if that makes
> any difference.
>
> Any help would be appreciated...
> --
> Jesse
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net
> For additional commands, e-mail: php-install-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>