psql linked to openssl 0.9.6 _and_ 0.9.7 shared libs

From: Walter Haidinger <walter(dot)haidinger(at)gmx(dot)at>
To: pgsql-bugs(at)postgresql(dot)org
Subject: psql linked to openssl 0.9.6 _and_ 0.9.7 shared libs
Date: 2003-07-09 15:00:28
Message-ID: Pine.LNX.4.53.0307091646130.13878@banshee.dnsalias.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi!

I've built 7.3.3 under Solaris 2.6 using gcc 2.95.3 and GNU ld.
Compilation and the regression tests are all successful.

However, I've installed OpenSSL 0.9.7b _and_ have an older 0.9.6
version some programs still depend on (recompiling is on my todo list,
though).

While the backend is correctly linked to the new 0.9.7b shared libs,

> ldd -r ./src/backend/postgres
* libssl.so.0.9.7 => /usr/local/ssl/lib/libssl.so.0.9.7
* libcrypto.so.0.9.7 => /usr/local/ssl/lib/libcrypto.so.0.9.7
libz.so => /usr/local/lib/libz.so
libreadline.so.4 => /usr/local/lib/libreadline.so.4
libposix4.so.1 => /usr/lib/libposix4.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libaio.so.1 => /usr/lib/libaio.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1

the psql frontend is somehow linked to the _old_ libraries
as well as to the new:

> ldd -r ./src/bin/psql/psql
libpq.so.3 => /usr/local/pgsql/lib/libpq.so.3
* libssl.so.0.9.7 => /usr/local/ssl/lib/libssl.so.0.9.7
* libcrypto.so.0.9.7 => /usr/local/ssl/lib/libcrypto.so.0.9.7
libz.so => /usr/local/lib/libz.so
libreadline.so.4 => /usr/local/lib/libreadline.so.4
libposix4.so.1 => /usr/lib/libposix4.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
* libssl.so.0.9.6 => /usr/local/ssl/lib/libssl.so.0.9.6
* libcrypto.so.0.9.6 => /usr/local/ssl/lib/libcrypto.so.0.9.6
libaio.so.1 => /usr/lib/libaio.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
* symbol not found: main (/usr/local/ssl/lib/libssl.so.0.9.6)
* symbol not found: main (/usr/local/ssl/lib/libcrypto.so.0.9.6)

Two questions:
* Why is this happening (linked to both versions) ?
* and how can I resolve this?

Btw, /usr/local/ssl/lib lists as:

2101104 Jul 9 15:01 libcrypto.a
14 Jul 9 15:01 libcrypto.so -> libcrypto.so.0*
18 Jul 9 15:01 libcrypto.so.0 -> libcrypto.so.0.9.7*
1732396 Oct 8 2002 libcrypto.so.0.9.6*
1383287 Jul 9 15:01 libcrypto.so.0.9.7*
317840 Jul 9 15:01 libssl.a
11 Jul 9 15:01 libssl.so -> libssl.so.0*
15 Jul 9 15:01 libssl.so.0 -> libssl.so.0.9.7*
897800 Oct 8 2002 libssl.so.0.9.6*
247251 Jul 9 15:01 libssl.so.0.9.7*

Lastly please note that I've built Apache+modssl and OpenSSH on the same
machine without problems.

Thanks in advance for your help!

Regards, Walter

Browse pgsql-bugs by date

  From Date Subject
Next Message Sociedad Literaria METAFORA 2003-07-09 20:00:01 Error: Panic
Previous Message Shachar Shemesh 2003-07-08 20:50:49 Re: case sensitivity