Subject: I can't figure out why the preprocessor isn't including dkwedge_bsdlabel.c
To: None <current-users@netbsd.org>
From: Hisashi T Fujinaka <htodd@twofifty.com>
List: current-users
Date: 03/01/2007 17:58:03
I'm not sure what's going on. It looks right to me.

#   compile  dkscan_bsdlabel/dkscan_bsdlabel.o
/usr/src/obj.i386/tooldir.NetBSD-4.99.13-i386/bin/i386--netbsdelf-gcc -O2 -I ../../sys/dev/dkwedge  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter  -Werror    -nostdinc -isystem /usr/include  -c    /usr/src/sbin/dkscan_bsdlabel/dkscan_bsdlabel.c
/usr/src/sbin/dkscan_bsdlabel/dkscan_bsdlabel.c:51:30: error: dkwedge_bsdlabel.c: No such file or directory
/usr/src/sbin/dkscan_bsdlabel/dkscan_bsdlabel.c: In function 'main':
/usr/src/sbin/dkscan_bsdlabel/dkscan_bsdlabel.c:58: error: 'PATH_MAX' undeclared (first use in this function)
/usr/src/sbin/dkscan_bsdlabel/dkscan_bsdlabel.c:58: error: (Each undeclared identifier is reported only once
/usr/src/sbin/dkscan_bsdlabel/dkscan_bsdlabel.c:58: error: for each function it appears in.)
cc1: warnings being treated as errors
/usr/src/sbin/dkscan_bsdlabel/dkscan_bsdlabel.c:89: warning: implicit declaration of function 'dkwedge_discover_bsdlabel'
/usr/src/sbin/dkscan_bsdlabel/dkscan_bsdlabel.c:58: warning: unused variable 'buf'
*** Error code 1

Stop.
make: stopped in /usr/src/sbin/dkscan_bsdlabel
*** Error code 1

Stop.
make: stopped in /usr/src/sbin/dkscan_bsdlabel

-- 
Hisashi T Fujinaka - htodd@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte