NetBSD Problem Report #1518
From gnats Tue Sep 26 09:11:31 1995
Received: from orpheus.amdahl.com (orpheus.amdahl.com [129.212.11.6]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with SMTP id JAA14043 for <gnats-bugs@gnats.netbsd.org>; Tue, 26 Sep 1995 09:11:31 -0400
Message-Id: <m0sxZoI-0000H6C@amdahl.uts.amdahl.com>
Date: Tue, 26 Sep 1995 06:12:33 -0700 (PDT)
From: agc@uts.amdahl.com (Alistair G. Crooks)
To: gnats-bugs@gnats.netbsd.org
Subject: seagate.c references memcmp.
>Number: 1518
>Category: kern
>Synopsis: seagate.c references memcmp, which the linker can't resolve
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 26 09:20:01 +0000 1995
>Closed-Date: Tue Sep 26 22:56:55 +0000 1995
>Last-Modified: Tue Sep 26 22:57:34 +0000 1995
>Originator: Alistair G. Crooks
>Release: NetBSD-current 23rd September 1995
>Organization:
Amdahl Corporation
>Environment:
NetBSD/i386 1.0A, 23rd September 1995 sources
System: NetBSD rumpy.osg.uk.amdahl.com 1.0A NetBSD 1.0A (RUMPY) #1: Mon Sep 25 11:41:27 BST 1995 agc@rumpy.osg.uk.amdahl.com:/usr/src/sys/arch/i386/compile/RUMPY i386
>Description:
The seagate driver includes a reference to memcmp, which is
not resolved by the linker.
>How-To-Repeat:
Make a kernel with the seagate driver in it. The linker fails
with `memcmp' not found.
>Fix:
More a workaround really - it would be better to replace memcmp
by bcmp.
*** /usr/src/sys/dev/isa/seagate.c 1995/09/25 10:40:45 1.1
--- /usr/src/sys/dev/isa/seagate.c 1995/09/26 13:16:16
***************
*** 89,94 ****
--- 89,98 ----
#define SCB_TABLE_SIZE 8 /* start with 8 scb entries in table */
#define BLOCK_SIZE 512 /* size of READ/WRITE areas on SCSI card */
+ #ifndef memcmp
+ #define memcmp bcmp
+ #endif
+
/*
* defining SEA_BLINDTRANSFER will make DATA IN and DATA OUT to be done with
* blind transfers, i.e. no check is done for scsi phase changes. This will
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: thorpej
State-Changed-When: Tue Sep 26 15:56:55 PDT 1995
State-Changed-Why:
Fixed. Replaced memcmp with bcmp.
>Unformatted:
To: gnats-bugs@gnats.netbsd.org
Subject: /sys/dev/isa/seagate.c references memcmp
From: agc
Reply-To: agc
X-send-pr-version: 3.95
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.