NetBSD Problem Report #25120

Received: (qmail 28300 invoked by uid 605); 10 Apr 2004 04:22:58 -0000
Message-Id: <20040410042223.15B781228D@himo.salmi.ch>
Date: Sat, 10 Apr 2004 06:22:23 +0200 (CEST)
From: jukka-netbsd@2004.salmi.ch
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jukka-netbsd@2004.salmi.ch
To: gnats-bugs@gnats.NetBSD.org
Subject: mail/postfix build fails if POSTFIX_USE_LDAP == YES
X-Send-Pr-Version: 3.95

>Number:         25120
>Category:       pkg
>Synopsis:       mail/postfix build fails if POSTFIX_USE_LDAP == YES
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 10 04:23:00 +0000 2004
>Closed-Date:    Tue Apr 13 06:30:08 +0000 2004
>Last-Modified:  Tue Apr 13 06:30:08 +0000 2004
>Originator:     Jukka Salmi
>Release:        NetBSD 1.6.2_STABLE
>Organization:
>Environment:
NetBSD grouper.salmi.ch 1.6.2_STABLE NetBSD 1.6.2_STABLE (GENERIC) #0: Fri Apr  9 16:51:49 CEST 2004     build@grouper.salmi.ch:/usr/obj/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Using current pkgsrc, if POSTFIX_USE_LDAP is set to YES, postfix fails to
build. (If POSTFIX_USE_LDAP is not set postfix builds fine.)
>How-To-Repeat:
$ cd pkgsrc/mail/postfix && make build
[...]
../../lib/libutil.a(dict_db.o): In function `dict_db_open':
/usr/pkgbuild/mail/postfix/work/postfix-2.0.19/src/util/dict_db.c:468: undefined reference to `db_version'
/usr/pkgbuild/mail/postfix/work/postfix-2.0.19/src/util/dict_db.c:543: undefined reference to `db_create'
*** Error code 1
>Fix:
>Release-Note:
>Audit-Trail:

From: john heasley <heas@shrubbery.net>
To: jukka-netbsd@2004.salmi.ch
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/25120: mail/postfix build fails if POSTFIX_USE_LDAP == YES
Date: Sat, 10 Apr 2004 13:08:13 -0700

 I think it just needs are more recent db.  Could you try & test this?  It
 compiles for me.

 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mail/postfix/Makefile,v
 retrieving revision 1.125
 diff -u -r1.125 Makefile
 --- Makefile	25 Mar 2004 12:58:37 -0000	1.125
 +++ Makefile	10 Apr 2004 19:10:05 -0000
 @@ -79,6 +79,13 @@
  AUXLIBS+=	-L${BUILDLINK_PREFIX.openldap}/lib			\
  		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.openldap}/lib	\
  		-lldap -llber
 +.if ${OPSYS} != "Linux"
 +.include "../../databases/db4/buildlink3.mk"
 +CCARGS+=	-I${BUILDLINK_PREFIX.db}/include/db4
 +AUXLIBS+=	-L${BUILDLINK_PREFIX.db}/lib                    \
 +		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db}/lib     \
 +		-ldb4
 +.endif
  .endif

  .if defined(POSTFIX_USE_MYSQL) && ${POSTFIX_USE_MYSQL} == "YES"

From: Jukka Salmi <jukka-netbsd@2004.salmi.ch>
To: john heasley <heas@shrubbery.net>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/25120: mail/postfix build fails if POSTFIX_USE_LDAP == YES
Date: Sun, 11 Apr 2004 00:06:08 +0200

 Hi,

 john heasley wrote:
 > I think it just needs are more recent db.  Could you try & test this?  It
 > compiles for me.
 > 
 > Index: Makefile
 > ===================================================================
 > RCS file: /cvsroot/pkgsrc/mail/postfix/Makefile,v
 > retrieving revision 1.125
 > diff -u -r1.125 Makefile
 > --- Makefile	25 Mar 2004 12:58:37 -0000	1.125
 > +++ Makefile	10 Apr 2004 19:10:05 -0000
 > @@ -79,6 +79,13 @@
 >  AUXLIBS+=	-L${BUILDLINK_PREFIX.openldap}/lib			\
 >  		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.openldap}/lib	\
 >  		-lldap -llber
 > +.if ${OPSYS} != "Linux"
 > +.include "../../databases/db4/buildlink3.mk"
 > +CCARGS+=	-I${BUILDLINK_PREFIX.db}/include/db4
 > +AUXLIBS+=	-L${BUILDLINK_PREFIX.db}/lib                    \
 > +		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db}/lib     \
 > +		-ldb4
 > +.endif
 >  .endif
 >  
 >  .if defined(POSTFIX_USE_MYSQL) && ${POSTFIX_USE_MYSQL} == "YES"

 builds fine now, thanks!

 Jukka

 -- 
 bashian roulette:
 $ ((RANDOM%6)) || rm -rf ~
State-Changed-From-To: open->closed 
State-Changed-By: martti 
State-Changed-When: Tue Apr 13 06:29:55 UTC 2004 
State-Changed-Why:  
Committed, thanks! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.