Re: Success: Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
In message [EMAIL PROTECTED] on Fri, 23 Apr 2004 08:15:22 -0700 (PDT), Mike Ryerse [EMAIL PROTECTED] said: mikeryerse So do you think that if I would have re-installed curl and mikeryerse made sure that it used libssl.so.0.9.7 instead of mikeryerse libssl.so.2 (and the same for libcrypto.*) that PHP might mikeryerse have worked? I see that as a strong possibility, yes (I can't tell for sure, since I do not know your system and what quirks might come with it). - Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsvägen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See http://www.stacken.kth.se/~levitte/mail/ for more info. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Success: Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
In message [EMAIL PROTECTED] on Thu, 22 Apr 2004 22:38:33 -0700 (PDT), Mike Ryerse [EMAIL PROTECTED] said: mikeryerse I was able to finally get php-4.3.7-devel loaded into mikeryerse apache by removing my install of openssl-0.9.7d (by mikeryerse deleting /usr/local/ssl) and then installing mikeryerse openssl-0.9.6b-35.7.i386.rpm with 'rpm -Uvh --force' and mikeryerse installing openssl-devel-0.9.6b-35.7.i386.rpm with 'rpm mikeryerse -ivh --force'. Apparently the version name says 0.9.6b mikeryerse but the build number (35.7) indicates it's newer than mikeryerse that. Man I am one happy camper. Yes, that's correct, RedHat are treating OpenSSL in their own special way, mostly because there has been some incompatible changes since 0.9.6b. I'm assuming they're trying to keep things backward compatible as much as they can. mikeryerse Thanks for all of your help, this list has been a lot of mikeryerse help, especially Richard Levitte. You're welcome. I'd like to comment one more thing: mikeryerse /usr/bin/ld: warning: libssl.so.2, needed by mikeryerse /usr/local/lib/libcurl.so, may conflict with libssl.so.0.9.7 mikeryerse /usr/bin/ld: warning: libcrypto.so.2, needed by mikeryerse /usr/local/lib/libcurl.so, may conflict with libcrypto.so.0.9.7 This made things quite clear. I'm not entirely sure why PHP didn't link with your build of OpenSSL, but it seems that it gets linked with libcurl.so, which in turn was linked with /lib/libssl.so.2, and PHP simply inherited that from libcurl. - Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsvägen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See http://www.stacken.kth.se/~levitte/mail/ for more info. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Success: Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
So do you think that if I would have re-installed curl and made sure that it used libssl.so.0.9.7 instead of libssl.so.2 (and the same for libcrypto.*) that PHP might have worked? --- Richard Levitte - VMS Whacker [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED] on Thu, 22 Apr 2004 22:38:33 -0700 (PDT), Mike Ryerse [EMAIL PROTECTED] said: mikeryerse I was able to finally get php-4.3.7-devel loaded into mikeryerse apache by removing my install of openssl-0.9.7d (by mikeryerse deleting /usr/local/ssl) and then installing mikeryerse openssl-0.9.6b-35.7.i386.rpm with 'rpm -Uvh --force' and mikeryerse installing openssl-devel-0.9.6b-35.7.i386.rpm with 'rpm mikeryerse -ivh --force'. Apparently the version name says 0.9.6b mikeryerse but the build number (35.7) indicates it's newer than mikeryerse that. Man I am one happy camper. Yes, that's correct, RedHat are treating OpenSSL in their own special way, mostly because there has been some incompatible changes since 0.9.6b. I'm assuming they're trying to keep things backward compatible as much as they can. mikeryerse Thanks for all of your help, this list has been a lot of mikeryerse help, especially Richard Levitte. You're welcome. I'd like to comment one more thing: mikeryerse /usr/bin/ld: warning: libssl.so.2, needed by mikeryerse /usr/local/lib/libcurl.so, may conflict with libssl.so.0.9.7 mikeryerse /usr/bin/ld: warning: libcrypto.so.2, needed by mikeryerse /usr/local/lib/libcurl.so, may conflict with libcrypto.so.0.9.7 This made things quite clear. I'm not entirely sure why PHP didn't link with your build of OpenSSL, but it seems that it gets linked with libcurl.so, which in turn was linked with /lib/libssl.so.2, and PHP simply inherited that from libcurl. - Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsvägen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See http://www.stacken.kth.se/~levitte/mail/ for more info. __ 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]
Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
I am not sure that it is a problem with PHP. I think that it might have something to do with me trying to install openssl-0.9.7d on Redhat 7.3, and I think perhaps Redhat has made some changes from how openssl works on 7.3. I read somewhere that Redhat says building openssl-0.9.7d with all options will fail. I tried building the latest snapshot of php and ./configure was OK, but make return 2 interesting warnings: /usr/bin/ld: warning: libssl.so.2, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.0.9.7 /usr/bin/ld: warning: libcrypto.so.2, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.0.9.7 Maybe there is a bug in php not using the right one, but I think it might have to do with how I installed the openssl shared libraries. --- Richard Levitte - VMS Whacker [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED] on Wed, 21 Apr 2004 23:21:21 -0700 (PDT), Mike Ryerse [EMAIL PROTECTED] said: mikeryerse Then I do a make, no error. Then I do a make install, and mikeryerse I get the following: mikeryerse mikeryerse # make install May I suggest you do the following first? # LD_LIBRARY_PATH=/usr/local/ssl/lib; export LD_LIBRARY_PATH Otherwise, the operating system will not know to look there for the proper library. mikeryerse I have checked /usr/local/ssl/lib and libssl.so.0.9.7 is there. I mikeryerse did an ldd on libphp4.so and get this: mikeryerse # ldd /usr/lib/apache/libphp4.so You definitely need to define LD_LIBRARY_PATH before doing that. I get a little worried about this: mikeryerse libssl.so.2 = /lib/libssl.so.2 (0x40414000) That means that the PHP build is buggy and still picker up /lib/libssl.so.2 instead of /usr/local/ssl/lib/libssl.so.0.9.7. I've seen things like that happen before, and it often is a bug in the build system (in PHP in this case). I would take this up with the PH developpers at this point. - Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsvägen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See http://www.stacken.kth.se/~levitte/mail/ for more info. __ 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]
Success: Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
I was able to finally get php-4.3.7-devel loaded into apache by removing my install of openssl-0.9.7d (by deleting /usr/local/ssl) and then installing openssl-0.9.6b-35.7.i386.rpm with 'rpm -Uvh --force' and installing openssl-devel-0.9.6b-35.7.i386.rpm with 'rpm -ivh --force'. Apparently the version name says 0.9.6b but the build number (35.7) indicates it's newer than that. Man I am one happy camper. Thanks for all of your help, this list has been a lot of help, especially Richard Levitte. --- Mike Ryerse [EMAIL PROTECTED] wrote: I am not sure that it is a problem with PHP. I think that it might have something to do with me trying to install openssl-0.9.7d on Redhat 7.3, and I think perhaps Redhat has made some changes from how openssl works on 7.3. I read somewhere that Redhat says building openssl-0.9.7d with all options will fail. I tried building the latest snapshot of php and ./configure was OK, but make return 2 interesting warnings: /usr/bin/ld: warning: libssl.so.2, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.0.9.7 /usr/bin/ld: warning: libcrypto.so.2, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.0.9.7 Maybe there is a bug in php not using the right one, but I think it might have to do with how I installed the openssl shared libraries. --- Richard Levitte - VMS Whacker [EMAIL PROTECTED] wrote: In message [EMAIL PROTECTED] on Wed, 21 Apr 2004 23:21:21 -0700 (PDT), Mike Ryerse [EMAIL PROTECTED] said: mikeryerse Then I do a make, no error. Then I do a make install, and mikeryerse I get the following: mikeryerse mikeryerse # make install May I suggest you do the following first? # LD_LIBRARY_PATH=/usr/local/ssl/lib; export LD_LIBRARY_PATH Otherwise, the operating system will not know to look there for the proper library. mikeryerse I have checked /usr/local/ssl/lib and libssl.so.0.9.7 is there. I mikeryerse did an ldd on libphp4.so and get this: mikeryerse # ldd /usr/lib/apache/libphp4.so You definitely need to define LD_LIBRARY_PATH before doing that. I get a little worried about this: mikeryerse libssl.so.2 = /lib/libssl.so.2 (0x40414000) That means that the PHP build is buggy and still picker up /lib/libssl.so.2 instead of /usr/local/ssl/lib/libssl.so.0.9.7. I've seen things like that happen before, and it often is a bug in the build system (in PHP in this case). I would take this up with the PH developpers at this point. - Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsvägen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See http://www.stacken.kth.se/~levitte/mail/ for more info. __ 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]
Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
Well, several things may be going on here. To begin with, you have only built the static libraries for OpenSSL. To get shared libraries as well, you need to configure like this: ./config shared And that will only produce shared libraries where we support it. However, that SHOULDN'T make a difference, since you have given the correct OpenSSL path to the php configure script. This means there's something fishy in the PHP build that makes it link with the default OpenSSL libraries for your platform. Another point: is /usr/lib/apache/libphp4.so really the thing you bulit or did your build end up somewhere else? If what you installed ended up somewhere else, that answers all your questions :-) In message [EMAIL PROTECTED] on Tue, 20 Apr 2004 22:10:39 -0700 (PDT), Mike Ryerse [EMAIL PROTECTED] said: mikeryerse Command for installing openssl-0.9.7d.tar.gz: mikeryerse ./config mikeryerse make mikeryerse make install mikeryerse mikeryerse Command for php-4.3.6: mikeryerse ./configure --with-openssl=/usr/local/ssl mikeryerse make mikeryerse make install mikeryerse mikeryerse Then when starting apache I get the following: mikeryerse Syntax error on line 264 of /etc/httpd/conf/httpd.conf: mikeryerse Cannot load /usr/lib/apache/libphp4.so into server: mikeryerse /usr/lib/apache/libphp4.so: undefined symbol: mikeryerse OPENSSL_add_all_algorithms_noconf mikeryerse mikeryerse I checked an ldd on libphp4.so and this is what I get: mikeryerse # ldd libphp4.so mikeryerse libssl.so.2 = /lib/libssl.so.2 (0x40414000) mikeryerse mikeryerse There seems to be a link on this file: mikeryerse # ls -l libssl.so.2 mikeryerse lrwxrwxrwx1 root root 16 Mar 13 09:05 libssl.so.2 mikeryerse - libssl.so.0.9.6b mikeryerse mikeryerse Can anyone help me please? I've been working on this for ages. - Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsvägen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See http://www.stacken.kth.se/~levitte/mail/ for more info. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
I had tried building openssl with ./config shared before you suggested it, and after that I tried ./configure for php and it failed on db3 and imap (I have more to the ./configure command for php than I mentioned, just wanted to save email space for everyone). I ended up re-installing db3 and imap and re-building openssl and php and am back where I was with the undefined symbol: OPENSSL_add_all_algorithms_noconf. /usr/lib/apache/libphp4.so is where make install says that it copied to, and when I do a ls -l on it, it shows todays date, so I know that it's the correct one. It seems like php knows that there is a function called OPENSSL_add_all_algorithms_noconf in evp.h, but something is wrong when apache tries to load it, like libphp4.so is pointing to an old version of evp.h that doesn't have OPENSSL_add_all_algorithms_noconf in it. Or something like that. It looks like libssl.so.0.9.6b was last modified at the same time I built openssl so I'd think it would have the latest info in it. I was perplexed as to why it would still say 0.9.6b as I am compiling 0.9.7d, but I figure that maybe it just hasn't been updated by the openssl developers. If I search google for libssl.so.0.9.7d there are no results. Although this isn't working, I'm learning a lot about building applications! Gotta look at the bright side :) --- Richard Levitte - VMS Whacker [EMAIL PROTECTED] wrote: Well, several things may be going on here. To begin with, you have only built the static libraries for OpenSSL. To get shared libraries as well, you need to configure like this: ./config shared And that will only produce shared libraries where we support it. However, that SHOULDN'T make a difference, since you have given the correct OpenSSL path to the php configure script. This means there's something fishy in the PHP build that makes it link with the default OpenSSL libraries for your platform. Another point: is /usr/lib/apache/libphp4.so really the thing you bulit or did your build end up somewhere else? If what you installed ended up somewhere else, that answers all your questions :-) In message [EMAIL PROTECTED] on Tue, 20 Apr 2004 22:10:39 -0700 (PDT), Mike Ryerse [EMAIL PROTECTED] said: mikeryerse Command for installing openssl-0.9.7d.tar.gz: mikeryerse ./config mikeryerse make mikeryerse make install mikeryerse mikeryerse Command for php-4.3.6: mikeryerse ./configure --with-openssl=/usr/local/ssl mikeryerse make mikeryerse make install mikeryerse mikeryerse Then when starting apache I get the following: mikeryerse Syntax error on line 264 of /etc/httpd/conf/httpd.conf: mikeryerse Cannot load /usr/lib/apache/libphp4.so into server: mikeryerse /usr/lib/apache/libphp4.so: undefined symbol: mikeryerse OPENSSL_add_all_algorithms_noconf mikeryerse mikeryerse I checked an ldd on libphp4.so and this is what I get: mikeryerse # ldd libphp4.so mikeryerse libssl.so.2 = /lib/libssl.so.2 (0x40414000) mikeryerse mikeryerse There seems to be a link on this file: mikeryerse # ls -l libssl.so.2 mikeryerse lrwxrwxrwx1 root root 16 Mar 13 09:05 libssl.so.2 mikeryerse - libssl.so.0.9.6b mikeryerse mikeryerse Can anyone help me please? I've been working on this for ages. - Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsvägen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See http://www.stacken.kth.se/~levitte/mail/ for more info. __ 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]
Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
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 lrwxrwxrwx1 root root 16 Mar 13 09:05 mikeryerse libssl.so.2
Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
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
Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
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
Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
Try the following command: nm /lib/libssl.so | grep OPENSSL_add_all_algorithms_noconf 'nm' shows the symbolic names in an archive or library file, and 'grep' finds the symbol you want (assuming it's there...) - Eric Morris Mike Ryerse wrote: 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
Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
oh, you need to run that command on the ACTUAL library file, not a link so nm /lib/libssl.so.x.y.z ... - Eric Morris Eric Morris wrote: Try the following command: nm /lib/libssl.so | grep OPENSSL_add_all_algorithms_noconf 'nm' shows the symbolic names in an archive or library file, and 'grep' finds the symbol you want (assuming it's there...) - Eric Morris Mike Ryerse wrote: 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
Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
In message [EMAIL PROTECTED] on Wed, 21 Apr 2004 13:23:44 -0700 (PDT), Mike Ryerse [EMAIL PROTECTED] said: mikeryerse I was looking at the install instructions for mikeryerse openssl-0.9.7d and it said that after running ./configure, mikeryerse and then make, that some *.a files are installed in mikeryerse /usr/local/ssl/lib, not *.so files. That's a documentation mistake. If you look in the top OpenSSL Makefile, you will see that install: installs both static (.a) and shared (.so*) file in $(INSTALL_PREFIX)$(INSTALLTOP)/lib ($(INSTALL_PREFIX)$(INSTALLTOP) become /usr/local/ssl in the default configuration). Have you looked in /usr/local/ssl/lib? - Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsvägen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See http://www.stacken.kth.se/~levitte/mail/ for more info. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
In message [EMAIL PROTECTED] on Wed, 21 Apr 2004 12:57:40 -0700 (PDT), Mike Ryerse [EMAIL PROTECTED] said: mikeryerse I have a question about your reponse: mikeryerse If php is finding /usr/local/ssl/include/evp.h but using mikeryerse /lib/libssl.so instead of /usr/local/ssl/lib/libssl.so, mikeryerse how do I link php to the correct lib? When linking, you should have the following arguments: -L/usr/local/ssl/lib -lssl -lcrypto You should check that the relevant PHP build uses that. Also, a case I didn't think of: the process that starts apache should have the following line somewhere: LD_LIBRARY_PATH=/usr/local/ssl/lib; export LD_LIBRARY_PATH mikeryerse I thought about moving/renaming /lib/libssl.so, but since mikeryerse it seems to be linked to /lib/libssl.so.x.y.z, I am mikeryerse concerned that there may be other applications dependant mikeryerse on it, and I am not sure how to check what applications mikeryerse are using this file. It was probably a smart move to leave it be. - Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsvägen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See http://www.stacken.kth.se/~levitte/mail/ for more info. __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
cannot compile openssl-0.9.7d into php-4.3.6 with apache-1.3.27 on Redhat 7.3
Command for installing openssl-0.9.7d.tar.gz: ./config make make install Command for php-4.3.6: ./configure --with-openssl=/usr/local/ssl make make install Then when starting apache I get the following: Syntax error on line 264 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/apache/libphp4.so: undefined symbol: OPENSSL_add_all_algorithms_noconf I checked an ldd on libphp4.so and this is what I get: # ldd libphp4.so libssl.so.2 = /lib/libssl.so.2 (0x40414000) There seems to be a link on this file: # ls -l libssl.so.2 lrwxrwxrwx1 root root 16 Mar 13 09:05 libssl.so.2 - libssl.so.0.9.6b Can anyone help me please? I've been working on this for ages. __ 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]