Re: php4.so, undefined symbol: RAND_load_file (Apache 1.3)
On Fri, Dec 30, 2005 at 07:12:20PM -0500, Julien Lamarche wrote: For MapTools' FGS base with Chamelon, I used it's own install script. Did you run the install script as root, or as your normal user? Which destination directory did you specify when asked? I haven't really used FGS myself so far, but if I'm understanding things correctly, the underlying installation concept is to provide a more or less self-contained setup with its own apache and all required libraries, including its own version of libssl, and a busload of other private stuff. (...) After it still doesn't work. - picard:/home/jlam# apachectl configtest Syntax error on line 245 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/1.3/libphp4.so into server: /usr/lib/apache/1.3/libphp4.so: undefined symbol: RAND_load_file Generally, the RAND_load_file symbol that libphp4.so is missing is supposed to be provided by libcrypto, as you can verify by doing $ nm -D /lib/libcrypto.so.0.9.7 | grep RAND_load 00087390 T RAND_load_file (also see http://www.openssl.org/docs/crypto/RAND_load_file.html) As you probably figured from this URL, libcrypto is part of the OpenSSL package, and on debian, libssl is dynamically linked against libcrypto: $ ldd /lib/libssl.so.0.9.7 libcrypto.so.0.9.7 = /lib/libcrypto.so.0.9.7 (0x40032000) libdl.so.2 = /lib/libdl.so.2 (0x40138000) libc.so.6 = /lib/libc.so.6 (0x4013b000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000) Yet, for some reason I can't tell, the libssl shipped with FGS does _not_ depend on libcrypto.so.0.9.7 $ ldd /tmp/fgs/lib/libssl.so.0.9.7 libdl.so.2 = /lib/libdl.so.2 (0x400ca000) libc.so.6 = /lib/libc.so.6 (0x400cd000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000) Debian's libphp4.so does not explicitly load libcrypto, but instead is relying on libssl to pull it in as a secondary dependency... The net effect of all this would be that the symbol would simply not be made available, in case FGS's libssl should be used. IOW, I suppose what's happened is that the install script (or you :) somehow messed up things, so the wrong libssl is being used now. I can't tell the exact reason, but maybe we'll find out... One possible issue could be that the LD_LIBRARY_PATH setting (which the FGS installation needs to run) somehow still is in effect. In the setenv.sh script that comes with the FGS package, you can see that it prepends its own lib path ... export LD_LIBRARY_PATH=$FGS_HOME/lib:$LD_LIBRARY_PATH ... AFAICT, the installation instructions suggest to source this setenv.sh in .bashrc. Have you done that, maybe? If so, in which .bashrc - yours, or root's? Anything else along these lines you might have done (intentionally or inadvertently), but then have forgotten about? Quoi qu'il en soit... salut, bonne chance, et bonne année! Almut (aka 'madame ldd' ;) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
php4.so, undefined symbol: RAND_load_file (Apache 1.3)
Bonjour, I have an undefined symbol in php4.so # apachectl configtest Syntax error on line 245 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/1.3/libphp4.so into server: /usr/lib/apache/1.3/libphp4.so: undefined symbol: RAND_load_file I just install MapTools' FGS base with Chamelon. I don't know if this is the cause of the problem. I reinstalled libssl0.9.7, libgnutls11 and php4 as suggested on a local LUG list. But no avail. Any ideas? Is there another mailling list I should ask? Perhaps on php4.net? Merci à prochaine, Julien -- Be more. Less stuff. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: php4.so, undefined symbol: RAND_load_file (Apache 1.3)
On Fri, 2005-12-30 at 12:33 -0500, Julien Lamarche wrote: Bonjour, I have an undefined symbol in php4.so # apachectl configtest Syntax error on line 245 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/1.3/libphp4.so into server: /usr/lib/apache/1.3/libphp4.so: undefined symbol: RAND_load_file I just install MapTools' FGS base with Chamelon. I don't know if this is the cause of the problem. how did you install this? what was the exact process? are you using debian? I reinstalled libssl0.9.7, libgnutls11 and php4 as suggested on a local LUG list. But no avail. Any ideas? Is there another mailling list I should ask? Perhaps on php4.net? again, how did you reinstall these? are you using debian? -matt zagrabelny -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: php4.so, undefined symbol: RAND_load_file (Apache 1.3)
Bonjour Matt, Merci for your time. Yes I am using Debian. For MapTools' FGS base with Chamelon, I used it's own install script. For libssl0.9.7, libgnutls11 and php4, I re-installed it using apt-get install --reinstall. --- picard:/home/jlam# apt-get install --reinstall libssl0.9.7 libgnutls11 php4 ... Preparing to replace libgnutls11 1.0.16-13.1 (using .../libgnutls11_1.0.16-13.1_i386.deb) ... Unpacking replacement libgnutls11 ... Preparing to replace libssl0.9.7 0.9.7e-3sarge1 (using .../libssl0.9.7_0.9.7e-3sarge1_i386.deb) ... Unpacking replacement libssl0.9.7 ... Preparing to replace php4 4:4.3.10-16 (using .../php4_4% 3a4.3.10-16_all.deb) ... Unpacking replacement php4 ... Setting up libgnutls11 (1.0.16-13.1) ... Setting up libssl0.9.7 (0.9.7e-3sarge1) ... Setting up php4 (4.3.10-16) ... - After it still doesn't work. - picard:/home/jlam# apachectl configtest Syntax error on line 245 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/1.3/libphp4.so into server: /usr/lib/apache/1.3/libphp4.so: undefined symbol: RAND_load_file - I'll ask on MapTools if they ever heard their install script causing problems, but if you have any ideas what I can do please suggest. Merci beaucoup à la prochaine, Julien Le vendredi 30 décembre 2005 à 16:51 -0600, [EMAIL PROTECTED] a écrit : On Fri, 2005-12-30 at 12:33 -0500, Julien Lamarche wrote: Bonjour, I have an undefined symbol in php4.so # apachectl configtest Syntax error on line 245 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/1.3/libphp4.so into server: /usr/lib/apache/1.3/libphp4.so: undefined symbol: RAND_load_file I just install MapTools' FGS base with Chamelon. I don't know if this is the cause of the problem. how did you install this? what was the exact process? are you using debian? I reinstalled libssl0.9.7, libgnutls11 and php4 as suggested on a local LUG list. But no avail. Any ideas? Is there another mailling list I should ask? Perhaps on php4.net? again, how did you reinstall these? are you using debian? -matt zagrabelny -- Be more. Less stuff. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]