Subject: Re: CODA on macppc?
To: John Klos <john@sixgirls.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: port-macppc
Date: 04/19/2002 09:42:30
On Fri, 19 Apr 2002, John Klos wrote:

> Hello,
>
> I was wondering if anyone has tried using CODA on macppc? I've compiled it
> on Amiga and VAX but I haven't used it yet; my PowerMac was going to be
> the client, but I got the following error when I tried to compile CODA
> support into the kernel:
>
> rm -f netbsd
> ld -N -Ttext 100000 -e __start -x -o netbsd ${SYSTEM_OBJ} vers.o
> coda_namecache.o: In function `coda_nc_init':
> coda_namecache.o(.text+0x10c): undefined reference to `_insque'
> coda_namecache.o: In function `coda_nc_enter':
> coda_namecache.o(.text+0x4b4): undefined reference to `_remque'
> coda_namecache.o(.text+0x52c): undefined reference to `_remque'
> coda_namecache.o(.text+0x598): undefined reference to `_insque'
> coda_namecache.o(.text+0x5b4): undefined reference to `_insque'
> coda_namecache.o: In function `coda_nc_lookup':
> coda_namecache.o(.text+0x744): undefined reference to `_remque'
> coda_namecache.o(.text+0x754): undefined reference to `_insque'
> coda_namecache.o(.text+0x75c): undefined reference to `_remque'
> coda_namecache.o(.text+0x77c): undefined reference to `_insque'
> coda_namecache.o: In function `coda_nc_remove':
> coda_namecache.o(.text+0x84c): undefined reference to `_remque'
> coda_namecache.o(.text+0x8e0): undefined reference to `_remque'
> coda_namecache.o(.text+0x8f0): undefined reference to `_insque'
> coda_namecache.o: In function `coda_nc_flush':
> coda_namecache.o(.text+0xfa0): undefined reference to `_remque'
> *** Error code 1
>
> Stop.
>
>
> It seems that _insque and _remque aren't in my MacPPC kernel, but are in
> my Amiga kernel, even though the Mac kernel has tons more options compiled
> in. Does anyone know where they come from?

Two answers:

1) (more round-about) cd /usr/pkgsrc/deve/id-tools; make; make install;
rehash; cd /sys; mkid;

tanis> eid _remque
_remque        /sys/sys/systm.h /sys/arch/vax/include/macros.h /sys/lib/libkern/_que.c /sys/arch/mips/mips/locore.S
edit? [y1-9^S/nq] 2

2) Seems to live in lib/libkern. Not sure why you aren't seeing it.

Take care,

Bill