From erik@smluc.org  Sun Jul 13 08:37:03 2003
Return-Path: <erik@smluc.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 14B7E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 13 Jul 2003 08:37:03 -0700 (PDT)
Received: from ohsmtp02.ogw.rr.com (ohsmtp02.ogw.rr.com [65.24.7.37])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0D2A743F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 13 Jul 2003 08:37:02 -0700 (PDT)
	(envelope-from erik@smluc.org)
Received: from xarx.localdomain (cpe-066-061-038-083.midsouth.rr.com [66.61.38.83])
	by ohsmtp02.ogw.rr.com (8.12.5/8.12.2) with ESMTP id h6DFatr0029525;
	Sun, 13 Jul 2003 11:37:01 -0400 (EDT)
Received: from xarx.localdomain (localhost.localdomain [127.0.0.1])
	by xarx.localdomain (8.12.8/8.12.8) with ESMTP id h6DFasDj026180;
	Sun, 13 Jul 2003 10:36:55 -0500
Received: from localhost (localhost [[UNIX: localhost]])
	by xarx.localdomain (8.12.8/8.12.8/Submit) id h6DFasD7026178;
	Sun, 13 Jul 2003 10:36:54 -0500
Message-Id: <200307131536.h6DFasD7026178@xarx.localdomain>
Date: Sun, 13 Jul 2003 10:36:54 -0500
From: Erik Greenwald <erik@smluc.org>
Reply-To: Erik Greenwald <erik@smluc.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: erik@math.smsu.edu
Subject: emulators/bochs doesn't compile on -current (patch included)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54440
>Category:       ports
>Synopsis:       emulators/bochs doesn't compile on -current (patch included)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    anholt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 13 08:40:05 PDT 2003
>Closed-Date:    Tue Jul 15 12:12:17 PDT 2003
>Last-Modified:  Tue Jul 15 12:12:17 PDT 2003
>Originator:     Erik Greenwald
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD fenris 5.1-CURRENT FreeBSD 5.1-CURRENT #8: Sat Jul 12 22:57:38 CDT 2003 root@fenris:/usr/src/sys/i386/compile/FENRIS i386


>Description:


===>  Building for bochs-2.0.2,1
cd iodev && \
gmake  libiodev.a
gmake[1]: Entering directory `/usr/ports/emulators/bochs/work/bochs-2.0.2/iodev'
gmake[1]: `libiodev.a' is up to date.
gmake[1]: Leaving directory `/usr/ports/emulators/bochs/work/bochs-2.0.2/iodev'
echo done
done
cd cpu && \
gmake  libcpu.a
gmake[1]: Entering directory `/usr/ports/emulators/bochs/work/bochs-2.0.2/cpu'
c++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -O -pipe -march=athlon -fno-rtti -fno-exceptions -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   fetchdecode.cc -o fetchdecode.o
gmake[1]: Leaving directory `/usr/ports/emulators/bochs/work/bochs-2.0.2/cpu'
fetchdecode.cc:165: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:165: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:170: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:170: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:175: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:175: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:180: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:180: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:185: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:185: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:190: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:190: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:195: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:195: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:200: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:200: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:205: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:205: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:210: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
fetchdecode.cc:210: error: brace-enclosed initializer used to initialize `void 
   (*)(bxInstruction_c*)'
gmake[1]: *** [fetchdecode.o] Error 1
gmake: *** [cpu/libcpu.a] Error 2
*** Error code 2

Stop in /usr/ports/emulators/bochs.

>How-To-Repeat:

try building with new -current

>Fix:

	

