dbTalk Databases Forums  

[BUGS] psql linked to openssl 0.9.6 _and_ 0.9.7 shared libs

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] psql linked to openssl 0.9.6 _and_ 0.9.7 shared libs in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Walter Haidinger
 
Posts: n/a

Default [BUGS] psql linked to openssl 0.9.6 _and_ 0.9.7 shared libs - 07-09-2003 , 10:03 AM






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,

Quote:
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:

Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.