Subject: errno conflict in kdump
To: None <jdolecek@netbsd.org>
From: None <itojun@iijlab.net>
List: tech-userlevel
Date: 12/20/2000 22:47:56
>Module Name:	basesrc
>Committed By:	jdolecek
>Date:		Sun Dec 17 16:09:41 UTC 2000
>
>Modified Files:
>	basesrc/usr.bin/kdump: kdump.c
>	basesrc/usr.bin/ktrace: ktrace.h subr.c
>
>Log Message:
>add support for KTR_USER records

	usr.bin/kdump does not compile for me, due to the use of "errno"
	as member name.  in /usr/include/errno.h "errno" is #defined to be
	a funcion call.

itojun



cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror   -I/usr/home/itojun/NetBSD/src/usr.bin/kdump/../ktrace -I/usr/home/itojun/NetBSD/src/usr.bin/kdump/../../sys -c /usr/home/itojun/NetBSD/src/usr.bin/kdump/kdump.c
cc1: warnings being treated as errors
In file included from /usr/home/itojun/NetBSD/src/usr.bin/kdump/kdump.c:69:
/usr/home/itojun/NetBSD/src/usr.bin/kdump/setemul.h:80: warning: function declaration isn't a prototype
/usr/home/itojun/NetBSD/src/usr.bin/kdump/setemul.h:80: field `__errno' declared as a function
/usr/home/itojun/NetBSD/src/usr.bin/kdump/kdump.c: In function `eprint':
/usr/home/itojun/NetBSD/src/usr.bin/kdump/kdump.c:413: syntax error before `('
/usr/home/itojun/NetBSD/src/usr.bin/kdump/kdump.c:421: syntax error before `('
/usr/home/itojun/NetBSD/src/usr.bin/kdump/kdump.c: At top level:
/usr/home/itojun/NetBSD/src/usr.bin/kdump/kdump.c:430: syntax error before `:'
/usr/home/itojun/NetBSD/src/usr.bin/kdump/kdump.c:431: syntax error before `{'
*** Error code 1