JDK-6644659 : Error in default target of make/javax/crypto in OpenJDK build
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Priority: P4
  • Affected Version: 7
  • OS: generic
  • CPU: generic
  • Submit Date: 2007-12-21
  • Updated Date: 2011-05-18
  • Resolved Date: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 7
7 b26Fixed
Description
When building with OPENJDK=true, running 'gnumake' in make/javax/crypto causes an error:

===
>gnumake
>>>Making images @ Thu Dec 20 18:32:47 PST 2007 ...
gnumake: *** No rule to make target `sanity-images', needed by `images'.  Stop.
===

That seems to be because in some of the #ifdef branches the default target is not defined correctly.

This problem does not affect the ability to do a full build of the JDK in OpenJDK mode because when the make/javax Makefile enters the crypto subdirectory it executes the 'all' and 'build' targets and does not rely on the default target.

Comments
EVALUATION Shouldn't be including Release.gmk until after the first rule. This is pulled in from Defs-jce.gmk, so move the "include Defs-jce.gmk" to after the "all" target, and things work fine.
2008-01-05

WORK AROUND Run 'gnumake all' instead.
2007-12-21