*BSD News Article 11461


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA1652 ; Tue, 23 Feb 93 14:52:07 EST
Newsgroups: comp.os.386bsd.bugs,comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!menudo.uh.edu!uuneo!sugar!karl
From: karl@NeoSoft.com (Karl Lehenbauer)
Subject: Patch to eliminate duplicate strcmp def with "options DIAGNOSTIC"
Organization: NeoSoft Communications Services -- (713) 684-5900
Date: Thu, 18 Feb 1993 07:09:56 GMT
Message-ID: <C2MuKL.LEM@sugar.neosoft.com>
Lines: 46

This is an unofficial patch.  It is *not* part of the official 
unofficial patchkit maintained by Jordan Hubbard (jkh@whisker.lotus.ie)
and previously by Nate Williams.

If you apply this patch you need your own backout plan.  Further you can
expect with reasonable certainty that this patch or one like it will come
out through the official unofficial patchkit.

If you need it now and can't wait, though, use it.  As always, we are not
responsible for whatever this patch does or fails to do to your system.

PATCH:          ELIMINATE DUPLICATE STRCMP DEF WITH "options DIAGNOSTIC"
AUTHOR:         Karl Lehenbauer (karl@NeoSoft.com)
DESCRIPTION:
        /sys/ddb/db_command.c has a definition of strcmp in it that will
cause a duplicate symbol error if you build a kernel configured with
"options DIAGNOSTIC".  This patch comments out the superfluous strcmp.
(The system will pick up the one in sys/kern/kern_subr.c instead.)


*** /sys/ddb/db_command.c.pre-neosoft	Wed Feb 17 23:56:35 1993
--- /sys/ddb/db_command.c	Wed Feb 10 23:58:45 1993
***************
*** 516,521 ****
--- 516,522 ----
  	db_printf("%#n\n", retval);
  }
  
+ /*** karl@neosoft.com ***
  int
  strcmp(s1, s2)
  	register const char *s1, *s2;
***************
*** 525,530 ****
--- 526,532 ----
  			return (0);
  	return (*(unsigned char *)s1 - *(unsigned char *)--s2);
  }
+ *** */
  
  		
  
-- 
-- Email info@NeoSoft.com for info on getting interactive Internet access.
"I didn't have time to write a short letter, so I wrote a long one instead."
-- Twain