Bug 201715 - dns/bind910 dlz_bdb doesn't compile
Summary: dns/bind910 dlz_bdb doesn't compile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 09:47 UTC by dewayne
Modified: 2015-10-08 12:17 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (hrs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2015-07-20 09:47:45 UTC
Bind910 fails to compile on FreeBSD 10.2-BETA2 i386 and amd64 due to (apparently) missing include files containing definitions for DB_ENV, DBC, ... and other constants.

Fails at:

/usr/local/libexec/ccache/cc -pthread  -I/var/ports/usr/ports/dns/bind910/work/bind-9.10.2-P2 -I../.. -I./include -I./unix/include -I.  -I/var/ports/usr/ports/dns/bind910/work/bind-9.10.2-P2/lib/lwres/include  -I../../lib/lwres/unix/include  -I../../lib/lwres/include -I/var/ports/usr/ports/dns/bind910/work/bind-9.10.2-P2/lib/dns/include  -I../../lib/dns/include -I/var/ports/usr/ports/dns/bind910/work/bind-9.10.2-P2/lib/bind9/include  -I../../lib/bind9/include  -I/var/ports/usr/ports/dns/bind910/work/bind-9.10.2-P2/lib/isccfg/include  -I../../lib/isccfg/include -I/var/ports/usr/ports/dns/bind910/work/bind-9.10.2-P2/lib/isccc/include  -I../../lib/isccc/include -I/var/ports/usr/ports/dns/bind910/work/bind-9.10.2-P2/lib/isc/include  -I../../lib/isc  -I../../lib/isc/include  -I../../lib/isc/unix/include  -I../../lib/isc/pthreads/include  -I../../lib/isc/x86_32/include  -I../../contrib/dlz/drivers/include  -I/usr/include -I/usr/local/include  -I/usr/local/include -I/usr/local/include  -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DCONTRIB_DLZ  -DDLZ_BDB -DDLZ_LDAP   -DOPENSSL -DDIG_SIGCHASE=1 -D_THREAD_SAFE -I/usr/local/include/heimdal -O2 -pipe -g0 -ggdb0 -DSTRIP_FBSDID -march=core2 -mtune=core2  -DLIBICONV_PLUG -DLDAP_DEPRECATED -fno-strict-aliasing -I/usr/local/include/libxml2 -I/usr/include   -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing  -c ../../contrib/dlz/drivers/dlz_bdb_driver.c
../../contrib/dlz/drivers/dlz_bdb_driver.c:96:2: error: unknown type name 'DB_ENV'
        DB_ENV  *dbenv;         /*%< BDB environment */
        ^
../../contrib/dlz/drivers/dlz_bdb_driver.c:226:2: error: use of undeclared identifier 'DBC'
        DBC *client_cursor = NULL;


Options selected are:
 make showconfig|grep =on
     DOCS=on: Build and/or install documentation
     IDN=on: International Domain Names support
     IPV6=on: IPv6 protocol support
     RPZ_NSDNAME=on: Enable RPZ NSDNAME policy records
     RPZ_NSIP=on: Enable RPZ NSIP trigger rules
     RRL=on: Response Rate Limiting
     SIGCHASE=on: dig/host/nslookup will do DNSSEC validation
     THREADS=on: Threading support
     DLZ_BDB=on: DLZ BDB driver
     DLZ_LDAP=on: DLZ LDAP driver
     GSSAPI_HEIMDAL=on: Using security/heimdal
     SSL=on: Build with OpenSSL (Required for DNSSEC)

Unfortunately there is no definition defined, for example:
# cd /var/ports/usr/ports/dns/bind910/work/bind-9.10.2-P2
# find . -name \* | xargs egrep "DB_ENV"
./contrib/dlz/bin/dlzbdb/dlzbdb.c:      DB_ENV  *dbenv;         /* BDB environment */
./contrib/dlz/drivers/dlz_bdb_driver.c: DB_ENV  *dbenv;         /*%< BDB environment */
./contrib/dlz/drivers/dlz_bdb_driver.c:bdb_opendb(DB_ENV *db_env, DBTYPE db_type, DB **db, const char *db_name,
./contrib/dlz/drivers/dlz_bdbhpt_driver.c:      DB_ENV  *dbenv;         /*%< bdbhpt environment */
./contrib/dlz/drivers/dlz_bdbhpt_driver.c:bdbhpt_opendb(DB_ENV *db_env, DBTYPE db_type, DB **db, const char *db_name,
./contrib/dlz/modules/bdbhpt/dlz_bdbhpt_dynamic.c:      DB_ENV    *dbenv;       /* bdbhpt environment */
./contrib/dlz/modules/bdbhpt/dlz_bdbhpt_dynamic.c:bdbhpt_opendb(log_t *log, DB_ENV *db_env, DBTYPE db_type, DB **db,
#

I do have pkg info | grep db5
db5-5.3.28_2                   The Oracle Berkeley DB, revision 5.3

I'm unable to find a starting point to rectify :(
Happy to test as this is a ports rebuild show-stopper.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2015-09-03 07:13:09 UTC
Over to current maintainer.
Comment 2 Mathieu Arnold freebsd_committer freebsd_triage 2015-09-03 07:18:16 UTC
Has bind910 ever built with it ? when did it stop building ?
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-10-08 12:15:31 UTC
A commit references this bug:

Author: mat
Date: Thu Oct  8 12:14:42 UTC 2015
New revision: 398817
URL: https://svnweb.freebsd.org/changeset/ports/398817

Log:
  Fix build WITH=DLZ_BDB.

  PR:		201715
  Sponsored by:	Absolight

Changes:
  head/dns/bind910/files/patch-configure
  head/dns/bind99/files/patch-configure
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-10-08 12:17:34 UTC
A commit references this bug:

Author: mat
Date: Thu Oct  8 12:17:04 UTC 2015
New revision: 398819
URL: https://svnweb.freebsd.org/changeset/ports/398819

Log:
  MFH: r398817

  Fix build WITH=DLZ_BDB.

  PR:		201715
  Sponsored by:	Absolight

Changes:
_U  branches/2015Q4/
  branches/2015Q4/dns/bind910/files/patch-configure
  branches/2015Q4/dns/bind99/files/patch-configure