php3-list | 199807

[PHP3] Re: [apache-ssl] Re: [PHP3] Re: [apache-ssl] compile prob PHP3 + Apache_1.3.0 + SSLeay-0.9.0b please help From: John Sutton (list <email protected>)
Date: 07/09/98

Ho

I'm not quite sure whether we "blame" Rasmus or Ben, but who cares, it's
easy to fix! The problem lies in the fact that Apache's ./Configure seems
to take the lib stuff from all the extra modules and apply it to every link.
But by the time the make has walked down into the ssl directory, there's not
enough string to find it's way back to libmodphp3. Of course, as Rasmus
says, the ssl stuff doesn't actually need the lib, but gcc is going to fall
over anyway if it can't find it...

So, before doing the ./Configure, edit the .module file in modules/php3

Change "-Lmodules/php3 -L../modules/php3"
to "-Lmodules/php3 -L../modules/php3 -L../../modules/php3"

That seems to be in the spirit of the thing, although you could just as well
add "-L../php3" of course!

At 15:04 09/07/98 -0400, you wrote:
>> > gcc -DLINUX=2 -DUSE_HSREGEX -DSERVER_SUBVERSION=\"PHP/3.0\" -DAPACHE_SSL
>> > `../../apaci` -o gcache gcache.o gcachecommon.o -lm -lcrypt
-Lmodules/php3
>> > -L../modules/php3 -lmodphp3 -lgdbm -lresolv -lm -ldl -lcrypt
>> > -L/usr/local/src/SSLeay-0.9.0b -lssl -lcrypto
>> > ld: cannot open -lmodphp3: No such file or directory
>> > make[4]: *** [gcache] Error 1
>> > make[3]: *** [all] Error 1
>> > make[2]: *** [subdirs] Error 1
>> > make[2]: Leaving directory `/usr/local/src/apache_1.3.0/src'
>> > make[1]: *** [build-std] Error 2
>> > make[1]: Leaving directory `/usr/local/src/apache_1.3.0'
>> > make: *** [build] Error 2
>>
>> This is a PHP bug - you need to persuade it to add -L../php3 as well.
>
>Looks more like an APACI bug to me. You obviously don't need the PHP
>library linked into the gcache binary.
>
>-Rasmus
>
>

***************************************************
John Sutton
SCL Computer Services
URL http://www.scl.co.uk/
Tel. +44 (0) 1239 621021
***************************************************

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive: http://www.tryc.on.ca/php3.html