Subject: kern/27031: Build failure if DKWEDGE_AUTODISCOVER is not defined
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jmmv@menta.net>
List: netbsd-bugs
Date: 09/25/2004 17:38:16
>Number: 27031
>Category: kern
>Synopsis: Build failure if DKWEDGE_AUTODISCOVER is not defined
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 25 15:39:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 2.0G
>Organization:
Julio M. Merino Vidal <jmmv@menta.net>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/
>Environment:
System: NetBSD dawn.local 2.0G NetBSD 2.0G (DAWN) #2: Fri Sep 24 11:07:32 CEST 2004 jmmv@dawn.local:/var/build/obj/usr/src/sys/arch/i386/compile/DAWN i386
Architecture: i386
Machine: i386
>Description:
A kernel that does not define the DKWEDGE_AUTODISCOVER option does
not build. When the build reaches the sys/dev/dk.c file, I get:
# compile DAWN/dk.o
/var/build/obj/usr/src/tooldir.NetBSD-2.0G-i386/bin/i386--netbsdelf-gcc -ffreestanding -g -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DCRYPTO_MD_DES_ENC -DCRYPTO_MD_DES_CBC -DCRYPTO_MD_BF_ENC -DCRYPTO_MD_BF_CBC -DDEBUG -DVT100_DEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /usr/src/sys/dev/dk.c
/usr/src/sys/dev/dk.c:1054: warning: `dkwedge_discover_gpt' defined but not used
I tried to add some #ifdef's in the code to disable that function,
but it resulted in more breakage:
/usr/src/sys/dev/dk.c:610: warning: `dkwedge_read' defined but not used
/usr/src/sys/dev/dk.c:1005: warning: `gpt_ptype_guid_to_str' defined but not used
/usr/src/sys/dev/dk.c:1042: warning: `gpt_verify_header_crc' defined but not used
>How-To-Repeat:
Build a kernel that does not define DKWEDGE_AUTODISCOVER.
GENERIC should be enough to reproduce the problem.
>Fix:
Add some more #ifdef's where appropiate?
>Release-Note:
>Audit-Trail:
>Unformatted: