From owner-freebsd-ports-bugs Thu Jan 30 18:50:21 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 896CB37B437 for ; Thu, 30 Jan 2003 18:50:19 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C4B343FC3 for ; Thu, 30 Jan 2003 18:50:18 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0V2oINS073341 for ; Thu, 30 Jan 2003 18:50:18 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0V2oIed073340; Thu, 30 Jan 2003 18:50:18 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A96337B401 for ; Thu, 30 Jan 2003 18:42:47 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6DE843F43 for ; Thu, 30 Jan 2003 18:42:45 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 163F151986; Fri, 31 Jan 2003 13:12:43 +1030 (CST) Message-Id: <20030131024243.163F151986@wantadilla.lemis.com> Date: Fri, 31 Jan 2003 13:12:43 +1030 (CST) From: "Greg 'groggy' Lehey" Reply-To: "Greg 'groggy' Lehey" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/47699: java/jdk12 no longer compiles under 5.0-RELEASE Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47699 >Category: ports >Synopsis: java/jdk12 no longer compiles under 5.0-RELEASE >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 30 18:50:18 PST 2003 >Closed-Date: >Last-Modified: >Originator: Greg 'groggy' Lehey >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD wantadilla.lemis.com 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Sat Oct 26 11:16:38 CST 2002 grog@current.lemis.com:/usr/obj/src/FreeBSD/5-CURRENT-WANTADILLA/src/sys/WANTADILLA i386 Any system with gcc 3.x >Description: A build of jdk12 fails with the following errors: gcc -O -pipe -mcpu=pentiumpro -W -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-unused -Wno-parentheses -pipe -fPIC -Di386 -DHAVE_ALIGNED_LONGLONGS -DHAVE_ALIGNED_DOUBLES -DARCH='"i386"' -DRELEASE='"1.2.2"' -DFULL_VERSION='"jdk1.2.2-p11:root:2003/01/30-18:54"' -DHAVE_POLL -D_REENTRANT -I. -ICClassHeaders -I../../../../src/bsd/javavm/export -I../../../../src/share/javavm/export -I../../../../src/bsd/tools/hprof -I../../../../src/share/tools/hprof -I../../../../src/share/native/common -I../../../../src/bsd/native/common -I../../../../src/share/native/ -I../../../../src/bsd/native/ -c -o obj/i386/hprof_method.o ../../../../src/share/tools/hprof/hprof_method.c ../../../../src/share/tools/hprof/hprof_method.c: In function `hprof_method_exit_event': ../../../../src/share/tools/hprof/hprof_method.c:249: `total_time' undeclared (first use in this function) ../../../../src/share/tools/hprof/hprof_method.c:249: (Each undeclared identifier is reported only once ../../../../src/share/tools/hprof/hprof_method.c:249: for each function it appears in.) gmake[3]: *** [obj/i386/hprof_method.o] Error 1 This is due to a bug in preprocessor conditionals. >How-To-Repeat: cd /usr/ports/java/jdk12 make install (let it fail, try to work out from the error messages which package you need to fetch manually. Iterate until you get it right) make install >Fix: --- hprof_method.c~ Thu Jan 30 18:47:57 2003 +++ hprof_method.c Fri Jan 31 13:06:54 2003 @@ -123,7 +123,7 @@ int stack_depth; int trace_depth; unsigned int hash = 0; -#if defined __GNUC__ && (__GNUC__ == 2 && __GNUC_MINOR__ >= 8) +#if defined __GNUC__ && (__GNUC__ == 3 || __GNUC_MINOR__ > 7) jlong total_time = 0; #endif int i; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message