Subject: Problem compiling -current kernel
To: None <port-pmax@netbsd.org>
From: maximum entropy <entropy@tardis.bernstein.com>
List: port-pmax
Date: 10/17/1999 21:01:19
I'm trying to bring a 1.4_BETA system up to date.

I grabbed last weekend's source tarballs, and supped over them on 10/16.

I recompiled config and make.

I cleaned out my /sys/arch/pmax/compile directory, and did a config GENERIC.

I get the following errors when trying to build the kernel:

Script started on Sun Oct 17 20:48:16 1999
ubik# make
making sure the kern library is up to date...
`libkern.a' is up to date.
making sure the compat library is up to date...
`libcompat.a' is up to date.
sh ../../../../conf/newvers.sh
cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-main -G 0  -mno-abicalls -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1 -DMIPS3 -DLKM -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL -Dpmax  -c vers.c
ld -Ttext 0x80030000 -T ../../../../arch/mips/conf/kern.ldscript -e start -G 0 -x -o netbsd ${SYSTEM_OBJ} vers.o
lance.o: In function `lance_zerobuf_contig':
../../../../dev/ic/lance.c(.text+0x109c): undefined reference to `memset'
../../../../dev/ic/lance.c(.text+0x109c): relocation truncated to fit: R_MIPS_26 memset
pdq.o: In function `pdq_queue_commands':
../../../../dev/ic/pdq.c(.text+0x8e0): undefined reference to `memset'
../../../../dev/ic/pdq.c(.text+0x8e0): relocation truncated to fit: R_MIPS_26 memset
pdq.o: In function `pdq_interrupt':
../../../../dev/ic/pdq.c(.text+0x25a0): undefined reference to `memset'
../../../../dev/ic/pdq.c(.text+0x25a0): relocation truncated to fit: R_MIPS_26 memset
pdq.o: In function `pdq_initialize':
../../../../dev/ic/pdq.c(.text+0x2768): undefined reference to `memset'
../../../../dev/ic/pdq.c(.text+0x2768): relocation truncated to fit: R_MIPS_26 memset
../../../../dev/ic/pdq.c(.text+0x27d8): undefined reference to `memset'
../../../../dev/ic/pdq.c(.text+0x27d8): relocation truncated to fit: R_MIPS_26 memset
pdq_ifsubr.o: In function `pdq_os_addr_fill':
../../../../dev/ic/pdq_ifsubr.c(.text+0x684): undefined reference to `memcmp'
../../../../dev/ic/pdq_ifsubr.c(.text+0x684): relocation truncated to fit: R_MIPS_26 memcmp
db_aout.o: In function `db_aout_line_at_pc':
../../../../ddb/db_aout.c(.text+0x3c0): undefined reference to `strcmp'
../../../../ddb/db_aout.c(.text+0x3c0): relocation truncated to fit: R_MIPS_26 strcmp
db_elf.o: In function `db_elf_sym_init':
../../../../ddb/db_elf.c(.text+0x70): undefined reference to `memcmp'
../../../../ddb/db_elf.c(.text+0x70): relocation truncated to fit: R_MIPS_26 memcmp
db_examine.o: In function `db_search_cmd':
../../../../ddb/db_examine.c(.text+0x504): undefined reference to `strcmp'
../../../../ddb/db_examine.c(.text+0x504): relocation truncated to fit: R_MIPS_26 strcmp
../../../../ddb/db_examine.c(.text+0x51c): undefined reference to `strcmp'
../../../../ddb/db_examine.c(.text+0x51c): relocation truncated to fit: R_MIPS_26 strcmp
../../../../ddb/db_examine.c(.text+0x534): undefined reference to `strcmp'
../../../../ddb/db_examine.c(.text+0x534): relocation truncated to fit: R_MIPS_26 strcmp
db_sym.o: In function `db_del_symbol_table':
../../../../ddb/db_sym.c(.text+0x1b8): undefined reference to `strcmp'
../../../../ddb/db_sym.c(.text+0x1b8): relocation truncated to fit: R_MIPS_26 strcmp
db_sym.o: In function `db_eqname':
../../../../ddb/db_sym.c(.text+0x2f8): undefined reference to `strcmp'
../../../../ddb/db_sym.c(.text+0x2f8): relocation truncated to fit: R_MIPS_26 strcmp
db_sym.o(.text+0x31c):../../../../ddb/db_sym.c: more undefined references to `strcmp' follow
db_sym.o: In function `db_eqname':
../../../../ddb/db_sym.c(.text+0x31c): relocation truncated to fit: R_MIPS_26 strcmp
db_sym.o: In function `db_lookup':
../../../../ddb/db_sym.c(.text+0x400): relocation truncated to fit: R_MIPS_26 strcmp
db_variables.o: In function `db_find_variable':
../../../../ddb/db_variables.c(.text+0x170): relocation truncated to fit: R_MIPS_26 strcmp
../../../../ddb/db_variables.c(.text+0x1c0): relocation truncated to fit: R_MIPS_26 strcmp
ccd.o: In function `ccdattach':
../../../../dev/ccd.c(.text+0x8c): undefined reference to `memset'
../../../../dev/ccd.c(.text+0x8c): relocation truncated to fit: R_MIPS_26 memset
ccd.o: In function `ccdinit':
../../../../dev/ccd.c(.text+0x218): undefined reference to `memset'
../../../../dev/ccd.c(.text+0x218): relocation truncated to fit: R_MIPS_26 memset
ccd.o: In function `ccdinterleave':
../../../../dev/ccd.c(.text+0x5b8): undefined reference to `memset'
../../../../dev/ccd.c(.text+0x5b8): relocation truncated to fit: R_MIPS_26 memset
ccd.o: In function `ccdgetdefaultlabel':
../../../../dev/ccd.c(.text+0x1ee8): undefined reference to `memset'
../../../../dev/ccd.c(.text+0x1ee8): relocation truncated to fit: R_MIPS_26 memset
../../../../dev/ccd.c(.text+0x1f40): undefined reference to `strncpy'
../../../../dev/ccd.c(.text+0x1f40): relocation truncated to fit: R_MIPS_26 strncpy
../../../../dev/ccd.c(.text+0x1f5c): undefined reference to `strncpy'
../../../../dev/ccd.c(.text+0x1f5c): relocation truncated to fit: R_MIPS_26 strncpy
ccd.o: In function `ccdmakedisklabel':
../../../../dev/ccd.c(.text+0x215c): undefined reference to `strncpy'
../../../../dev/ccd.c(.text+0x215c): relocation truncated to fit: R_MIPS_26 strncpy
vnd.o: In function `vndattach':
../../../../dev/vnd.c(.text+0x64): undefined reference to `memset'
../../../../dev/vnd.c(.text+0x64): relocation truncated to fit: R_MIPS_26 memset
vnd.o: In function `vndioctl':
../../../../dev/vnd.c(.text+0x1300): undefined reference to `memset'
../../../../dev/vnd.c(.text+0x1300): relocation truncated to fit: R_MIPS_26 memset
vnd.o: In function `vndgetdefaultlabel':
../../../../dev/vnd.c(.text+0x1a70): undefined reference to `memset'
../../../../dev/vnd.c(.text+0x1a70): relocation truncated to fit: R_MIPS_26 memset
../../../../dev/vnd.c(.text+0x1ae0): undefined reference to `strncpy'
../../../../dev/vnd.c(.text+0x1ae0): relocation truncated to fit: R_MIPS_26 strncpy
../../../../dev/vnd.c(.text+0x1afc): undefined reference to `strncpy'
../../../../dev/vnd.c(.text+0x1afc): relocation truncated to fit: R_MIPS_26 strncpy
vnd.o: In function `vndgetdisklabel':
../../../../dev/vnd.c(.text+0x1c9c): undefined reference to `strncpy'
../../../../dev/vnd.c(.text+0x1c9c): relocation truncated to fit: R_MIPS_26 strncpy
rnd.o: In function `rndioctl':
../../../../dev/rnd.c(.text+0x5fc): undefined reference to `strncmp'
../../../../dev/rnd.c(.text+0x5fc): relocation truncated to fit: R_MIPS_26 strncmp
../../../../dev/rnd.c(.text+0x720): undefined reference to `strncmp'
../../../../dev/rnd.c(.text+0x720): relocation truncated to fit: R_MIPS_26 strncmp
rnd.o: In function `rnd_sample_free':
../../../../dev/rnd.c(.text+0xa1c): undefined reference to `memset'
../../../../dev/rnd.c(.text+0xa1c): relocation truncated to fit: R_MIPS_26 memset
rnd.o: In function `rnd_attach_source':
../../../../dev/rnd.c(.text+0xad0): undefined reference to `strcpy'
../../../../dev/rnd.c(.text+0xad0): relocation truncated to fit: R_MIPS_26 strcpy
rndpool.o: In function `rndpool_extract_data':
../../../../dev/rndpool.c(.text+0x630): undefined reference to `memset'
../../../../dev/rndpool.c(.text+0x630): relocation truncated to fit: R_MIPS_26 memset
../../../../dev/rndpool.c(.text+0x640): undefined reference to `memset'
../../../../dev/rndpool.c(.text+0x640): relocation truncated to fit: R_MIPS_26 memset
Segmentation fault - core dumped
*** Error code 139

Stop.
ubik# exit

Script done on Sun Oct 17 20:49:29 1999

What am I doing wrong?

tia,
entropy

--
entropy