From llwang@leland.infor.org  Wed May 15 13:36:58 2002
Return-Path: <llwang@leland.infor.org>
Received: from leland.infor.org (IP086.dialup.ntu.edu.tw [140.112.6.86])
	by hub.freebsd.org (Postfix) with ESMTP id 7350437B400
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 May 2002 13:36:46 -0700 (PDT)
Received: from leland.infor.org (localhost [127.0.0.1])
	by leland.infor.org (8.12.3/8.12.3) with ESMTP id g4FKZkif007046
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 May 2002 04:35:46 +0800 (CST)
	(envelope-from llwang@leland.infor.org)
Received: (from llwang@localhost)
	by leland.infor.org (8.12.3/8.12.3/Submit) id g4FKZeTi007045;
	Thu, 16 May 2002 04:35:40 +0800 (CST)
Message-Id: <200205152035.g4FKZeTi007045@leland.infor.org>
Date: Thu, 16 May 2002 04:35:40 +0800 (CST)
From: Leland Wang <llwang@infor.org>
Reply-To: Leland Wang <llwang@infor.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: emulators/bochs does not build
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38124
>Category:       ports
>Synopsis:       emulators/bochs does not build
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 15 13:40:01 PDT 2002
>Closed-Date:    Tue Jun 18 18:07:54 PDT 2002
>Last-Modified:  Tue Jun 18 18:07:54 PDT 2002
>Originator:     Leland Wang
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
National Taiwan University
>Environment:
System: FreeBSD leland.infor.org 4.5-STABLE FreeBSD 4.5-STABLE #0: Sun Apr 21 07:09:29 CST 2002 llwang@leland.infor.org:/home/mp3/obj/usr/src/sys/LELAND i386


	
>Description:
This is actually bug #545176 in bochs' sourceforge bug tracking system.
Line 1177 of main.cc must be patched so that it will build with certain
configuration.
	
>How-To-Repeat:
cd /usr/ports/emulators/bochs; make WITH_BOCHS_CPU_LEVEL=6 build
	
>Fix:
diff -urN bochs.orig/files/patch-main.cc bochs/files/patch-main.cc
--- bochs.orig/files/patch-main.cc	Thu Jan  1 08:00:00 1970
+++ bochs/files/patch-main.cc	Thu May 16 04:27:47 2002
@@ -0,0 +1,11 @@
+--- main.cc.orig	Thu May 16 04:26:43 2002
++++ main.cc	Thu May 16 04:26:55 2002
+@@ -1174,7 +1174,7 @@
+   BX_MEM(0)->load_ROM(bx_options.vgarom.Opath->getptr (), 0xc0000);
+   BX_CPU(0)->init (BX_MEM(0));
+ #if BX_SUPPORT_APIC
+-  BX_CPU(0)->local_apic.set_id (i);
++  BX_CPU(0)->local_apic.set_id (0);
+ #endif
+   BX_CPU(0)->reset(BX_RESET_HARDWARE);
+ #else

	


>Release-Note:
>Audit-Trail:

From: Hendrik Scholz <hscholz@raisdorf.net>
To: freebsd-gnats-submit@freebsd.org
Cc: llwang@infor.org
Subject: Re: ports/38124:emulators/bochs does not build
Date: Wed, 22 May 2002 23:39:21 +1000

 Hi!
 
 I didn't use your fix but I have another problem on my -current box.
 As reported in ports/35328 bochs itself does not build.
 I have to remove the include mentioned in the pr.
 Now it recompiles fine without problems.
 Does anyone else experience the same problems or is this problem
 limited to my box ?
 
 Hendrik
 
 -- 
 Hendrik Scholz - <hscholz@raisdorf.net> - http://raisdorf.net/
 
 drag me, drop me - treat me like an object 
State-Changed-From-To: open->closed 
State-Changed-By: pat 
State-Changed-When: Tue Jun 18 18:07:26 PDT 2002 
State-Changed-Why:  
Fix committed, Thanks! 

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