Subject: mail/postfix build: HAS_DB redefined
To: None <tech-pkg@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: tech-pkg
Date: 02/28/2005 16:25:17
Hi,

someone else reported this before[1], but didn't receive an answer
(at least not publicly) so far.

While building mail/postfix from current pkgsrc on a NetBSD 2.0_STABLE
i386 system, a message like the following is printed every time sys_defs.h
is included:

cc [...] -DHAS_DB [...] -c verify.c
In file included from verify.c:166:
../../include/sys_defs.h:42:1: warning: "HAS_DB" redefined
<command line>:14:1: warning: this is the location of the previous definition

Removing 'CCARGS+=-DHAS_DB' from options.mk (or '#define HAS_DB' from
sys_defs.h) suppresses the warning.

So, what is the correct solution? -DHAS_DB was added to options.mk on
Nov 30 by jlam.


Cheers, Jukka

[1] http://mail-index.netbsd.org/tech-pkg/2005/02/19/0024.html

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~