United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7159041 Fix for 7152519 causing build breakage.
JDK-7159041 : Fix for 7152519 causing build breakage.

Details
Type:
Bug
Submit Date:
2012-04-04
Status:
Closed
Updated Date:
2013-08-27
Project Name:
JDK
Resolved Date:
2012-05-14
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

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
                                     
2012-04-05



Hardware and Software, Engineered to Work Together