*BSD News Article 4245


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!uunet!gatech!news.ans.net!cmcl2!sbcs.sunysb.edu!sbcs!stark
From: stark@cs.sunysb.edu (Gene Stark)
Subject: Re: Kernel rebuild - load error?
In-Reply-To: vikki@e40-008-9.MIT.EDU's message of Sat, 29 Aug 1992 10: 58:53 GMT
Message-ID: <STARK.92Aug29073021@sbstark.cs.sunysb.edu>
Sender: usenet@sbcs.sunysb.edu (Usenet poster)
Nntp-Posting-Host: sbstark
Organization: SUNY at Stony Brook Computer Science Dept.
References: <1992Aug29.105853.10261@ctr.columbia.edu>
Date: Sat, 29 Aug 1992 12:30:21 GMT
Lines: 22

>     I am trying to rebuild my kernel to change it so that my 3c503 ethernet
>adapter talks out its AUI port instead of the thinnet port.  (Thanks for the
....
>shortly, I get the error:
>
>  init_main.o: undefined symbol _version refrenced from text segment
>  *** error code 1

I got this, too, on my first attempt to recompile the kernel.
The problem is that "init_main.c" references the "version" string, but
the "config" program does not set up the file "vers.c" in your
compile directory.  If you look at the GENERICISA compile directory,
you will find files "version" and "vers.c", and you will see that the
Makefile includes "vers.o" at the end of the list of files to be loaded.

Since I was just hacking anyway, I just copied "vers.c" from the GENERICISA
directory and edited my Makefile.  This is undoubtedly not the correct
solution, because if I re"config" the changes to the Makefile are reverted.
However, it enables me to load the system.  I'd be happy to hear about
the correct fix.

							- Gene Stark