Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news1.oakland.edu!newsxfer.itd.umich.edu!agate!news.mindlink.net!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul From: wpaul@ctr.columbia.edu (Bill Paul) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Compilation of 2.0.5-RELEASE Date: 26 Jul 1995 19:07:42 GMT Organization: Columbia University Center for Telecommunications Research Lines: 78 Message-ID: <3v63pu$cs4@sol.ctr.columbia.edu> References: <3v5gja$ijg@picard.cistron.nl> NNTP-Posting-Host: startide.ctr.columbia.edu X-Newsreader: TIN [version 1.2 PL2] Daring to challenge the will of the almighty Leviam00se, Miquel van Smoorenburg (miquels@cistron.nl) had the courage to say: : This probably is a FAQ, but when I try to compile the 2.0.5R kernel : (got the source from ftp.cdrom.com) it gives me lots of errors like: Ah! Ah! Ah! Stop right there! You want us to debug kernel compile problms? Then you have to supply your kernel config file. We're none of us mind readers, you know. With that in mind... : Undefined symbol _scsi_dinit : Undefined symbol _ahc_[xxx] : Undefined symbol _setconf The reference to setconf() leads me to believe that you compiled your kernel with: config kernel swap generic in your config file. (Or you did something strange to the swapkernel.c file generated by config.) With the standard configuration method, setconf() is a no-op and exists only as a stub function in /sys/compile/YOUR_KERNEL_NAME_KERE/swapkernel.c. With swapgeneric, it's included in /sys/i386/i386/swapgeneric.c. The other errors are probably due to a bad config file; you probably tried to enable support for some SCSI devices without defining all the controllers or SCSI busses. Re-read /sys/i386/conf/LINT and try again. : I can fix the first by editting /scsi/scsiconf.h, the second by : not compiling in ahc support, and the third almost by adding : swapgeneric.c to i386/conf/files.386. These are not errors in the code: you shouldn't have to edit any of the kernel sources directly (unless you really want to). Even bearing in mind what I said about swapgeneric, don't use it. It's been broken ever since right before the code freeze for 2.0.5. It's not hard to make it work again, but you shouldn't need it. : However I find it pretty strange that the kernel from 2.0.5R doesn't : compile "out of the box", not even the GENERIC kernel. It does too compile out of the box. I know: I've compiled several 2.0.5R kernels without any trouble (including the one currently running on my home machine). You have to make sure you set up your config file correctly though. : Does somebody know what is going on? This machine is an HTTP server : for 8 domains, but it's running an ancient 2.0-development kernel and : I want to upgrade it to 2.0.5R. With the current kernel, it often : just "hangs" (every few days), without any previous warnings... : To be sure of an answer I'll add that we'll convert this machine to : a Linux box if we can't solve it :) Well... then let me respond by saying that if you don't think you're up to dealing with a real OS then by all means switch to Linux. (There will now be a brief pause while I don my asbestos tuxedo and load by double-barreled fire extinguisher.) : Mike. : -- : Miquel van Smoorenburg, miquels@cistron.nl Cistron Internet Services -Bill -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~T~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Bill Paul (212) 854-6020 | System Manager Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Møøse Illuminati: ignore it and be confused, or join it and be confusing! ~~~~~~ "Welcome to All Things BSDish! If it's not BSDish, it's crap!" ~~~~~~~