Subject: linker errors in floppy image building
To: None <port-pc532@netbsd.org>
From: Jon Buller <jonb@paclink.com>
List: port-pc532
Date: 12/29/1999 23:33:23
Type: cd /usr/src/distrib/pc532 ; make
and get:
cc -static -o instbin instbin.o chat.cro download.cro less.cro pppstats.cro basename.cro bim.cro cat.cro chmod.cro chown.cro chroot.cro cp.cro date.cro dd.cro df.cro dirname.cro disklabel.cro dmesg.cro domainname.cro dump.cro expr.cro factor.cro find.cro fsck_ffs.cro ftp.cro gzip.cro hostname.cro ifconfig.cro init.cro kill.cro kvm_mkdb.cro ln.cro ls.cro mkdir.cro mknod.cro mount.cro mount_cd9660.cro mount_ffs.cro mount_msdos.cro mount_nfs.cro mt.cro mv.cro netstat.cro newfs.cro ping.cro pppd.cro ps.cro pwd.cro reboot.cro restore.cro rm.cro rmdir.cro route.cro sed.cro sh.cro slattach.cro stty.cro swapctl.cro sync.cro sysctl.cro tar.cro test.cro tip.cro traceroute.cro umount.cro sysinst.cro -L/usr/obj/netbsd/usr/lib  -lkvm -lpcap -lrmt -ledit -lcurses -lutil -ltermcap -lcrypt -ll -lm
gzip.cro: Undefined symbol `_bzDecompressInit' referenced from text segment
gzip.cro: Undefined symbol `_bzDecompress' referenced from text segment
gzip.cro: Undefined symbol `_bzDecompressEnd' referenced from text segment
ping.cro: Undefined symbol `_ipsec_get_policylen' referenced from text segment
ping.cro: Undefined symbol `_ipsec_strerror' referenced from text segment
ping.cro: Undefined symbol `_ipsec_set_policy' referenced from text segment
ping.cro: Undefined symbol `_ipsec_strerror' referenced from text segment
...

Anyone have some quick hints?  I assume I need to add a few libraries
to the link, but I'm not sure exactly which ones, and where they
go, and it's too late for me to be able to do it without some real
screw-ups.  (And I don't want to hold up some people doing upgrades
that I badgered into turning on their pc532's again 8-)

I'll look at it more tomorrow night, provided nobody puts the answers
in my inbox...
Jon