Created attachment 178518 [details] Full build log libtool: compile: cc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -I../asn1 -I./../asn1 -DHDB_DB_DIR=\"/var/heimdal\" -I./../krb5 -I../../lib/sqlite -I/usr/local/include -I/usr/local/include -D_LARGE_FILES= -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -Wshadow -O2 -pipe -funroll-loops -march=native -fstack-protector -fno-strict-aliasing -MT db3.lo -MD -MP -MF .deps/db3.Tpo -c db3.c -fPIC -DPIC -o .libs/db3.o db3.c:65:5: error: use of undeclared identifier 'DBC' DBC *dbcp = (DBC*)db->hdb_dbc; ^ db3.c:65:10: error: use of undeclared identifier 'dbcp'; did you mean 'db3'? DBC *dbcp = (DBC*)db->hdb_dbc; ^~~~ db3 db3.c:63:14: note: 'db3' declared here DB3_HDB *db3 = (DB3_HDB *)db; ^ db3.c:65:22: error: expected expression DBC *dbcp = (DBC*)db->hdb_dbc; ^ db3.c:65:18: error: use of undeclared identifier 'DBC' DBC *dbcp = (DBC*)db->hdb_dbc; ^ db3.c:69:9: error: use of undeclared identifier 'dbcp' if (dbcp != NULL) ^ db3.c:70:2: error: use of undeclared identifier 'dbcp' dbcp->c_close(dbcp); ^ db3.c:70:16: error: use of undeclared identifier 'dbcp' dbcp->c_close(dbcp); ^ db3.c:72:14: error: too many arguments to function call, expected 1, have 2 d->close(d, 0); ~~~~~~~~ ^ db3.c:114:5: error: use of undeclared identifier 'DBC' DBC *dbcp = db->hdb_dbc; ^ db3.c:114:10: error: use of undeclared identifier 'dbcp' DBC *dbcp = db->hdb_dbc; ^ db3.c:120:14: error: use of undeclared identifier 'dbcp' code = (*dbcp->c_get)(dbcp, &key, &value, flag); ^ db3.c:120:27: error: use of undeclared identifier 'dbcp' code = (*dbcp->c_get)(dbcp, &key, &value, flag); ^ db3.c:121:17: error: use of undeclared identifier 'DB_NOTFOUND' if (code == DB_NOTFOUND) ^ db3.c:132:43: error: use of undeclared identifier 'DB_NEXT' return DB_seq(context, db, flags, entry, DB_NEXT); ^ db3.c:155:46: error: use of undeclared identifier 'DB_FIRST' return DB_seq(context, db, flags, entry, DB_FIRST); ^ db3.c:162:46: error: use of undeclared identifier 'DB_NEXT' return DB_seq(context, db, flags, entry, DB_NEXT); ^ db3.c:208:7: error: no member named 'flags' in 'DBT' k.flags = 0; ~ ^ db3.c:209:39: error: too many arguments to function call, expected 4, have 5 code = (*d->get)(d, NULL, &k, &v, 0); ~~~~~~~~~ ^ db3.c:210:16: error: use of undeclared identifier 'DB_NOTFOUND' if(code == DB_NOTFOUND) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. *** Error code 1 Stop. make[6]: stopped in /usr/ports/security/heimdal/work/heimdal-7.1.0/lib/hdb *** Error code 1 Stop. make[5]: stopped in /usr/ports/security/heimdal/work/heimdal-7.1.0/lib/hdb *** Error code 1 Stop. make[4]: stopped in /usr/ports/security/heimdal/work/heimdal-7.1.0/lib *** Error code 1 Stop. make[3]: stopped in /usr/ports/security/heimdal/work/heimdal-7.1.0 *** Error code 1 Stop. make[2]: stopped in /usr/ports/security/heimdal *** Error code 1 Stop. make[1]: stopped in /usr/ports/security/heimdal *** Error code 1 Stop. make: stopped in /usr/ports/security/heimdal
Please show what options did you choose.
There were just the BDB, DIGEST and KX509 options. But I can't reproduce it. I forcibly removed the databases/db5 package, then security/heimdal reinstalled it as a missing dependency and finally the build was succeeded.
(In reply to Hiroki Sato from comment #1) I have the same issue on FreeBSD b2.hs 11.0-STABLE FreeBSD 11.0-STABLE #0 r311660M: Sun Jan 8 21:30:51 AEDT 2017 root@hathor:/110002/D/K8/hqdev-amd64-smp-vga amd64 1100509 1100509 make -C /usr/ports/security/heimdal showconfig ===> The following configuration options are available for heimdal-7.1.0_2: BDB=off: Enable BerkeleyDB KDC backend support CRACKLIB=on: Use CrackLib for password quality checking DIGEST=on: Enable DIGEST support IPV6=on: IPv6 protocol support KX509=off: Enable kx509 support LDAP=off: Enable OpenLDAP KDC backend support LMDB=on: Enable LMDB KDC backend support PKINIT=on: Enable PK-INIT support SQLITE=off: Enable SQLite KDC backend support libtool: compile: /usr/local/libexec/ccache/cc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -I../asn1 -I./../asn1 -DHDB_DB_DIR=\"/var/heimdal\" -I./../krb5 -I../../lib/sqlite -I/usr/local/include -I/usr/local/include -D_LARGE_FILES= -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -Wshadow -DINET6 -O2 -pipe -DOPENSSL_NO_SSL2 -DOPENSSL_NO_SSL3 -g0 -ggdb0 -DSTRIP_FBSDID -UNDEBUG -UDEBUGGING -UEBUGGING -UDEBUG -fstack-protector -march=core2 -mtune=core2 -fno-strict-aliasing -MT db3.lo -MD -MP -MF .deps/db3.Tpo -c db3.c -fPIC -DPIC -o .libs/db3.o db3.c:65:5: error: use of undeclared identifier 'DBC' DBC *dbcp = (DBC*)db->hdb_dbc; ^ db3.c:65:10: error: use of undeclared identifier 'dbcp'; did you mean 'db3'? DBC *dbcp = (DBC*)db->hdb_dbc; ^~~~ db3 ... db3.c:210:16: error: use of undeclared identifier 'DB_NOTFOUND' if(code == DB_NOTFOUND) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. *** Error code 1 Adding BDB enables heimdal to build/package. Seems that BDB is a prerequisite rather than an option :(
(In reply to dewayne from comment #3) Please send me a full build log.
A commit references this bug: Author: hrs Date: Wed Jan 11 07:50:08 UTC 2017 New revision: 431160 URL: https://svnweb.freebsd.org/changeset/ports/431160 Log: Fix build when !BDB and db5 is installed at the same time. The configure script picked up the db5 library though ac_cv_func_db_create=no. PR: 215772 Changes: head/security/heimdal/Makefile head/security/heimdal/files/patch-configure
Changes in r431160 should fix this. If this problem persists after that revision, please reopen this PR. Thank you for your report.