Subject: Re: _dumpspec not defined
To: Paul M. Newhouse <>
From: Jason Thorpe <>
List: current-users
Date: 07/08/1997 00:07:05
On Mon, 7 Jul 1997 23:46:27 -0700 (PDT) 
 "Paul M. Newhouse" <> wrote:

 > I'm building a current that's a few days old:
 > 1) how do I get rid of all the -W<stuff> that won't let me finish a "make build"
 >    from /usr/src, because so many directories have petty warnings that kill the 
 >    build.  I edited all the makefiles and /usr/share/mk/* but, they keep appearing.

...those warnings were added to catch problems... However, I think you
can disable them by setting WARNS=0 in /etc/mk.conf (Christos?)

 > 2) What did I do wrong here?:
 >    ld -z -Ttext F8100000 -e start -S -o netbsd ${SYSTEM_OBJ} vers.o
 >    kern_subr.o: Undefined symbol `_dumpspec' referenced from text segment
 >    kern_subr.o: Undefined symbol `_dumpspec' referenced from text segment
 >    *** Error code 1
 >    find /usr/src -name "*.[ch]" -print|xargs -n 500 grep dumpspec
 > returns:
 >    ./usr.sbin/config/mkswap.c:     if (fprintf(fp, "const char *dumpspec = %s;\n", specinfo) < 0)

Ding.  Rebuild and install a new config, and rerun it on the kernel
config file.  a.out prepends an _ to C symbols, hence "_dumpspec".

Jason R. Thorpe                             
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939