Subject: Re: pkg/24456
To: Marc Recht <>
From: Johnny C. Lam <>
List: pkgsrc-bugs
Date: 03/24/2005 04:39:43
On Sat, Jan 22, 2005 at 06:51:13PM +0100, Marc Recht wrote:
> >Synopsis: samba doesn't build with SAMBA_WITH_ADS
> >
> >State-Changed-From-To: open->feedback
> >State-Changed-By:
> >State-Changed-When: Mon, 27 Dec 2004 22:12:36 +0000
> >State-Changed-Why:
> >Feedback requested (ages ago).
> Sorry, I totally forgot about this problem..

Heh, so did I...

> >Is this problem still there?
> Yes, I tried samba-3.0.10nb2 on NetBSD 2.0_RELEASE/i386.
> I've uploaded the config.log to:

The problem seems to be that the samba configure script is not linking
-lcrypto along with -lkrb5, which leads to missing symbols.  It turns
out the configure script detects by trying to find the
des_set_key symbol in the library.  However, on NetBSD>=2.0,
doesn't have the old DES API symbols (des_*), so this check fails,
and subsequently, -lcrypto isn't passed to the linker when test-linking
against -lkrb5.  This isn't a problem if samba is built against the
pkgsrc Heimdal since in that case, *does* still have the
old DES API symbols in the library.

This does make me wonder how net/samba passes the bulk builds since
AFAIK, the bulk build machines just use the native Heimdal, and should
also be experiencing this problem.

Please try dropping the attached file as patch-ah in the patches
directory and seeing if that lets the configure process get farther


	-- Johnny Lam <>