Subject: pkg/17958: net/samba package incorrectly looks in /usr/local/ssl
To: None <gnats-bugs@gnats.netbsd.org>
From: None <apb@cequrux.com>
List: netbsd-bugs
Date: 08/16/2002 16:48:26
>Number:         17958
>Category:       pkg
>Synopsis:       net/samba package incorrectly looks in /usr/local/ssl
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 16 07:49:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alan Barrett
>Release:        NetBSD 1.6F
>Organization:
Not much
>Environment:
Machine: i386
pkgsrc checked out from CVS on 2002-08-14
>Description:
If you have an old version of openssl or ssleay installed in
/usr/local/ssl/lib, then the net/samba package attempts to link against
it instead of against the correct version.

This is apparently because ${WRKSRC}/Makefile contains the following
definition for LDFLAGS:

LDFLAGS=-L/usr/local/ssl/lib -L/usr/pkgsrc/net/samba/work/.buildlink/lib -Wl,-R/usr/pkg/lib

The reference to /usr/local/ssl/lib should probably not be there at
all, and should certainly not be before the reference to the buildlink
directory.

>How-To-Repeat:
Have an old version of SSLeay in /usr/local/ssl/lib/libssl.a.

Try to make pkgsrc/net/samba.

Observe that it fails with many complaints about undefined symbols
(which are present in the new openssl library in the buildlink
directory, but not present in the old library).

>Fix:
The samba Makefile, configure, and configure.in files all contain
references to /usr/local which should presumably be changed.  Sorry,
no patch here.
>Release-Note:
>Audit-Trail:
>Unformatted: