JDK-7159041 : Fix for 7152519 causing build breakage.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-04-04
  • Updated: 2013-08-27
  • Resolved: 2012-05-14
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.
JDK 7 JDK 8
7u40Fixed 8 b36Fixed
Description
Since the fix for 
7152519: Dependency on non-POSIX header file <link.h> causes portability problem
 
we are getting build breakages. 
/usr/X11R6//include  -DINTERNAL_BUILD  -c -o
/tmp/jprt/P1/004108.jcg-integrator/source/build/linux-amd64/bootjdk/tmp/sun/sun.awt.X11/awt_xawt/obj64/OGLSurfaceData.o
../../../src/share/native/sun/java2d/opengl/OGLSurfaceData.c
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c: In function
'OGLFuncs_OpenLibrary':
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c:39: warning:
implicit declaration of function 'dlopen'
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c:39: error:
'RTLD_LAZY' undeclared (first use in this function)
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c:39: error: (Each
undeclared identifier is reported only once
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c:39: error: for
each function it appears in.)
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c:39: error:
'RTLD_LOCAL' undeclared (first use in this function)
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c:39: warning:
assignment makes pointer from integer without a cast
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c:39: warning:
implicit declaration of function 'dlsym'
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c:39: warning: cast
to pointer from integer of different size
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c:39: warning: cast
to pointer from integer of different size
../../../src/share/native/sun/java2d/opengl/OGLFuncs.c:39: warning:
implicit declaration of function 'dlclose'
make[6]: ***
[/tmp/jprt/P1/004108.jcg-integrator/source/build/linux-amd64/bootjdk/tmp/sun/sun.awt.X11/awt_xawt/obj64/OGLFuncs.o]
Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: Leaving directory
`/tmp/jprt/P1/004108.jcg-integrator/source/jdk/make/sun/xawt'
make[5]: *** [library_parallel_compile] Error 2 

Looks like the actual fix changed since it was originally reviewed and tested.

Comments
EVALUATION included dlfcn.h
05-04-2012