--- bochs.patch begins here ---
diff -Nurb emulators/bochs.orig/files/patch-cpu::fetchdecode.cc emulators/bochs/files/patch-cpu::fetchdecode.cc
--- emulators/bochs.orig/files/patch-cpu::fetchdecode.cc	Wed Dec 31 18:00:00 1969
+++ emulators/bochs/files/patch-cpu::fetchdecode.cc	Sun Jul 13 10:10:56 2003
@@ -0,0 +1,76 @@
+--- cpu/fetchdecode.cc.orig	Wed Jan 22 07:18:30 2003
++++ cpu/fetchdecode.cc	Sun Jul 13 10:09:27 2003
+@@ -160,53 +160,53 @@
+ } BxOpcodeInfo_t;
+ 
+ static BxOpcodeInfo_t opcodesADD_EwIw[2] = {
+-  { 0,  { &BX_CPU_C::ADD_EEwIw } },
+-  { 0,  { &BX_CPU_C::ADD_EGwIw } }
++  { 0, &BX_CPU_C::ADD_EEwIw },
++  { 0, &BX_CPU_C::ADD_EGwIw }
+   };
+ 
+ static BxOpcodeInfo_t opcodesADD_EdId[2] = {
+-  { 0,  { &BX_CPU_C::ADD_EEdId } },
+-  { 0,  { &BX_CPU_C::ADD_EGdId } }
++  { 0, &BX_CPU_C::ADD_EEdId },
++  { 0, &BX_CPU_C::ADD_EGdId }
+   };
+ 
+ static BxOpcodeInfo_t opcodesADD_GwEw[2] = {
+-  { 0,  { &BX_CPU_C::ADD_GwEEw } },
+-  { 0,  { &BX_CPU_C::ADD_GwEGw } }
++  { 0, &BX_CPU_C::ADD_GwEEw },
++  { 0, &BX_CPU_C::ADD_GwEGw }
+   };
+ 
+ static BxOpcodeInfo_t opcodesADD_GdEd[2] = {
+-  { 0,  { &BX_CPU_C::ADD_GdEEd } },
+-  { 0,  { &BX_CPU_C::ADD_GdEGd } }
++  { 0, &BX_CPU_C::ADD_GdEEd },
++  { 0, &BX_CPU_C::ADD_GdEGd }
+   };
+ 
+ static BxOpcodeInfo_t opcodesMOV_GbEb[2] = {
+-  { 0,  { &BX_CPU_C::MOV_GbEEb } },
+-  { 0,  { &BX_CPU_C::MOV_GbEGb } }
++  { 0, &BX_CPU_C::MOV_GbEEb },
++  { 0, &BX_CPU_C::MOV_GbEGb }
+   };
+ 
+ static BxOpcodeInfo_t opcodesMOV_GwEw[2] = {
+-  { 0,  { &BX_CPU_C::MOV_GwEEw } },
+-  { 0,  { &BX_CPU_C::MOV_GwEGw } }
++  { 0, &BX_CPU_C::MOV_GwEEw },
++  { 0, &BX_CPU_C::MOV_GwEGw }
+   };
+ 
+ static BxOpcodeInfo_t opcodesMOV_GdEd[2] = {
+-  { 0,  { &BX_CPU_C::MOV_GdEEd } },
+-  { 0,  { &BX_CPU_C::MOV_GdEGd } }
++  { 0, &BX_CPU_C::MOV_GdEEd },
++  { 0, &BX_CPU_C::MOV_GdEGd }
+   };
+ 
+ static BxOpcodeInfo_t opcodesMOV_EbGb[2] = {
+-  { 0,  { &BX_CPU_C::MOV_EEbGb } },
+-  { 0,  { &BX_CPU_C::MOV_EGbGb } }
++  { 0, &BX_CPU_C::MOV_EEbGb },
++  { 0, &BX_CPU_C::MOV_EGbGb }
+   };
+ 
+ static BxOpcodeInfo_t opcodesMOV_EwGw[2] = {
+-  { 0,  { &BX_CPU_C::MOV_EEwGw } },
+-  { 0,  { &BX_CPU_C::MOV_EGwGw } }
++  { 0, &BX_CPU_C::MOV_EEwGw },
++  { 0, &BX_CPU_C::MOV_EGwGw }
+   };
+ 
+ static BxOpcodeInfo_t opcodesMOV_EdGd[2] = {
+-  { 0,  { &BX_CPU_C::MOV_EEdGd } },
+-  { 0,  { &BX_CPU_C::MOV_EGdGd } }
++  { 0, &BX_CPU_C::MOV_EEdGd },
++  { 0, &BX_CPU_C::MOV_EGdGd }
+   };
+ 
+ /* ********** */
--- bochs.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->anholt 
Responsible-Changed-By: anholt 
Responsible-Changed-When: Mon Jul 14 15:00:44 PDT 2003 
Responsible-Changed-Why:  
Grab this as maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54440 
State-Changed-From-To: open->closed 
State-Changed-By: anholt 
State-Changed-When: Tue Jul 15 12:12:06 PDT 2003 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54440 
>Unformatted:
