wget broke after updating a 4.7 box to 4.8-RC: $ wget http://localhost/ --23:20:19-- http://localhost/ => `index.html' /usr/libexec/ld-elf.so.1: wget: Undefined symbol "OpenSSL_add_all_algorithms" Tim
On Thu, Mar 27, 2003 at 11:23:06PM +1100, Tim Robbins wrote:> wget broke after updating a 4.7 box to 4.8-RC: > > $ wget http://localhost/ > --23:20:19-- http://localhost/ > => `index.html' > /usr/libexec/ld-elf.so.1: wget: Undefined symbol "OpenSSL_add_all_algorithms" >This is even with COMPAT4X in /etc/make.conf? Cheers, -- Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20030327/160dfff5/attachment.bin
On Thu, Mar 27, 2003 at 11:23:06PM +1100, Tim Robbins wrote:> wget broke after updating a 4.7 box to 4.8-RC: > > $ wget http://localhost/ > --23:20:19-- http://localhost/ > => `index.html' > /usr/libexec/ld-elf.so.1: wget: Undefined symbol "OpenSSL_add_all_algorithms"You have probably been bitten by the fact that the OpenSSL _port_ had the wrong version number, and that wget was compiled against the OpenSSL _port_. Now at runtime, wget finds the base system OpenSSL libraries (which are 0.9.7, not 0.9.6 as wget expects). You might try the following hack to work around the problem. 1) Rename the old port's libraries. mv /usr/local/lib/libssl.so.3 /usr/local/lib/libSsl.so.3 mv /usr/local/lib/libcrypto.so.3 /usr/local/lib/libCrypto.so.3 2) Patch up your old binaries to refer to the modified names. ed -s /path/to/wget >/dev/null <<-EOF /libcrypto\.so/ s/libcrypto\.so\.\([0-9]\)/libCrypto.so.\1/ /libssl\.so/ s/libssl\.so\.\([0-9]\)/libSsl.so.\1/ w EOF Or another possibility might be simply env LD_LIBRARY_PATH=/usr/local/lib wget ... but that gets tiresome :-) Cheers, -- Jacques A. Vidrine <nectar@celabo.org> http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se