Subject: Recent fs instability
To: None <tech-kern@netbsd.org>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: tech-kern
Date: 10/22/1999 13:11:11
I have recently started seeing all sorts of weird instability on my power
mac. For instance, when trying to link sys/arch/macppc/stand/ofboot, I got:
ld -s -N -Ttext 6c0000 -Bstatic -o ofwboot Locore.o boot.o ofdev.o net.o
netif_of.o alloc.o apple.o ofwmagic.o vers.o
/sys/arch/macppc/stand/ofwboot/obj.macppc/lib/sa/libsa.a
/sys/arch/macppc/stand/ofwboot/obj.macppc/lib/z/libz.a
/sys/arch/macppc/stand/ofwboot/obj.macppc/lib/kern/libkern.a
net.o: In function `net_open':
net.o(.text+0x0): multiple definition of `net_open'
boot.o(.text+0x0): first defined here
net.o: In function `net_mountroot':
net.o(.text+0x114): multiple definition of `net_mountroot'
boot.o(.text+0x114): first defined here
net.o: In function `net_close':
net.o(.text+0xac): multiple definition of `net_close'
boot.o(.text+0xac): first defined here
netif_of.o: In function `net_open':
netif_of.o(.text+0x0): multiple definition of `net_open'
boot.o(.text+0x0): first defined here
netif_of.o: In function `net_mountroot':
netif_of.o(.text+0x114): multiple definition of `net_mountroot'
boot.o(.text+0x114): first defined here
netif_of.o: In function `net_close':
netif_of.o(.text+0xac): multiple definition of `net_close'
boot.o(.text+0xac): first defined here
netif_of.o: could not read symbols: File truncated
*** Error code 1
1 error
cd'ing to the obj dir, I get:
waterdeep> nm boot.o |more
00000000 r .LC0
00000018 r .LC1
U bootp
U errno
00000000 t gcc2_compiled.
U intoa
U myip
000000ac T net_close
00000114 T net_mountroot
00000000 T net_open
00000000 g netdev_sock
U netif_close
U netif_open
U nfs_mount
00000004 g open_count
U printf
U rootip
00000080 C rootpath
waterdeep> nm net.o | more
00000000 r .LC0
00000018 r .LC1
U bootp
U errno
00000000 t gcc2_compiled.
U intoa
U myip
000000ac T net_close
00000114 T net_mountroot
00000000 T net_open
00000000 g netdev_sock
U netif_close
U netif_open
U nfs_mount
00000004 g open_count
U printf
U rootip
00000080 C rootpath
i.e. what's supposed to be in net.o is in net.o and boot.o.
A while later, I got a kernel panic about freeing a free block (u/ffs
panic).
This is with both source and obj sitting on scsi disks on a bha card.
Next step is to try and back up the source to see if I can make it go
away.
Take care,
Bill