Subject: Link failures for new kernels.
To: None <netbsd-current-users@sun-lamp.cs.berkeley.edu>
From: Dave Burgess <burgess@s069.infonet.net>
List: current-users
Date: 06/18/1994 13:38:02
I think I may have found at least part of the problem with the
libkern.a. The members that are referenced as 'not found' are not in
the library.
Duuh.
I looked at the Makefile, and it appears that if you do a make clean
and make in the libkern directory, the bulk of the stuff that isn't
'quad support' stuff doesn't get added to the library. If it is
supposed to, I couldn't find the reference.
Either way, once the library is built, the referenced files are not
there.
:r
-rw-rw-r-- 1 root wheel 2232 Jun 18 12:18 libc_sa/libc_sa.a
-rw-rw-r-- 1 root wheel 6294 Jun 18 12:20 libkern/libkern.a
-rw-rw-r-- 1 root wheel 23566 Jun 18 12:21 libnetboot/libnetboot.a
making sure the kern library is up to date...
rm -f machine && ln -s /usr/src/sys/lib/libkern/../../arch/i386/include machine
rm -f i386 && ln -s /usr/src/sys/lib/libkern/../../arch/i386/include i386
sh ../../../../conf/newvers.sh
cc -O6 -I. -I../../../../arch -I../../../.. -I../../../../sys -DCYNJUT -DI586_CPU -DI486_CPU -DI386_CPU -DUCONSOLE -DXSERVER -DLKM -DCOMPAT_09 -DTCP_COMPAT_42 -DCOMPAT_43 -DCOMPAT_NOMID -DUSER_LDT -DGATEWAY -DEON -DTPIP -DISO -DNS -DINET -DKERNFS -DFDESC -DOLD_MCD_CTLR -DISOFS -DNFSCLIENT -DNFSSERVER -DMFS -DQUOTA -DFFS -DDEVPAGER -DVNODEPAGER -DSWAPPAGER -DFIFO -DKTRACE -DMACHINE_NONCONTIG -DDUMMY_NOPS -DMATH_EMULATE -DKERNEL -Di386 -c vers.c
rm -f netbsd
ld -x -z -T F8100000 -o netbsd -e start ${SYSTEM_OBJ} vers.o
vn.o: Undefined symbol _bzero referenced from text segment
exec_script.o: Undefined symbol _strncmp referenced from text segment
exec_script.o: Undefined symbol _strcpy referenced from text segment
exec_script.o: Undefined symbol _strcpy referenced from text segment
init_main.o: Undefined symbol ___main referenced from text segment
kern_descrip.o: Undefined symbol _bzero referenced from text segment
kern_descrip.o: Undefined symbol _bzero referenced from text segment
kern_descrip.o: Undefined symbol _bzero referenced from text segment
kern_fork.o: Undefined symbol _bzero referenced from text segment
kern_lkm.o: Undefined symbol _bzero referenced from text segment
kern_lkm.o: Undefined symbol _strcmp referenced from text segment
kern_lkm.o: Undefined symbol _strcmp referenced from text segment
kern_lkm.o: Undefined symbol _strcmp referenced from text segment
kern_lkm.o: Undefined symbol _strncmp referenced from text segment
kern_prot.o: Undefined symbol _bzero referenced from text segment
kern_sig.o: Undefined symbol _strncpy referenced from text segment
kern_sysctl.o: Undefined symbol _strncpy referenced from text segment
kern_xxx.o: Undefined symbol _strncpy referenced from text segment
kern_xxx.o: Undefined symbol _strncpy referenced from text segment
kern_xxx.o: Undefined symbol _strncpy referenced from text segment
kern_xxx.o: Undefined symbol _strncpy referenced from text segment
subr_prf.o: Undefined symbol _bzero referenced from text segment
sys_generic.o: Undefined symbol _bzero referenced from text segment
sys_generic.o: More undefined symbol _bzero refs follow
tty.o: Undefined symbol _bcmp referenced from text segment
tty.o: Undefined symbol _scanc referenced from text segment
vfs_cache.o: Undefined symbol _bcmp referenced from text segment
vfs_subr.o: Undefined symbol _strcat referenced from text segment
vfs_subr.o: Undefined symbol _strcat referenced from text segment
vfs_subr.o: Undefined symbol _strcat referenced from text segment
vfs_subr.o: Undefined symbol _strcat referenced from text segment
vfs_subr.o: Undefined symbol _strcat referenced from text segment
vfs_subr.o: Undefined symbol _strcat referenced from text segment
vfs_subr.o: Undefined symbol _strcat referenced from text segment
vfs_syscalls.o: Undefined symbol _strncmp referenced from text segment
vfs_syscalls.o: Undefined symbol _bcmp referenced from text segment
fdesc_vfsops.o: Undefined symbol _strncpy referenced from text segment
fdesc_vnops.o: Undefined symbol _bcmp referenced from text segment
fdesc_vnops.o: Undefined symbol _bcmp referenced from text segment
fdesc_vnops.o: Undefined symbol _bcmp referenced from text segment
fdesc_vnops.o: Undefined symbol _bcmp referenced from text segment
fdesc_vnops.o: Undefined symbol _bcmp referenced from text segment
fdesc_vnops.o: Undefined symbol _bcmp referenced from text segment
kernfs_vfsops.o: Undefined symbol _strncpy referenced from text segment
kernfs_vnops.o: More undefined symbol _bcmp refs follow
bpf.o: Undefined symbol _strcmp referenced from text segment
if.o: Undefined symbol _strncpy referenced from text segment
if_ppp.o: Undefined symbol _min referenced from text segment
if_ppp.o: Undefined symbol _min referenced from text segment
nfs_vfsops.o: More undefined symbol _strncpy refs follow
ffs_alloc.o: Undefined symbol _skpc referenced from text segment
ffs_alloc.o: Undefined symbol _skpc referenced from text segment
ffs_alloc.o: Undefined symbol _scanc referenced from text segment
ffs_alloc.o: Undefined symbol _scanc referenced from text segment
machdep.o: Undefined symbol _strcat referenced from text segment
machdep.o: Undefined symbol _strcat referenced from text segment
machdep.o: More undefined symbol _strcat refs follow
pmap.o: Undefined symbol _min referenced from text segment
pmap.o: Undefined symbol _min referenced from text segment
spkr.o: Undefined symbol _min referenced from text segment
*** Error code 1 (ignored)
size: netbsd: No such file or directory
*** Error code 1
Stop.
# nm -o /usr/src/sys/lib/libkern/libkern.a
/usr/src/sys/lib/libkern/libkern.a:mcount.o: U __gmonparam
/usr/src/sys/lib/libkern/libkern.a:mcount.o:00000000 T mcount
/usr/src/sys/lib/libkern/libkern.a:xordi3.o:00000000 T ___xordi3
/usr/src/sys/lib/libkern/libkern.a:umoddi3.o: U ___qdivrem
/usr/src/sys/lib/libkern/libkern.a:umoddi3.o:00000000 T ___umoddi3
/usr/src/sys/lib/libkern/libkern.a:udivdi3.o: U ___qdivrem
/usr/src/sys/lib/libkern/libkern.a:udivdi3.o:00000000 T ___udivdi3
/usr/src/sys/lib/libkern/libkern.a:ucmpdi2.o:00000000 T ___ucmpdi2
/usr/src/sys/lib/libkern/libkern.a:subdi3.o:00000000 T ___subdi3
/usr/src/sys/lib/libkern/libkern.a:notdi2.o:00000000 T ___one_cmpldi2
/usr/src/sys/lib/libkern/libkern.a:negdi2.o:00000000 T ___negdi2
/usr/src/sys/lib/libkern/libkern.a:muldi3.o:00000000 T ___muldi3
/usr/src/sys/lib/libkern/libkern.a:moddi3.o:00000000 T ___moddi3
/usr/src/sys/lib/libkern/libkern.a:moddi3.o: U ___qdivrem
/usr/src/sys/lib/libkern/libkern.a:lshrdi3.o:00000000 T ___lshrdi3
/usr/src/sys/lib/libkern/libkern.a:lshldi3.o:00000000 T ___lshldi3
/usr/src/sys/lib/libkern/libkern.a:iordi3.o:00000000 T ___iordi3
/usr/src/sys/lib/libkern/libkern.a:divdi3.o:00000000 T ___divdi3
/usr/src/sys/lib/libkern/libkern.a:divdi3.o: U ___qdivrem
/usr/src/sys/lib/libkern/libkern.a:cmpdi2.o:00000000 T ___cmpdi2
/usr/src/sys/lib/libkern/libkern.a:ashrdi3.o:00000000 T ___ashrdi3
/usr/src/sys/lib/libkern/libkern.a:ashldi3.o:00000000 T ___ashldi3
/usr/src/sys/lib/libkern/libkern.a:anddi3.o:00000000 T ___anddi3
/usr/src/sys/lib/libkern/libkern.a:adddi3.o:00000000 T ___adddi3
/usr/src/sys/lib/libkern/libkern.a:qdivrem.o:00000000 T ___qdivrem
------------------------------------------------------------------------------