Subject: Errors while building a profiling kernel
To: None <current-users@netbsd.org>
From: Dheeraj Reddy <dheeraj@triveni.no-ip.org>
List: current-users
Date: 07/07/2003 12:49:56
Hello all.
    when i try to compile a profiling kernel, i get a bunch of linker errors
at the very end. I am not sure if it is something to do with the way i am 
doing it or a bug in the build process.

$ cd /usr/src/sys/arch/i386/conf
$ config -p <NAME>
$ cd ../compile/<NAME>.PROF
$ make clean && make depend && make

now for the errors;

cc  -mcpu=pentiumpro -ffreestanding  -O2 -mcpu=pentiumpro -O2 -Werror -Wall -Wno
-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prot
otypes -Wno-sign-compare -Wno-uninitialized  -O2 -mcpu=pentiumpro -Di386 -I.  -I
../../../../arch -I../../../.. -nostdinc -DGPROF -D__AUDIT__ -DLKM -DNMBCLUSTERS
="0x1000" -DMAXUSERS=8 -D_KERNEL -D_KERNEL_OPT -pg -c vers.c
ld -T ../../../../arch/i386/conf/kern.ldscript -Ttext c0100000 -e start -o netbs
d ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
locore.o: In function `start':
locore.o(.text+0x3f): undefined reference to `memcpy'
rijndael-api-fst.o: In function `rijndael_makeKey':
rijndael-api-fst.o(.text+0x86): undefined reference to `memcpy'
rijndael-api-fst.o: In function `rijndael_padEncrypt':
rijndael-api-fst.o(.text+0x5c2): undefined reference to `memcpy'
rijndael-api-fst.o: In function `rijndael_padDecrypt':
rijndael-api-fst.o(.text+0xb32): undefined reference to `memcpy'
rijndael-api-fst.o(.text+0xc62): undefined reference to `memcpy'
..
..... a lot of similar errors w.r.t strlcpy, intoa and so on.. i 
can put them up if that'll help.

truely
dheeraj