Subject: 1.4.3_ALPHA, libhach, sysconfd and statmsg
To: None <current-users@netbsd.org>
From: Willem Brown <willem@brwn.org>
List: current-users
Date: 08/11/2000 19:24:07
Hi,

I just did a make release on 1.4.3_ALPHA supped at Aug 11 11:04:24 2000
local time (SAST or GMT+2). 

When it comes to the point of linking ramdiskbin it fails with the
following error.

cc -static -o ramdiskbin ramdiskbin.o bad144.lo cat.lo chmod.lo chown.lo chroot.lo cp.lo dd.lo df.lo disklabel.lo ed.lo
fsck.lo fsck_ffs.lo ftp.lo gzip.lo ifconfig.lo wiconfig.lo init.lo installboot.lo less.lo ln.lo ls.lo mkdir.lo mknod.lo
mount.lo mount_cd9660.lo mount_ext2fs.lo mount_ffs.lo mount_msdos.lo mount_nfs.lo mount_kernfs.lo mt.lo mv.lo newfs.lo p
ing.lo pwd.lo reboot.lo restore.lo rm.lo route.lo sed.lo sh.lo shutdown.lo slattach.lo stty.lo swapctl.lo sync.lo test.l
o tip.lo umount.lo update.lo sysinst.lo pax.lo fdisk.lo mbrlabel.lo -L/opt/destdir/usr/lib  libhack.o -ledit -lutil -lcu
rses -ltermcap -lrmt -lcrypt -ll -lm
cc: libhack.o: No such file or directory
*** Error code 1

Stop.
*** Error code 1

It seems to be looking for the libhack.o file in the local directory
but because it was build earlier, it is not build again as a result
the file does not exist on the distrib/i386/floppies/ramdisk directory.

I tried a few things and ended with the following patch. If I apply this
the build goes through without problems.

Index: distrib/utils/Makefile
===================================================================
RCS file: /opt/cvs/release/src/distrib/utils/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile    2000/07/20 22:06:28     1.1.1.1
+++ Makefile    2000/08/11 15:31:26
@@ -1,6 +1,6 @@
 #      $NetBSD: Makefile,v 1.4.2.1 1999/04/17 11:05:44 simonb Exp $
 
-SUBDIR=        libhack init_s more ssh tls \
+SUBDIR=        init_s more ssh tls \
        x_dd x_ftp x_ifconfig x_route x_sh zcat
 .if exists(sysinst/arch/${MACHINE})
 SUBDIR+=sysinst

(I imported the supped source into a local repository.)

The second thing that I noticed. At the point where makes the sets
I noticed the following.

making base.tgz
pax: Unable to access ./usr/sbin/statmsg <No such file or directory>
pax: Unable to access ./usr/sbin/sysconfd <No such file or directory>
making comp.tgz
making etc.tgz
making games.tgz
making man.tgz
pax: Unable to access ./usr/share/man/cat8/statmsg.0 <No such file or directory>
pax: Unable to access ./usr/share/man/cat8/sysconfd.0 <No such file or directory>
pax: Unable to access ./usr/share/man/man8/statmsg.8 <No such file or directory>
pax: Unable to access ./usr/share/man/man8/sysconfd.8 <No such file or directory>
making misc.tgz
making text.tgz

If you look at the dhcp makefile, usr.sbin/dhcp/Makefile, they
seem to be missing from the SUBDIR line

SUBDIR= common server client relay

Are they supposed to be build or not?

Best Regards
Willem Brown

PS. for what it is worth, my /usr/share/mk is linked to /usr/src/share/mk

-- 
 /* =============================================================== */
 /*      Linux, FreeBSD, NetBSD, OpenBSD. The choice is yours.      */
 /* =============================================================== */

When in trouble, obfuscate.