Re: make includes broken by kerb

From: Ruslan Ermilov <ru_at_freebsd.org>
Date: Tue, 23 Mar 2004 10:20:33 +0200
On Mon, Mar 22, 2004 at 11:55:59PM -0800, Alfred Perlstein wrote:
> I have rm-rf'd /usr/include then attempted to "make includes".
> 
> It breaks in ${SRC}/kerberos5/lib/libasn1 because this insists on
> building some tool to generate the header "krb5_asn1.h".
> 
> PErhaps krb5_asn1.h needs to be generated ahead of time and 
> committed to CVS?
> 
> Regardless, can someone fix this?
> 
It's not broken, it correctly rebuilds that tool (asn1_compile)
when necessary:

: Script started on Tue Mar 23 10:12:35 2004
: # pwd
: /usr/src/kerberos5/lib/libasn1
: # make buildincludes
: compile_et /usr/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1/asn1_err.et
: cd /usr/src/kerberos5/lib/libasn1/../../tools/asn1_compile && make
: cd /usr/src/kerberos5/tools/asn1_compile/../make-print-version && make
: cc -O -pipe -march=pentiumpro -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/make-print-version/../../include -DINET6  -c /usr/src/kerberos5/tools/make-print-version/../../../crypto/heimdal/lib/vers/make-print-version.c
: cc -O -pipe -march=pentiumpro -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/make-print-version/../../include -DINET6   -o make-print-version make-print-version.o 
: ../make-print-version/make-print-version print_version.h
: cd /usr/src/kerberos5/tools/asn1_compile/../make-roken && make
: awk -f /usr/src/kerberos5/tools/make-roken/../../../crypto/heimdal/lib/roken/roken.awk /usr/src/kerberos5/tools/make-roken/../../../crypto/heimdal/lib/roken/roken.h.in > make-roken.c
: cc -O -pipe -march=pentiumpro -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/make-roken/../../include -DINET6  -c make-roken.c
: cc -O -pipe -march=pentiumpro -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/make-roken/../../include -DINET6   -o make-roken make-roken.o 
: ../make-roken/make-roken > roken.h
: yacc -d -o parse.c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/parse.y
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/gen.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/gen_copy.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/gen_decode.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/gen_encode.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/gen_free.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/gen_glue.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/gen_length.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/hash.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken/emalloc.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/main.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/symbol.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken/getarg.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken/warnerr.c
: lex -t  /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1/lex.l > lex.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c lex.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c parse.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/vers/print_version.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken/get_window_size.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6  -c /usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken/strupr.c
: cc -O -pipe -march=pentiumpro -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/roken -I/usr/src/kerberos5/tools/asn1_compile/../../../crypto/heimdal/lib/asn1 -I. -DHAVE_CONFIG_H -I/usr/src/kerberos5/tools/asn1_compile/../../include -DINET6   -o asn1_compile gen.o gen_copy.o gen_decode.o gen_encode.o gen_free.o gen_glue.o gen_length.o hash.o emalloc.o main.o symbol.o getarg.o warnerr.o lex.o parse.o print_version.o get_window_size.o strupr.o 
: ../../tools/asn1_compile/asn1_compile /usr/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1/k5.asn1 krb5_asn1
: 
: Script done on Tue Mar 23 10:12:54 2004

(During the buildworld, the tool is pre-built using the host
toolchain, as part of the build-tools stage of buildworld.)

One case where it can be broken for you is if you have object
directory for kerberos5/lib/libasn1 but do not have object
directory for kerberos5/tools/asn1_compile.


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
ru_at_FreeBSD.org

Received on Mon Mar 22 2004 - 23:20:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:48 UTC