Bug 215772 - security/heimdal: 7.1.0_2 build failed on FreeBSD-11
Summary: security/heimdal: 7.1.0_2 build failed on FreeBSD-11
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-04 19:11 UTC by Igor Pavlov
Modified: 2017-01-11 07:52 UTC (History)
1 user (show)

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


Attachments
Full build log (42.63 KB, application/x-bzip2)
2017-01-04 19:11 UTC, Igor Pavlov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Pavlov 2017-01-04 19:11:01 UTC
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
Comment 1 Hiroki Sato freebsd_committer freebsd_triage 2017-01-05 04:33:01 UTC
Please show what options did you choose.
Comment 2 Igor Pavlov 2017-01-05 15:10:56 UTC
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.
Comment 3 dewayne 2017-01-08 17:24:34 UTC
(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 :(
Comment 4 Hiroki Sato freebsd_committer freebsd_triage 2017-01-09 21:04:04 UTC
(In reply to dewayne from comment #3)
Please send me a full build log.
Comment 5 commit-hook freebsd_committer freebsd_triage 2017-01-11 07:50:16 UTC
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
Comment 6 Hiroki Sato freebsd_committer freebsd_triage 2017-01-11 07:52:05 UTC
Changes in r431160 should fix this.  If this problem persists after that revision, please reopen this PR.  Thank you for your report.