Bug 47699 - java/jdk12 no longer compiles under 5.0-RELEASE
Summary: java/jdk12 no longer compiles under 5.0-RELEASE
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-31 02:50 UTC by Greg Lehey
Modified: 2003-02-20 18:23 UTC (History)
0 users

See Also:


Attachments
file.diff (363 bytes, patch)
2003-01-31 02:50 UTC, Greg Lehey
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Lehey 2003-01-31 02:50:18 UTC
	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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2003-02-03 14:03:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->glewis

Over to maintainer.
Comment 2 Greg Lewis freebsd_committer freebsd_triage 2003-02-20 18:22:36 UTC
State Changed
From-To: open->closed

Committed a slightly modified version, thanks!