Subject: xosview pkg building woe
To: None <current-users@NetBSD.ORG>
From: Ken Nakata <kenn@synap.ne.jp>
List: current-users
Date: 05/18/1998 01:26:48
Hi,

I'm having trouble building xosview 1.5.1 package.  I'm trying to
rebuild it because my old binary doesn't like my UVM'ized kernel.  I
get the following error:

$ make
>> Checksum OK for xosview-1.5.1.tar.gz.
===>  Building for xosview-1.5.1
cd ./netbsd && make
c++ -O -O -O4 -pipe -I/usr/X11R6/include  -I. -I./netbsd  -DXOSVIEW_NETBSD=1 -DHAVE_SWAPCTL=1 -DHAVE_USLEEP=1 -I.. -D_CPU_MACHINE_ -DUVM -c kernel.cc -o kernel.o
In file included from /usr/include/sys/disklabel.h:54,
                 from kernel.cc:29:
/usr/include/machine/disklabel.h:104: semicolon missing after declaration of `drvr_map'
kernel.cc: In function `void NetBSDGetSwapCtlInfo(int *, int *)':
kernel.cc:282: warning: implicit declaration of function `int swapctl(...)'
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

c++ is complaining about "__attribute__ ((pack))" after the
declaration of struct drvr_map.  Having read other headers that
override __attribute__ definition, I think this should be handled
internally by G++ but it apparently isn't being handled.

What should I do next?  This is on mac68k current kernel as of May
12th, and the rest of the system as of a couple of days earlier.

Thanks,

Ken