Subject: pkg/31952: postfix 2.2.5 does not build on 2.1-RELEASE
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <timo.schoeler@riscworks.net>
List: pkgsrc-bugs
Date: 10/30/2005 20:12:00
>Number:         31952
>Category:       pkg
>Synopsis:       postfix 2.2.5 does not build on 2.1-RELEASE
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 30 20:12:00 +0000 2005
>Originator:     Timo Schoeler
>Release:        2.1-RELEASE
>Organization:
RISCworks
>Environment:
NetBSD server.dv-art.com 2.1 NetBSD 2.1 (GENERIC) #0: Mon Oct 24 22:35:45 UTC 2005  jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-1-RELEASE/i386/200510241747Z-obj/home/builds/ab/netbsd-2-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
(...)

./sys_defs.h:42:1: warning: "HAS_DB" redefined
<command line>:11:1: warning: this is the location of the previous definition
cc -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DAEMON_DIR=\"/usr/pkg/libexec/postfix\" -DDEF_COMMAND_DIR=\"/usr/pkg/sbin\" -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_MANPAGE_DIR=\"/usr/pkg/man\" -DDEF_SAMPLE_DIR=\"/usr/pkg/share/examples/postfix\" -DDEF_README_DIR=\"/usr/pkg/share/doc/postfix\" -DHAS_DB -DUSE_TLS -DHAS_PCRE -DUSE_SASL_AUTH  -O2 -pipe -march=pentium3 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/sasl -I/usr/pkg/gcc34/include -I/usr/pkg/gcc34/lib/gcc/i386--netbsdelf2.1/3.4.4/include -I. -DNETBSD2 -c fsspace.c
In file included from fsspace.c:42:
./sys_defs.h:42:1: warning: "HAS_DB" redefined
<command line>:11:1: warning: this is the location of the previous definition
fsspace.c:50:25: sys/statvfs.h: No such file or directory
fsspace.c: In function `fsspace':
fsspace.c:90: error: storage size of 'fsbuf' isn't known
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/postfix/work/postfix-2.2.5/src/util
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/postfix/work/postfix-2.2.5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/postfix
===> 
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkgsrc/mail/postfix/work/.work.log
===> 
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/mail/postfix

also tried w/o any optimization, same result; builds on 2.0.2-RELEASE despite the "HAS_DB" error warnings that occur there, too.
>How-To-Repeat:
try to build /usr/pkgsrc/mail/postfix on 2.1-RELEASE
>Fix:
sorry, no.