Subject: pkg/19277: pkgsrc/mail/exim should include a buildlink for db method
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 12/04/2002 12:08:07
>Number:         19277
>Category:       pkg
>Synopsis:       pkgsrc/mail/exim may build using wrong db
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 04 12:09:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
It is well documented in the exim doc/dbm.discuss.txt file
that exim may build against wrong db.

This documentation recommends not using exim's compatibility headers,
but to use the native interface for better performance and "you
don't run the risk of Exim's seeing the 'wrong' version of the
ndbm.h header...".

This is not noticed at build-time, but can cause segmentation faults
at run time.
>How-To-Repeat:
Build mail/exim with wrong -ldb
>Fix:
Include a buildlink2 for databases/db or db3 or db4 or gdbm

Then add to path-ab (for Local/Makefile.netbsd) settings for this.

Like:
USE_DB=yes    (for using the Berkeley db headers)
or
USE_GDBM=yes

and:
DBMLIB=-lgdbm
or
DBMLIB=-ldb3   (or whatever)

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