Re: [PHP4BETA] php-4.0b1 won't load as a DSO on ydl-1.0
| From: | Sascha Schumann | Date: | Tue, 20 Jul 1999 17:03:32 +0000 |
| Subject: | Re: [PHP4BETA] php-4.0b1 won't load as a DSO on ydl-1.0 | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2306@lists.php.net to get a copy of this message | ||
On Tue, Jul 20, 1999 at 10:03:41AM -0600, Darron Froese wrote:
> Here's the configure line I used:
>
> ./configure --with-apxs=/usr/local/apache/bin/apxs \
> --with-shared-config-file=/usr/local/apache/conf/httpd.conf \
> --with-mysql
>
> It configured and compiled without any problems but after I added the
> module, apache 1.3.6 wouldn't start up and gave this reason:
>
> Cannot load /usr/local/apache/libexec/libphp4.so into server:
> /usr/local/apache/libexec/libphp4.so: R_PPC_REL24 relocation out of range
>
> I'm running kernel 2.2.7 on an Apple Network Server running YellowDogLinux
> 1.0. It was compiled with the egcs from the distribution (gcc version
> egcs-2.91.62 19990224 (egcs-1.1.2 pre-release-2). php-3.0.11 is running just
> fine as a DSO on this machine right now.
Remove libphp4.so and edit the apxs utility. On line 75+ change
my $CFG_LD_SHLIB = 'ld'; # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = '-Bshareable'; # substituted via Makefile.tmpl
to
my $CFG_LD_SHLIB = 'gcc'; # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = '-shared'; # substituted via Makefile.tmpl
And let us know whether it works.
--
Regards,
Sascha Schumann
Consultant