Subject: mail/postfix build issue on netbsd-2 (not -2-0)
To: None <tech-pkg@netbsd.org>
From: Peter Eisch <peter@boku.net>
List: tech-pkg
Date: 11/07/2005 15:32:14
I build (via pkg_comp on a 2.0.2 system for 2.1) with:

        PKG_OPTIONS.postfix = mysql pcre sasl tls

And it dies with:

In file included from find_inet.c:42:
sys_defs.h:42:1: warning: "HAS_DB" redefined
<command line>:14: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 -DHAS_MYSQL -I/usr/pkg/include/mysql -DUSE_SASL_AUTH  -O2
-I/usr/include -I/usr/pkg/include -I/usr/pkg/include/mysql
-I/usr/pkg/include/sasl -I. -DNETBSD2 -c fsspace.c
In file included from fsspace.c:42:
sys_defs.h:42:1: warning: "HAS_DB" redefined
<command line>:14: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 
/pkg_comp/obj/pkgsrc/mail/postfix/default/postfix-2.2.5/src/util
*** Error code 1

Stop.
make: stopped in /pkg_comp/obj/pkgsrc/mail/postfix/default/postfix-2.2.5
*** Error code 1

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



Same with postfix-current.

Do I need to supply different options?  I only need to have postfix act like
a client for SMTP AUTH.  Can I just do that with the integrated postfix (in
2.1) ?

Thanks,