>Description:
emulators/bochs 1.3_1,1 doesn't compile on -current. It stops with
the following error:
+ -c -O -pipe -march=pentiumpro -fno-rtti -fno-exceptions -fomit-frame-pointer -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs cdrom.cc -o cdrom.o
In file included from cdrom.cc:76:
/usr/include/sys/disklabel.h:186: `lp' was not declared in this scope
/usr/include/sys/disklabel.h:187: syntax error before `*'
gmake[1]: *** [cdrom.o] Error 1
gmake[1]: Leaving directory `/usr/ports/emulators/bochs/work/bochs-1.3/iodev'
gmake: *** [iodev/libiodev.a] Error 2
*** Error code 2
>How-To-Repeat:
cd /usr/ports/emulators/bochs && make
>Fix:
--- iodev.old/cdrom.cc Tue Feb 26 12:04:44 2002
+++ iodev/cdrom.cc Tue Feb 26 12:01:19 2002
@@ -73,12 +73,15 @@
#include <sys/file.h>
#include <sys/cdio.h>
#include <sys/ioctl.h>
+#if defined(__OpenBSD__)
#include <sys/disklabel.h>
+#endif
// XXX
#define BX_CD_FRAMESIZE 2048
#define CD_FRAMESIZE 2048
#endif
+
#ifdef WIN32
#include <windows.h>
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message