*BSD News Article 4257


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!mips!decwrl!sun-barr!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!news!brtmac
From: brtmac@maverick.ksu.ksu.edu (Brett McCoy)
Newsgroups: comp.unix.bsd
Subject: Re: Kernel rebuild - load error?
Message-ID: <BRTMAC.92Aug29162542@maverick.ksu.ksu.edu>
Date: 29 Aug 92 21:25:41 GMT
References: <1992Aug29.105853.10261@ctr.columbia.edu>
	<STARK.92Aug29073021@sbstark.cs.sunysb.edu>
Organization: Kansas State University
Lines: 28
NNTP-Posting-Host: maverick.ksu.ksu.edu
In-reply-to: stark@cs.sunysb.edu's message of Sat, 29 Aug 1992 12:30:21 GMT

In article <STARK.92Aug29073021@sbstark.cs.sunysb.edu> stark@cs.sunysb.edu (Gene Stark) writes:

>>     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.

Look in mirrors4/386bsd/386bsd-0.1/unofficial/Makefile.i386.cgd on
wuarchive.wustl.edu, or any of the other mirror sites, for the patches
needed to fix this problem.

++Brett;