Subject: pkg/28778: mk/bdb.buildlink3.mk or mail/postfix problem
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <georg.schwarz@freenet.de>
List: pkgsrc-bugs
Date: 12/24/2004 21:03:00
>Number:         28778
>Category:       pkg
>Synopsis:       mk/bdb.buildlink3.mk or mail/postfix problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 24 21:03:00 +0000 2004
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
mail/postfix/options.mk contains:
.if !empty(PKG_OPTIONS:Mbdb)
.  include "../../mk/bdb.buildlink3.mk"
CCARGS+=        -DHAS_DB
AUXLIBS+=       ${BUILDLINK_LDFLAGS.${BDB_TYPE}} ${BDB_LIBS}
.endif

BDB_TYPE on my system is db2.
However, BUILDLINK_LDFLAGS.db2 and BDB_LIBS are both empty, so later on linking fails:
Unresolved:
db_version
db_open

When manually adding -ldb2 things work. Why are BUILDLINK_LDFLAGS.db2 and BDB_LIBS not set correctly?
>How-To-Repeat:

>Fix: