JDK-6644659 : Error in default target of make/javax/crypto in OpenJDK build
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-12-21
  • Updated: 2011-05-18
  • Resolved: 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 Availability Release.

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

>>>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.

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.

WORK AROUND Run 'gnumake all' instead.