Subject: Re: where is memcpy()?
To: None <M.Drochner@fz-juelich.de>
From: Simon Burge <simonb@telstra.com.au>
List: port-pmax
Date: 03/30/1999 06:24:01
Matthias Drochner wrote:
>
> When I try to compile a fresh kernel now, linking does always
> fail due to undefined memcpy() and memmove().
> Indeed, these functions are forcibly excluded from libkern,
> and were kicked off locore.S too.
> Noone reported such a problem so far, so I guess I've messed up
> my build environment.
> Where is memcpy() supposed to be compiled from now?
I'm pretty sure my sources are clean. Clutching at straws, do you have
an old make(1) that has MACHINE_ARCH=mips instead of mipsel?
mona:pmax/compile/MONA 13> rm lib/kern/memcpy.o lib/kern/memmove.o
mona:pmax/compile/MONA 14> make
making sure the kern library is up to date...
cc -x assembler-with-cpp -traditional-cpp -D_LOCORE -I/NetBSD/src/sys/lib/libkern/arch/mips -I../../. -I../../../../../../arch -I../../../../../.. -nostdinc -DMIPS1 -DMIPS3 -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL -Dpmax -c -traditional-cpp -DPIC -DABICALLS /NetBSD/src/sys/lib/libkern/arch/mips/memcpy.S
cc -x assembler-with-cpp -traditional-cpp -D_LOCORE -I/NetBSD/src/sys/lib/libkern/arch/mips -I../../. -I../../../../../../arch -I../../../../../.. -nostdinc -DMIPS1 -DMIPS3 -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL -Dpmax -c -traditional-cpp -DPIC -DABICALLS /NetBSD/src/sys/lib/libkern/arch/mips/memmove.S
building standard kern library
ranlib libkern.a
...
Does this help?
Simon.