Re: [PHP4BETA] won't dynamically link
| From: | Rasmus Lerdorf | Date: | Wed, 12 Apr 2000 08:23:44 +0000 |
| Subject: | Re: [PHP4BETA] won't dynamically link | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13438@lists.php.net to get a copy of this message | ||
> I'm sorry to be bugging this list about this, but you all are my
> last resort. I've already tried zend.com, phpbuilder, php.net,
> the deja archives, etc. I'm currently unable to find any way
> to get php4 working.
>
> running sparc-solaris (sunos 5.6)
>
> apache 1.3.12, compiled with dynamic linking (mod.so) enabled.
> Here are the flags:
>
> ./configure
> "--prefix=/web/apache-1.3.12"
> "--with-layout=Apache"
> "--enable-module=so"
> "--enable-module=auth_dbm"
>
>
> php-4, RC1, compiled to use dynamic linking (apxs). Here are the flags:
>
> ./configure
> --with-apxs=/web/apache-1.3.12/bin/apxs
> --prefix=/web/php-4.0RC1
> --with-config-file-path=/web/php ## that's a symlink to the --prefix path
> --without-gd
> --enable-sysvshm=yes
> --enable-sysvsem=yes
> --enable-safe-mode=yes
> --with-exec-dir=/web/php/safe-bin
> --enable-track-vars=yes
> --enable-trans-sid=yes
> --enable-force-cgi-redirect=yes
force-cgi-redirect has no meaning when you are building PHP as an Apache
module (which you are because you have --with-apxs)
> --enable-memory-limit=yes
> --with-xml
> --enable-short-tags=no
>
>
> As far as I can tell, compiles and installs go fine. But when I try to
> start up the web server, I get this error:
>
> Syntax error on line 212 of /web/apache/conf/httpd.conf:
>
> Cannot load /web/apache/libexec/libphp4.so into server: ld.so.1:
> /web/apache/bin/httpd: fatal: relocation error:
> file /web/apache/libexec/libphp4.so: symbol ap_block_alarms:
> referenced symbol not found
>
> Line 212 is the loadmodule line:
>
> LoadModule php4_module libexec/libphp4.so
>
> Commenting out that line allows httpd to start, but of course without php.
>
> Has anyone run across this before? Any help would be appreciated, since
> I'm stumped and we're dead in the water as far as php goes.
Is /web/apache a symlink to /web/apache-1.3.12 ?
It sure looks like you built PHP against a different set of Apache headers
than the one you are trying to link it into.
-Rasmus