From owner-freebsd-questions Wed Feb 21 18:28:32 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA19413 for questions-outgoing; Wed, 21 Feb 1996 18:28:32 -0800 (PST) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA19407 for ; Wed, 21 Feb 1996 18:28:30 -0800 (PST) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id TAA16296; Wed, 21 Feb 1996 19:31:10 -0700 Date: Wed, 21 Feb 1996 19:31:10 -0700 From: Nate Williams Message-Id: <199602220231.TAA16296@rocky.sri.MT.net> To: jlrobins@zappa.cs.uncc.edu (James Robinson) Cc: freebsd-questions@FreeBSD.org Subject: Re: Problem compiling stable kernel -- memcmp In-Reply-To: <9602212302.AA07134@zappa.cs.uncc.edu> References: <9602212302.AA07134@zappa.cs.uncc.edu> Sender: owner-questions@FreeBSD.org Precedence: bulk > > loading kernel > scsi_base.o: Undefined symbol `_memcmp' referenced from text segment > *** Error code 1 > > I've worked around this in the past by simply writing a memcmp into > scsi_base.c. There's got to be a better way! Anyone else see this? This happens when you compile w/out optimization. Turn on at least -O and it should go away. Nate