Subject: lib/28680: new function w/weak alias "getdevmajor" requires updating namespace.h
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <paul@Plectere.com>
List: netbsd-bugs
Date: 12/16/2004 13:18:00
>Number: 28680
>Category: lib
>Synopsis: new function "getdevmajor" breaks builds
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 16 13:18:00 +0000 2004
>Originator: Paul Shupak
>Release: NetBSD 2.99.11
>Organization:
>Environment:
System: NetBSD cobalt 2.99.11 NetBSD 2.99.11 (COBALT-$Revision: 1.4 $) #791: Sat Dec 11 22:31:29 PST 2004 paul@svcs:/sys/arch/i386/compile/COBALT i386
Architecture: i386
Machine: i386
>Description:
The new function "getdevmajor()" was not added to namespace.h, so
any references to it are undefined.
>How-To-Repeat:
Build this morning's -current tree. Or just check "nm getdevmajor.o".
>Fix:
Patch below:
Index: namespace.h
===================================================================
RCS file: /cvsroot/src/lib/libc/include/namespace.h,v
retrieving revision 1.95
diff -u -r1.95 namespace.h
--- namespace.h 5 Oct 2004 04:45:54 -0000 1.95
+++ namespace.h 16 Dec 2004 13:11:12 -0000
@@ -214,6 +214,7 @@
#define getaddrinfo _getaddrinfo
#define getbsize _getbsize
#define getcwd _getcwd
+#define getdevmajor _getdevmajor
#define getdiskbyname _getdiskbyname
#define getdomainname _getdomainname
#define getfsent _getfsent