pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/47403: pkgsrc/mail/milter-greylist fails when option "drac" is specified
The following reply was made to PR pkg/47403; it has been noted by GNATS.
From: Richard PALO <richard.palo%baou.fr@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/47403: pkgsrc/mail/milter-greylist fails when option "drac"
is specified
Date: Fri, 04 Jan 2013 12:51:30 +0100
So, for testing, I use the following patch to options.mk:
diff -u -p -r1.9 options.mk
--- options.mk 22 Sep 2009 16:52:02 -0000 1.9
+++ options.mk 4 Jan 2013 11:36:18 -0000
@@ -33,6 +33,10 @@ CONFIGURE_ARGS+= --disable-drac
DRACD_DB?= /etc/mail/dracd.db
CONFIGURE_ARGS+= --enable-drac --with-drac-db=${DRACD_DB}
+CFLAGS+=-DUSE_DB185_EMULATION
+USE_DB185=yes
+BDB_ACCEPTED=db1 db2 db3 db4
+.include "../../mk/bdb.buildlink3.mk"
.endif
If I "bmake BDB_DEFAULT=db1", here is the output:
> PKG_OPTIONS.milter-greylist = drac
>
> ==========================================================================
> ==========================================================================
> The following variables will affect the build process of this package,
> milter-greylist-4.4.1. Their current value is shown below:
>
> * BDB185_DEFAULT = db1
> * BDB_DEFAULT = db1
> * MILTER_GROUP = smmsp
> * MILTER_USER = smmsp
> * SSLBASE (defined)
> * SSLCERTS = /etc/opt/pkg/openssl/certs
> * SSLDIR = /etc/opt/pkg/openssl
> * SSLKEYS = /etc/opt/pkg/openssl/private
> * VARBASE = /var/opt/pkg
>
> Based on these variables, the following variables have been set:
>
> * BDBBASE (defined, but empty)
> * BDB_LIBS (defined, but empty)
> * BDB_TYPE = db1
>
> You may want to abort the process now with CTRL-C and change their value
> before continuing. Be sure to run `/opt/pkg/bin/bmake clean' after
> the changes.
> ==========================================================================
> => Build dependency bison>=1.0: found bison-2.7
> => Build dependency findutils>=4.1: found findutils-4.2.33nb3
> => Build dependency flex>=2.5.4a: found flex-2.5.36nb1
> => Build dependency nbpatch-[0-9]*: found nbpatch-20100124
> => Build dependency pax>=20040802: found pax-20080110nb2
> => Build dependency libmilter>=8.14: found libmilter-8.14.6
> => Build dependency gcc47>=4.7.2: found gcc47-4.7.2
> => Full dependency curl>=7.28.1nb1: found curl-7.28.1nb1
> => Full dependency libspf2>=1.2.5: found libspf2-1.2.9nb1
> pkg_info: missing package name(s)
> usage: pkg_info [-BbcDdFfhIikLmNnpqrRSsVvX] [-e package] [-E package]
> [-K pkg_dbdir] [-l prefix] pkg-name ...
> pkg_info [-a | -u] [flags]
> pkg_info [-Q variable] pkg-name ...
> bmake: "../../mk/buildlink3/../../mk/buildlink3/bsd.buildlink3.mk" line 337:
> warning: Couldn't read shell's output for "true Computing
> BUILDLINK_PREFIX.db1; /opt/pkg/sbin/pkg_info -K . -qp |
> /opt/pkg/bin/nbsed -e "s,^[^/]*,,;q""
> ===> Overriding tools for milter-greylist-4.4.1
> ===> Extracting for milter-greylist-4.4.1
> ===> Patching for milter-greylist-4.4.1
> => Applying pkgsrc patches for milter-greylist-4.4.1
> ===> Creating toolchain wrappers for milter-greylist-4.4.1
> /usr/bin/bash: -c: line 0: syntax error near unexpected token `*not_found'
> /usr/bin/bash: -c: line 0: `set -e;
> case in *not_found)
> echo 1>&2 "ERROR:" " is not installed; can't
> buildlink files."; exit 1;
> ;; esac'
> *** Error code 2
>
> Stop.
> bmake: stopped in /home/richard/src/pkgsrc/mail/milter-greylist
> *** Error code 1
>
> Stop.
> bmake: stopped in /home/richard/src/pkgsrc/mail/milter-greylist
with BDB_DEFAULT=db2
> gcc -o milter-greylist milter-greylist.o pending.o sync.o dnsrbl.o list.o
> macro.o conf_yacc.o dump_yacc.o conf.o store.o dump.o spf.o acl.o
> urlcheck.o stat.o clock.o geoip.o fd_pool.o prop.o ldapcheck.o dkimcheck.o
> p0f.o spamd.o mx.o ratelimit.o
> -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2
> -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2
> -L/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/gcc47/lib -L/opt/pkg/lib
> -Wl,-R/opt/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/opt/pkg/lib
> -Wl,-R/opt/pkg/lib -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lcurl -lpthread
> -lspf2 -lsocket -lresolv -lnsl -lmilter
> Undefined first referenced
> symbol in file
> dbopen milter-greylist.o
> ld: fatal: symbol referencing errors. No output written to milter-greylist
with BDB_DEFAULT=db3 or db4
> gcc -o milter-greylist milter-greylist.o pending.o sync.o dnsrbl.o list.o
> macro.o conf_yacc.o dump_yacc.o conf.o store.o dump.o spf.o acl.o
> urlcheck.o stat.o clock.o geoip.o fd_pool.o prop.o ldapcheck.o dkimcheck.o
> p0f.o spamd.o mx.o ratelimit.o
> -L/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2
> -Wl,-R/opt/pkg/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.2
> -L/opt/pkg/gcc47/lib -Wl,-R/opt/pkg/gcc47/lib -L/opt/pkg/lib
> -Wl,-R/opt/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/opt/pkg/lib
> -Wl,-R/opt/pkg/lib -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lcurl -lpthread
> -lspf2 -lsocket -lresolv -lnsl -lmilter
> Undefined first referenced
> symbol in file
> __db185_open milter-greylist.o
> ld: fatal: symbol referencing errors. No output written to milter-greylist
So I come back with the question, why isn't LIBS= being built with BDB_LIBS?
Home |
Main Index |
Thread Index |
Old Index