Bug 234691 - 'make buildworld' of 12.0-RELEASE sources fails, com_err.h not found
Summary: 'make buildworld' of 12.0-RELEASE sources fails, com_err.h not found
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-07 13:40 UTC by oz42
Modified: 2019-02-16 03:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description oz42 2019-01-07 13:40:27 UTC
IMHO this is not related to #234203

'make buildworld' fails:

===> kerberos5/lib/libasn1 (obj,all,install)
/usr/local/libexec/ccache/world/cc  -O2 -pipe -I/usr/src/crypto/heimdal/lib/asn1 -I/usr/src/crypto/heimdal/lib/roken -I.   -DHAVE_CONFIG_H -I/usr/src/kerberos5/include -g -MD  -MF.depend.asn1_err.o -MTasn1_err.o -std=gnu99 -fstack-protector-strong -Wno-error=deprecated-declarations -Wsystem-headers -Werror -Wno-pointer-sign -Wno-error=absolute-value -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses  -Qunused-arguments  -c asn1_err.c -o asn1_err.o
asn1_err.c:5:10: fatal error: 'com_err.h' file not found
#include <com_err.h>
         ^~~~~~~~~~~
1 error generated.
*** Error code 1

Stop.
make[4]: stopped in /usr/src/kerberos5/lib/libasn1


But:
# pwd
/usr/src

# find . -name com_err.h
./contrib/com_err/com_err.h
./crypto/heimdal/lib/com_err/com_err.h

So
cc  -O2 -pipe -I/usr/src/crypto/heimdal/lib/asn1 \
 -I/usr/src/crypto/heimdal/lib/roken
should be
cc  -O2 -pipe -I/usr/src/crypto/heimdal/lib/asn1 \
-I/usr/src/crypto/heimdal/lib/roken \
-I/usr/src/crypto/heimdal/lib/com_err
Comment 1 commit-hook freebsd_committer 2019-01-14 06:35:24 UTC
A commit references this bug:

Author: nyan
Date: Mon Jan 14 06:34:58 UTC 2019
New revision: 343011
URL: https://svnweb.freebsd.org/changeset/base/343011

Log:
  Use ${SRCTOP}/contrib/com_err/com_err.h instead of the installed com_err.h.
  This fixes build when com_err.h is not installed.

  PR:		234691
  MFC after:	1 week

Changes:
  head/kerberos5/lib/libasn1/Makefile
  head/kerberos5/lib/libgssapi_krb5/Makefile
  head/kerberos5/lib/libhdb/Makefile
  head/kerberos5/lib/libheimntlm/Makefile
  head/kerberos5/lib/libhx509/Makefile
  head/kerberos5/lib/libkadm5clnt/Makefile
  head/kerberos5/lib/libkadm5srv/Makefile
  head/kerberos5/lib/libkdc/Makefile
  head/kerberos5/lib/libkrb5/Makefile
  head/kerberos5/lib/libwind/Makefile
  head/kerberos5/libexec/digest-service/Makefile
  head/kerberos5/libexec/hprop/Makefile
  head/kerberos5/libexec/hpropd/Makefile
  head/kerberos5/libexec/kadmind/Makefile
  head/kerberos5/libexec/kdc/Makefile
  head/kerberos5/usr.bin/hxtool/Makefile
  head/kerberos5/usr.bin/kadmin/Makefile
  head/kerberos5/usr.bin/string2key/Makefile
  head/kerberos5/usr.bin/verify_krb5_conf/Makefile
  head/kerberos5/usr.sbin/kstash/Makefile
Comment 2 commit-hook freebsd_committer 2019-02-16 03:18:29 UTC
A commit references this bug:

Author: nyan
Date: Sat Feb 16 03:18:13 UTC 2019
New revision: 344199
URL: https://svnweb.freebsd.org/changeset/base/344199

Log:
  MFC: r343011

    Use ${SRCTOP}/contrib/com_err/com_err.h instead of the installed com_err.h.
    This fixes build when com_err.h is not installed.

  PR:		234691

Changes:
_U  stable/12/
  stable/12/kerberos5/lib/libasn1/Makefile
  stable/12/kerberos5/lib/libgssapi_krb5/Makefile
  stable/12/kerberos5/lib/libhdb/Makefile
  stable/12/kerberos5/lib/libheimntlm/Makefile
  stable/12/kerberos5/lib/libhx509/Makefile
  stable/12/kerberos5/lib/libkadm5clnt/Makefile
  stable/12/kerberos5/lib/libkadm5srv/Makefile
  stable/12/kerberos5/lib/libkdc/Makefile
  stable/12/kerberos5/lib/libkrb5/Makefile
  stable/12/kerberos5/lib/libwind/Makefile
  stable/12/kerberos5/libexec/digest-service/Makefile
  stable/12/kerberos5/libexec/hprop/Makefile
  stable/12/kerberos5/libexec/hpropd/Makefile
  stable/12/kerberos5/libexec/kadmind/Makefile
  stable/12/kerberos5/libexec/kdc/Makefile
  stable/12/kerberos5/usr.bin/hxtool/Makefile
  stable/12/kerberos5/usr.bin/kadmin/Makefile
  stable/12/kerberos5/usr.bin/string2key/Makefile
  stable/12/kerberos5/usr.bin/verify_krb5_conf/Makefile
  stable/12/kerberos5/usr.sbin/kstash/Makefile
Comment 3 commit-hook freebsd_committer 2019-02-16 03:19:40 UTC
A commit references this bug:

Author: nyan
Date: Sat Feb 16 03:18:57 UTC 2019
New revision: 344200
URL: https://svnweb.freebsd.org/changeset/base/344200

Log:
  MFC: r343011

    Use ${SRCTOP}/contrib/com_err/com_err.h instead of the installed com_err.h.
    This fixes build when com_err.h is not installed.

  PR:		234691

Changes:
_U  stable/11/
  stable/11/kerberos5/lib/libasn1/Makefile
  stable/11/kerberos5/lib/libgssapi_krb5/Makefile
  stable/11/kerberos5/lib/libhdb/Makefile
  stable/11/kerberos5/lib/libheimntlm/Makefile
  stable/11/kerberos5/lib/libhx509/Makefile
  stable/11/kerberos5/lib/libkadm5clnt/Makefile
  stable/11/kerberos5/lib/libkadm5srv/Makefile
  stable/11/kerberos5/lib/libkdc/Makefile
  stable/11/kerberos5/lib/libkrb5/Makefile
  stable/11/kerberos5/lib/libwind/Makefile
  stable/11/kerberos5/libexec/digest-service/Makefile
  stable/11/kerberos5/libexec/hprop/Makefile
  stable/11/kerberos5/libexec/hpropd/Makefile
  stable/11/kerberos5/libexec/kadmind/Makefile
  stable/11/kerberos5/libexec/kdc/Makefile
  stable/11/kerberos5/usr.bin/hxtool/Makefile
  stable/11/kerberos5/usr.bin/kadmin/Makefile
  stable/11/kerberos5/usr.bin/string2key/Makefile
  stable/11/kerberos5/usr.bin/verify_krb5_conf/Makefile
  stable/11/kerberos5/usr.sbin/kstash/Makefile