Subject: boot floppy build broken?
To: None <current-users@netbsd.org, port-macppc@netbsd.org>
From: Dan Winship <danw@MIT.EDU>
List: port-macppc
Date: 06/21/1999 13:31:53
Has anyone tried to build boot floppies on an ELF system lately? I'm
trying to build a macppc boot floppy and get:

cc -static -o ramdiskbin ramdiskbin.o cat.cro chmod.cro chown.cro chroot.cro cp.cro dd.cro df.cro disklabel.cro ed.cro fsck.cro fsck_ffs.cro ftp.cro gzip.cro ifconfig.cro init.cro installboot.cro ln.cro ls.cro mkdir.cro mknod.cro more.cro mount.cro mount_cd9660.cro mount_ffs.cro mount_kernfs.cro mount_msdos.cro mount_nfs.cro mt.cro mv.cro newfs.cro pax.cro ping.cro pwd.cro rcmd.cro rcp.cro reboot.cro restore.cro rm.cro route.cro sed.cro sh.cro shutdown.cro slattach.cro stty.cro sync.cro test.cro tip.cro tset.cro umount.cro update.cro sysinst.cro -L/home/danw/dest/usr/lib  libhack.o -ledit -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm -lz -lkvm
/home/danw/dest/usr/lib/libc.a(opendir.o): In function `opendir':
opendir.o(.text+0x0): multiple definition of `opendir'
libhack.o(.text+0x1f30): first defined here
/usr/bin/ld: Warning: size of symbol `opendir' changed from 272 to 36 in opendir.o
collect2: ld returned 1 exit status

I mention ELF because it looks like there's a __weak_alias for opendir
in libc, but __weak_alias doesn't do anything on ELF.

Or am I doing something wrong?

-- Dan