Subject: pkg/25176: postfix-current build failure on Linux (db lossage)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <grant@NetBSD.org>
List: pkgsrc-bugs
Date: 04/14/2004 09:21:26
>Number:         25176
>Category:       pkg
>Synopsis:       postfix-current build failure on Linux (db lossage)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 13 23:22:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        Linux 2.4.22
>Organization:
>Environment:
System: Linux liz 2.4.22 #7 Fri Feb 27 09:34:15 EST 2004 i686 unknown unknown GNU/Linux
Architecture: i386
Machine: i386
>Description:
postfix-current fails to build on my Slackware 9.1 box because libdb
can't be found.

gcc -DDEF_CONFIG_DIR=\"/usr/pkg/etc/postfix\" -DDEF_SENDMAIL_PATH=\"/usr/pkg/sbin/sendmail\" -DDEF_MAILQ_PATH=\"/usr/pkg/bin/mailq\" -DDEF_NEWALIAS_PATH=\"/usr/pkg/bin/newaliases\" -DDEF_COMMAND_DIR=\"/usr/pkg/sbin\" -DDEF_DAEMON_DIR=\"/usr/pkg/libexec/postfix\" -DNO_PCRE -I/usr/pkg/include/db2 -DSNAPSHOT -g -O2 -I/usr/pkg/include -I. -I../../include -DLINUX2 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o  master_spawn.o master_service.o master_status.o master_listen.o  master_vars.o master_wakeup.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/pkg/lib           -Wl,-R/usr/pkg/lib   -ldb2 -ldb -lnsl -lresolv
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../../i486-slackware-linux/bin/ld: cannot find -ldb
collect2: ld returned 1 exit status
*** Error code 1

I don't know why it is trying to link against libdb2 and libdb. this
system has no libdb, only libdb1 and libdb2 in base, libdb2 and libdb4
from pkgsrc.

I don't know why pkgsrc wants to use its own db2, but that could be
an unrelated issue.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: