Subject: Re: HEADS UP (Re: 1.5.x openssl problems)
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Urban Boquist <urban@boquist.net>
List: netbsd-help
Date: 09/02/2002 16:15:54
>>>>> Martti Kuparinen writes:

Martti> This is just a warning to all netbsd-1-5 users who have
Martti> upgraded to the latest version (and have therefore OpenSSL
Martti> 0.9.6g in /usr/lib).

Martti> I had problems with with my IMAP server and it turned out to
Martti> be references to the old _and_ new openssl libs at the same
Martti> time.  I noticed this by running "ldd
Martti> /usr/pkg/cyrus/bin/imapd".

I think I found the cause of this. I did a "make build" on the latest
netbsd-1-5 branch and noticed that the libdes* symlinks were installed
in the root directory (/), instead of in /usr/lib:

lan-gw# pwd
/usr/lib
lan-gw# ll /libdes*
lrwxr-xr-x  1 root  wheel  12 Sep  1 23:59 /libdes.so@ -> libcrypto.so
lrwxr-xr-x  1 root  wheel  14 Sep  1 23:59 /libdes.so.5@ -> libcrypto.so.1
lrwxr-xr-x  1 root  wheel  16 Sep  1 23:59 /libdes.so.5.1@ -> libcrypto.so.1.1
lan-gw# ll ./libdes*
lrwxr-xr-x  1 root  wheel      11 Sep  1 23:59 ./libdes.a@ -> libcrypto.a
lrwxr-xr-x  1 root  wheel      16 Aug  3 18:53 ./libdes.so@ -> libcrypto.so.0.2
lrwxr-xr-x  2 root  wheel      16 Aug  3 18:53 ./libdes.so.5@ -> libcrypto.so.0.2
-r--r--r--  2 root  wheel  816806 Aug  3 18:53 ./libdes.so.5.1
lrwxr-xr-x  1 root  wheel      13 Sep  1 23:59 ./libdes_p.a@ -> libcrypto_p.a
lrwxr-xr-x  1 root  wheel      15 Sep  1 23:59 ./libdes_pic.a@ -> libcrypto_pic.a

The problem seems to be in src/lib/libcrypto/Makefile, it uses a
variable ${_LIBSODIR} which is empty. Setting it to ${LIBDIR}
seems to fix the problem.

Regards,

        -- Urban

Index: Makefile
===================================================================
RCS file: /anoncvs/basesrc/lib/libcrypto/Makefile,v
retrieving revision 1.3.2.7
diff -u -r1.3.2.7 Makefile
--- Makefile	2002/08/29 17:16:53	1.3.2.7
+++ Makefile	2002/09/02 14:14:28
@@ -101,6 +101,8 @@
 SYMLINKS+=	libcrypto_pic.a ${LIBDIR}/libdes_pic.a
 .endif
 
+_LIBSODIR?=${LIBDIR}
+
 .if exists(${.CURDIR}/shlib_version)
 SYMLINKS+=	libcrypto.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
 		${_LIBSODIR}/libdes.so.${DES_SHLIB_MAJOR}.${DES_SHLIB_MINOR}