Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2003 13:12:43 +1030 (CST)
From:      "Greg 'groggy' Lehey" <grog@lemis.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/47699: java/jdk12 no longer compiles under 5.0-RELEASE
Message-ID:  <20030131024243.163F151986@wantadilla.lemis.com>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030131024243.163F151986>