Subject: pkg/29118: Conflict between openssl in base with openssl in pkg to build openssh 3.9
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <pascal.menetrier@gmail.com>
List: pkgsrc-bugs
Date: 01/25/2005 14:46:00
>Number: 29118
>Category: pkg
>Synopsis: Problem with conflicting openssl version when building openssh from pkgsrc
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 25 14:46:00 +0000 2005
>Originator: Pascal Menetrier
>Release: NetBSD 1.6.2_STABLE
>Organization:
>Environment:
System: NetBSD haribo.ath.cx 1.6.2_STABLE NetBSD 1.6.2_STABLE (GENERIC) #0: Fri Dec 17 18:03:11 CET 2004 sco37@haribo.ath.cx:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
I tried to update the openssh pkg from pkgsrc but there is a conflict between openssl from base located in /usr/lib/ and openssl from pkgsrc located /usr/pkg/lib/. This gives the following result:
checking OpenSSL header version... 90607f (OpenSSL 0.9.6g 9 Aug 2002)
checking OpenSSL library version... 90705f (OpenSSL 0.9.7e 25 Oct 2004)
checking whether OpenSSL's headers match the library... no
configure: error: Your OpenSSL headers do not match your library.
Check config.log for details.
Also see contrib/findssl.sh for help identifying header/library mismatches.
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/security/openssh
===>
===> There was an error during the ``configure'' phase.
===> Please investigate the following for more information:
===> * config.log
===> * /usr/pkgsrc/security/openssh/work/.work.log
===>
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/security/openssh
----------------------------------------------------------
This is the result of contrib/findssl.sh on my system:
Searching for OpenSSL header files.
0x0090607fL /usr/include/openssl/opensslv.h
0x0090705FL /usr/pkg/include/openssl/opensslv.h
0x0090607fL /usr/src/crypto/dist/openssl/crypto/opensslv.h
Searching for OpenSSL shared library files.
0x0090607fL /usr/lib/libcrypto.so
0x0090607fL /usr/lib/libcrypto.so.1
0x0090607fL /usr/lib/libcrypto.so.1.1
0x0090705fL /usr/pkg/lib/libcrypto.so
Searching for OpenSSL static library files.
0x0090607fL /usr/lib/libcrypto.a
0x0090705fL /usr/pkg/lib/libcrypto.a
>How-To-Repeat:
Simply try to install openssl and openssh on NetBSD-1.6.2 from pkgsrc.
>Fix:
Simply tell openssh to forget openssl from base and make it compulsory to install/look after openssl from pkgsrc. I was not clever enought to figure how to do it. I could also not find the answer in http://www.bsdbooks.net/shells/netbsd/guide/documentation/pkgsrc/
>Unformatted: