I was looking at the install instructions for openssl-0.9.7d and it said that after running ./configure, and then make, that some *.a files are installed in /usr/local/ssl/lib, not *.so files. Also, It seems that when I build openssl-0.9.7d, it seems to show that /lib/libssl.so* was modified. Is there a way for me to check /lib/libssl.so* to see if it contains OPENSSL_add_all_algorithms_noconf or not?
--- Mike Ryerse <[EMAIL PROTECTED]> wrote: > I have a question about your reponse: > If php is finding /usr/local/ssl/include/evp.h but using > /lib/libssl.so instead of /usr/local/ssl/lib/libssl.so, how do I > link > php to the correct lib? > > I thought about moving/renaming /lib/libssl.so, but since it seems > to > be linked to /lib/libssl.so.x.y.z, I am concerned that there may be > other applications dependant on it, and I am not sure how to check > what applications are using this file. > > I suppose there may be an additional directive that I can pass to > php > in ./configure that defines the location of the correct libssl.so > file to use. > > --- Richard Levitte - VMS Whacker <[EMAIL PROTECTED]> wrote: > > OK, a few points: > > > > The way you configured OpenSSL, the library files ended up in > > /usr/local/ssl/lib. Also, they are named libcrypto.so.x.y.zt and > > libssl.so.x.y.zt with the symbolic links libcrypto.so.0 and > > libssl.so.0 (note, ending with 0, not 2) as well as libcrypto.so > > and > > libssl.so. This I know for sure. If PHP was linked with > > /lib/libssl.so.2, it did not link with the libssl.so that you > > imagine. Actually, the ending .2 makes me think you're running > on > > RedHat or a derivate thereof, since they use that major library > > version. > > > > The symbol OPENSSL_add_all_algorithms_noconf exists in OpenSSL > > 0.9.7x > > but not in 0.9.6x. > > > > What I imagine happened is that PHP configuration specified > > correctly > > where to find OpenSSL header files (and therefore got > > /usr/local/ssl/include/openssl/evp.h) but not where to find the > > files > > to link with (and therefore hit /lib/libssl.so instead of > > /usr/local/ssl/lib/libssl.so). > > > > In message <[EMAIL PROTECTED]> > on > > Wed, 21 Apr 2004 08:34:57 -0700 (PDT), Mike Ryerse > > <[EMAIL PROTECTED]> said: > > > > mikeryerse> I had tried building openssl with ./config shared > > before you > > mikeryerse> suggested it, and after that I tried ./configure for > > php and it > > mikeryerse> failed on db3 and imap (I have more to the > ./configure > > command for > > mikeryerse> php than I mentioned, just wanted to save email space > > for everyone). > > mikeryerse> I ended up re-installing db3 and imap and re-building > > openssl and php > > mikeryerse> and am back where I was with the undefined symbol: > > mikeryerse> OPENSSL_add_all_algorithms_noconf. > > mikeryerse> /usr/lib/apache/libphp4.so is where make install says > > that it copied > > mikeryerse> to, and when I do a ls -l on it, it shows todays > date, > > so I know that > > mikeryerse> it's the correct one. > > mikeryerse> It seems like php knows that there is a function > called > > mikeryerse> OPENSSL_add_all_algorithms_noconf in evp.h, but > > something is wrong > > mikeryerse> when apache tries to load it, like libphp4.so is > > pointing to an old > > mikeryerse> version of evp.h that doesn't have > > OPENSSL_add_all_algorithms_noconf > > mikeryerse> in it. Or something like that. > > mikeryerse> It looks like libssl.so.0.9.6b was last modified at > the > > same time I > > mikeryerse> built openssl so I'd think it would have the latest > > info in it. I > > mikeryerse> was perplexed as to why it would still say 0.9.6b as > I > > am compiling > > mikeryerse> 0.9.7d, but I figure that maybe it just hasn't been > > updated by the > > mikeryerse> openssl developers. > > mikeryerse> If I search google for libssl.so.0.9.7d there are no > > results. > > mikeryerse> Although this isn't working, I'm learning a lot about > > building > > mikeryerse> applications! Gotta look at the bright side :) > > mikeryerse> > > mikeryerse> --- Richard Levitte - VMS Whacker > > <[EMAIL PROTECTED]> wrote: > > mikeryerse> > Well, several things may be going on here. > > mikeryerse> > > > mikeryerse> > To begin with, you have only built the static > > libraries for > > mikeryerse> > OpenSSL. > > mikeryerse> > To get shared libraries as well, you need to > > configure like this: > > mikeryerse> > > > mikeryerse> > ./config shared > > mikeryerse> > > > mikeryerse> > And that will only produce shared libraries where > we > > support it. > > mikeryerse> > > > mikeryerse> > However, that SHOULDN'T make a difference, since > you > > have given the > > mikeryerse> > correct OpenSSL path to the php configure script. > > This means > > mikeryerse> > there's > > mikeryerse> > something fishy in the PHP build that makes it link > > with the > > mikeryerse> > default > > mikeryerse> > OpenSSL libraries for your platform. > > mikeryerse> > > > mikeryerse> > Another point: is /usr/lib/apache/libphp4.so really > > the thing you > > mikeryerse> > bulit or did your build end up somewhere else? If > > what you > > mikeryerse> > installed > > mikeryerse> > ended up somewhere else, that answers all your > > questions :-) > > mikeryerse> > > > mikeryerse> > In message > > <[EMAIL PROTECTED]> on > > mikeryerse> > Tue, 20 Apr 2004 22:10:39 -0700 (PDT), Mike Ryerse > > mikeryerse> > <[EMAIL PROTECTED]> said: > > mikeryerse> > > > mikeryerse> > mikeryerse> Command for installing > > openssl-0.9.7d.tar.gz: > > mikeryerse> > mikeryerse> ./config > > mikeryerse> > mikeryerse> make > > mikeryerse> > mikeryerse> make install > > mikeryerse> > mikeryerse> > > mikeryerse> > mikeryerse> Command for php-4.3.6: > > mikeryerse> > mikeryerse> ./configure > --with-openssl=/usr/local/ssl > > mikeryerse> > mikeryerse> make > > mikeryerse> > mikeryerse> make install > > mikeryerse> > mikeryerse> > > mikeryerse> > mikeryerse> Then when starting apache I get the > > following: > > mikeryerse> > mikeryerse> Syntax error on line 264 of > > /etc/httpd/conf/httpd.conf: > > mikeryerse> > mikeryerse> Cannot load /usr/lib/apache/libphp4.so > > into server: > > mikeryerse> > mikeryerse> /usr/lib/apache/libphp4.so: undefined > > symbol: > > mikeryerse> > mikeryerse> OPENSSL_add_all_algorithms_noconf > > mikeryerse> > mikeryerse> > > mikeryerse> > mikeryerse> I checked an ldd on libphp4.so and this > > is what I get: > > mikeryerse> > mikeryerse> # ldd libphp4.so > > mikeryerse> > mikeryerse> libssl.so.2 => /lib/libssl.so.2 > > (0x40414000) > > mikeryerse> > mikeryerse> > > mikeryerse> > mikeryerse> There seems to be a link on this file: > > mikeryerse> > mikeryerse> # ls -l libssl.so.2 > > mikeryerse> > mikeryerse> lrwxrwxrwx 1 root root > > 16 Mar 13 09:05 > > mikeryerse> > libssl.so.2 > > mikeryerse> > mikeryerse> -> libssl.so.0.9.6b > > mikeryerse> > mikeryerse> > > mikeryerse> > mikeryerse> Can anyone help me please? I've been > > working on this > > mikeryerse> > for ages. > > mikeryerse> > > > mikeryerse> > ----- > > mikeryerse> > Please consider sponsoring my work on free > software. > > mikeryerse> > See http://www.free.lp.se/sponsoring.html for > > details. > > mikeryerse> > > > mikeryerse> > -- > > mikeryerse> > Richard Levitte \ Tunnlandsvägen 52 \ > > [EMAIL PROTECTED] > > mikeryerse> > [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: > > +46-708-26 53 44 > > mikeryerse> > \ SWEDEN \ > > mikeryerse> > Procurator Odiosus Ex Infernis -- > > [EMAIL PROTECTED] > > mikeryerse> > Member of the OpenSSL development team: > > http://www.openssl.org/ > > mikeryerse> > > > mikeryerse> > Unsolicited commercial email is subject to an > > archival fee of $400. > > mikeryerse> > See <http://www.stacken.kth.se/~levitte/mail/> for > > more info. > > mikeryerse> > > > mikeryerse> > > > ______________________________________________________________________ > > mikeryerse> > OpenSSL Project > > mikeryerse> > http://www.openssl.org > > mikeryerse> > User Support Mailing List > > mikeryerse> > [EMAIL PROTECTED] > > mikeryerse> > Automated List Manager > > mikeryerse> [EMAIL PROTECTED] > > mikeryerse> > > mikeryerse> > > mikeryerse> > > mikeryerse> > > mikeryerse> > > mikeryerse> __________________________________ > > mikeryerse> Do you Yahoo!? > > mikeryerse> Yahoo! Photos: High-quality 4x6 digital prints for > 25¢ > > mikeryerse> http://photos.yahoo.com/ph/print_splash > > mikeryerse> > > > ______________________________________________________________________ > > mikeryerse> OpenSSL Project > > http://www.openssl.org > > mikeryerse> User Support Mailing List > > [EMAIL PROTECTED] > > mikeryerse> Automated List Manager > > [EMAIL PROTECTED] > > > ______________________________________________________________________ > > OpenSSL Project > > http://www.openssl.org > > User Support Mailing List > > [EMAIL PROTECTED] > > Automated List Manager > [EMAIL PROTECTED] > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Photos: High-quality 4x6 digital prints for 25¢ > http://photos.yahoo.com/ph/print_splash > ______________________________________________________________________ > OpenSSL Project > http://www.openssl.org > User Support Mailing List > [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]