I am linking a program against libcrypto which is part of openssl. The package 
is installed and living in /usr/lib:

lrwxrwxrwx  1 root root      14 2005-09-15 14:22 /usr/lib/libcrypto.so -> 
libcrypto.so.0
lrwxrwxrwx  1 root root      18 2005-07-20 13:48 /usr/lib/libcrypto.so.0 -> 
libcrypto.so.0.9.7
-rwxr-xr-x  1 root root 1358788 2004-08-04 12:09 /usr/lib/libcrypto.so.0.9.7

Note, the use of symbolic links as a good package should.

I link the app using -lcrypto (or even `pkg-config --libs opennsl` to get the 
recommended settings: -lssl -lcrypto -ldl) and the app appears to link okay.

However, if I issue 'ldd <app>' it reports the following:

        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x4001f000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x4014a000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x4025e000)
        libz.so.1 => /lib/libz.so.1 (0x40271000)
        libm.so.6 => /lib/tls/libm.so.6 (0x40284000)
        libc.so.6 => /lib/tls/libc.so.6 (0x402f4000)
        libdl.so.2 => /lib/libdl.so.2 (0x4041d000)
        /lib/ld.so.1 => /lib/ld.so.1 (0x40000000)

Not for all other libraries it uses the "generic" name rather than the specific 
version. However, this is not the case for the libcrypto library. Why is this 
so?

Neale

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to