Subject: pkg/13568: Problem with sslwrap-pkgsrc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kvedulv@kvedulv.de>
List: netbsd-bugs
Date: 07/27/2001 16:15:11
>Number:         13568
>Category:       pkg
>Synopsis:       Problem with sslwrap-pkgsrc when using openssl from pgksrc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 27 07:12:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Michael Moll
>Release:        20010726
>Organization:
>Environment:
	
SparcStation2 with NetBSD1.5.1. I deleted the openssl-libraries and includes
that came with the System and installed the openssl-package with pkgsrc.

System: NetBSD darkthrone 1.5.1 NetBSD 1.5.1 (Kvedulv) #0: Fri Jun 29 14:04:20 CEST 2001 mmoll@darkthrone:/usr/src/sys/arch/sparc/compile/Kvedulv sparc

>Description:

When I build the package it's recognized that I removed the System-openssl:
<snip>
===> Required installed package openssl-0.9.[56]*: openssl-0.9.6nb1 found
</snip>

But the Makefile doesn't reflect this:

<snip>
===> Building for sslwrap-206
/usr/pkg/gcc-2.95.2/bin/cc -O2 -DOPENSSL="\"openssl/\"" -Werror   -c s_server.c
s_server.c:124: openssl/lhash.h: No such file or directory
s_server.c:125: openssl/bn.h: No such file or directory
In file included from s_server.c:127:
apps.h:65: openssl/e_os.h: No such file or directory
apps.h:68: openssl/buffer.h: No such file or directory
apps.h:69: openssl/bio.h: No such file or directory
apps.h:70: openssl/crypto.h: No such file or directory
s_server.c:128: openssl/err.h: No such file or directory
s_server.c:129: openssl/pem.h: No such file or directory
s_server.c:130: openssl/x509.h: No such file or directory
s_server.c:131: openssl/ssl.h: No such file or directory
</snip>

>How-To-Repeat:
install openssl from pkgsrc: cd /usr/pkgsrc/security/openssl && make install
remove the System-provided openssl: rm -rf /usr/include/openssl && rm /usr/lib/libssl*
try to install sslwrap: /usr/pkgsrc/security/sslwrap && make install

>Fix:
Append the include-directory into the Makefile: -I/usr/pkg/include

>Release-Note:
>Audit-Trail:
>Unformatted: