some mtree missing in buildworld

From: Julian H. Stacey <jhs_at_berklix.com>
Date: Thu, 21 Apr 2016 17:45:04 +0200
Hi current_at_
There seems some invocation of mtree missing in make buildworld,
& also an undefined reference to `_libmd*
I detected it upgrading a year old current to today's current:

------
uname -a
FreeBSD blak.js.berklix.net 11.0-CURRENT FreeBSD 11.0-CURRENT #11881: Sun Mar 22 19:23:17 CET 2015     jhs_at_blak.js.berklix.net:/usr/src/sys/amd64/compile/BLAK.small  amd64

rm -rf /usr/src 
mkdir /usr/src 
cd /usr/src
ctm -q  /pub/FreeBSD/development/CTM/src-cur/src-cur.12300xEmpty.gz
ctm -q /pub/FreeBSD/development/CTM/src-cur/src-*.1[0-9][0-9][0-9][0-9].gz
cat .ctm*
	src-cur 12446	# That's todays latest
cat .svn_revision
	298360

/etc/src.conf is an empty file ie all commented out

make obj

make buildworld
	cc -O2 -pipe -DBERKLIX=YES -DHAVE_CONFIG_H -DRL_NO_COMPAT -DMI_OUT=1 -DTUI=1 -DDEBUGDIR=\"/usr/lib/debug\" -I. -I/usr/src/gnu/usr.bin/gdb/kgdb/../arch/amd64 -I/usr/src/gnu/usr.bin/gdb/kgdb/../../binutils/libbfd -I/usr/src/gnu/usr.bin/gdb/kgdb/../../binutils/libbfd/amd64 -I/usr/src/gnu/usr.bin/gdb/kgdb/../../../../contrib/gdb/gdb -I/usr/src/gnu/usr.bin/gdb/kgdb/../../../../contrib/gdb/gdb/config -I/usr/src/gnu/usr.bin/gdb/kgdb/../../../../contrib/binutils/include -I/usr/src/gnu/usr.bin/gdb/kgdb/../../../../contrib/gdb/include -I/usr/src/gnu/usr.bin/gdb/kgdb/../../../../contrib/binutils/bfd -I/usr/obj/usr/src/gnu/usr.bin/gdb/kgdb/../../../lib/libreadline/readline/.. -g -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -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-loca!
 l-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments  -o kgdb.full main.o kld.o kthr.o trgt.o trgt_amd64.o  /usr/obj/usr/src/gnu/usr.bin/gdb/kgdb/../../gdb/libgdb/libgdb.a /usr/obj/usr/src/gnu/usr.bin/gdb/kgdb/../../binutils/libbfd/libbfd.a /usr/obj/usr/src/gnu/usr.bin/gdb/kgdb/../../binutils/libopcodes/libopcodes.a  /usr/obj/usr/src/gnu/usr.bin/gdb/kgdb/../../binutils/libiberty/libiberty.a  -lm -L/usr/obj/usr/src/gnu/lib/libreadline/readline -L/usr/obj/usr/src/gnu/lib/libreadline/readline -lreadline  -lncursesw  -lncursesw  -lncursesw  -lgnuregex  -lkvm
	main.o: In function `main':
	/usr/src/gnu/usr.bin/gdb/kgdb/main.c:478: undefined reference to `kgdb_trgt_pc_fixup'
	cc: error: linker command failed with exit code 1 (use -v to see invocation)
	*** Error code 1
	
	Stop.
	make[6]: stopped in /usr/src/gnu/usr.bin/gdb/kgdb

make includes
	Various breakages repaired by my subsequent manual mkdir eg
mkdir -p /usr/include/private/bsdstat

make includes
	===> lib/libcasper/services (includes)
	===> lib/libcasper/services/cap_dns (includes)
	install  -C -o root -g wheel -m 444  /usr/src/lib/libcasper/services/cap_dns/cap_dns.h /usr/include/casper/
	install: /usr/include/casper/: No such file or directory
	*** Error code 71

cd /usr/src/etc/mtree
make install
cd /etc/mtree 
vi -c/casper BSD.include.dist
cd /usr/src
make _worldtmp
cd /usr/obj/usr/src/tmp
tar cf - . | ( cd / && tar xf - )
ls -la /usr/include/casper
	total 12
	drwxr-xr-x   2 root  wheel   512 Apr 21 17:08 ./
	drwxr-xr-x  60 root  wheel  6656 Apr 21 17:09 ../

cd /usr/src
make includes
cd /usr/src/gnu/usr.bin/gdb/kgdb ; make
	Runs for a while
cd /usr/src/gnu/usr.bin/gdb/; make
	Runs for a while
make upgrade_checks
make buildworld
	cc -O2 -pipe -DBERKLIX=YES -I/usr/src/usr.bin/xinstall/../../contrib/mtree -I/usr/src/usr.bin/xinstall/../../lib/libnetbsd -g -std=gnu99 -Qunused-arguments -I/usr/obj/usr/src/tmp/legacy/usr/include  -static -L/usr/obj/usr/src/tmp/legacy/usr/lib -o xinstall.full xinstall.o getid.o   -lmd -legacy
	xinstall.o: In function `digest_init':
	/usr/src/usr.bin/xinstall/xinstall.c:414: undefined reference to `_libmd_MD5Init'
	...
	/usr/src/usr.bin/xinstall/xinstall.c:470: undefined reference to `_libmd_SHA512_End'
	cc: error: linker command failed with exit code 1 (use -v to see invocation)
	*** Error code 1
	
	Stop.
	bmake[3]: stopped in /usr/src/usr.bin/xinstall

cd /usr/src/lib/libmd ; make ; make install
cd /usr/src/usr.bin/xinstall  ; make ; make install
cd /usr/src; make buildworld

Cheers,
Julian
-- 
Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich http://berklix.eu/jhs/
 Mail plain text,  No quoted-printable, HTML, base64, MS.doc.
 Prefix old lines '> '  Reply below old, like play script.  Break lines by 80.
 Let Brits in EU vote on Brexit https://petition.parliament.uk/petitions/112142
Received on Thu Apr 21 2016 - 13:45:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:04 UTC