Subject: pkg/28949: Recent Berkeley db changes break mail/bogofilter
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: pkgsrc-bugs
Date: 01/13/2005 09:18:01
>Number: 28949
>Category: pkg
>Synopsis: Recent Berkeley db changes break mail/bogofilter
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 13 09:18:00 +0000 2005
>Originator: Hauke Fath <hf@spg.tu-darmstadt.de>
>Release: NetBSD 2.0
>Organization:
--
/~\ The ASCII Ribbon Campaign Hauke Fath
\ / No HTML/RTF in email Institut für Nachrichtentechnik
X No Word docs in email TU Darmstadt
/ \ Respect for open standards Ruf +49-6151-16-3281
>Environment:
System: NetBSD heiligenberg 2.0 NetBSD 2.0 (HEILIGENBERG) #4: Thu Dec 2 17:31:36 CET 2004 hf@heiligenberg:/var/obj/netbsd-builds/2_0/i386/sys/arch/i386/compile/HEILIGENBERG i386
Architecture: i386
Machine: i386
>Description:
After the recent Berkeley db related changes, the bogofilter
build breaks with
[hf@heiligenberg] /<3>mail/bogofilter > make
===> db1 is not an acceptable Berkeley DB type for bogofilter-0.92.8.
*** Error code 1
Stop.
make: stopped in /usr/src/pkgsrc/mail/bogofilter
[hf@heiligenberg] /<3>mail/bogofilter >
Patching the Makefile like
--- /.source/pkgsrc/mail/bogofilter/Makefile 2004-11-18 12:53:29.000000000 +0100
+++ Makefile 2005-01-13 09:52:57.000000000 +0100
@@ -25,5 +25,6 @@
USE_DB185= YES
BDB_ACCEPTED= db4
-.include "../../mk/bdb.buildlink3.mk"
+#.include "../../mk/bdb.buildlink3.mk"
+.include "../../databases/db4/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
as recommended on tech-pkg leads to
if cc -DHAVE_CONFIG_H -I. -I. -I. -I../gnugetopt -I../trio -I- -I. -I. -I../gsl/specfunc -I.. -I/usr/pkg/include/db4 -DBOGOFILTER -O2 -mcpu=i686 -I/usr/pkg/include/db4 -Wpointer-arith -ggdb -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wsequence-point -Wreturn-type -Wno-system-headers -Wformat -MT datastore_db.o -MD -MP -MF ".deps/datastore_db.Tpo" -c -o datastore_db.o datastore_db.c; then mv -f ".deps/datastore_db.Tpo" ".deps/datastore_db.Po"; else rm -f ".deps/datastore_db.Tpo"; exit 1; fi
datastore_db.c: In function `get_psize':
datastore_db.c:240: warning: passing arg 2 of pointer to function from incompatible pointer type
datastore_db.c:240: warning: passing arg 3 of pointer to function makes pointer from integer without a cast
datastore_db.c:240: error: too few arguments to function
*** Error code 1
Stop.
The 'work/.work.log' ends in
(cmd-sink) pop: -DHAVE_CONFIG_H
(cmd-sink) pop: -I.
(cmd-sink) pop: -I.
(cmd-sink) pop: -I.
(cmd-sink) pop: -I../gnugetopt
(cmd-sink) pop: -I../trio
(cmd-sink) pop: -I-
(cmd-sink) pop: -I.
(cmd-sink) pop: -I.
(cmd-sink) pop: -I../gsl/specfunc
(cmd-sink) pop: -I..
(cmd-sink) pop: -I/usr/src/pkgsrc/mail/bogofilter/work/.buildlink/include/db4
(cmd-sink) pop: -DBOGOFILTER
(cmd-sink) pop: -O2
(cmd-sink) pop: -mcpu=i686
(cmd-sink) pop: -I/usr/src/pkgsrc/mail/bogofilter/work/.buildlink/include/db4
(cmd-sink) pop: -Wpointer-arith
(cmd-sink) pop: -ggdb
(cmd-sink) pop: -Wall
(cmd-sink) pop: -W
(cmd-sink) pop: -Wstrict-prototypes
(cmd-sink) pop: -Wmissing-prototypes
(cmd-sink) pop: -Wshadow
(cmd-sink) pop: -Wbad-function-cast
(cmd-sink) pop: -Wcast-qual
(cmd-sink) pop: -Wcast-align
(cmd-sink) pop: -Wwrite-strings
(cmd-sink) pop: -Waggregate-return
(cmd-sink) pop: -Wmissing-declarations
(cmd-sink) pop: -Wmissing-format-attribute
(cmd-sink) pop: -Wnested-externs
(cmd-sink) pop: -fno-common
(cmd-sink) pop: -Wchar-subscripts
(cmd-sink) pop: -Wcomment
(cmd-sink) pop: -Wimplicit
(cmd-sink) pop: -Wsequence-point
(cmd-sink) pop: -Wreturn-type
(cmd-sink) pop: -Wno-system-headers
(cmd-sink) pop: -Wformat
(cmd-sink) pop: -MT
(cmd-sink) pop: datastore_db.o
(cmd-sink) pop: -MD
(cmd-sink) pop: -MP
(cmd-sink) pop: -MF
(cmd-sink) pop: .deps/datastore_db.Tpo
(cmd-sink) pop: -c
(cmd-sink) pop: -o
(cmd-sink) pop: datastore_db.o
(cmd-sink) pop: datastore_db.c
(cmd-sink) pop: -I/usr/src/pkgsrc/mail/bogofilter/work/.buildlink/include
(cmd-sink) pop: -L/usr/src/pkgsrc/mail/bogofilter/work/.buildlink/lib
<.> /usr/src/pkgsrc/mail/bogofilter/work/.gcc/bin/gcc -DHAVE_CONFIG_H -I. -I../gnugetopt -I../trio -I- -I../gsl/specfunc -I.. -I/usr
/src/pkgsrc/mail/bogofilter/work/.buildlink/include/db4 -DBOGOFILTER -O2 -mcpu=i686 -Wpointer-arith -ggdb -Wall -W -Wstrict-prototyp
es -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declarati
ons -Wmissing-format-attribute -Wnested-externs -fno-common -Wchar-subscripts -Wcomment -Wimplicit -Wsequence-point -Wreturn-type -W
no-system-headers -Wformat -MT datastore_db.o -MD -MP -MF .deps/datastore_db.Tpo -c -o datastore_db.o datastore_db.c -I/usr/src/pkgs
rc/mail/bogofilter/work/.buildlink/include -L/usr/src/pkgsrc/mail/bogofilter/work/.buildlink/lib
>How-To-Repeat:
Build bogofilter from -current pkgsrc.
>Fix:
Yes, please.
>Unformatted: