A different openjdk6 install problem
David Rowe
drowe at roden.myzen.co.uk
Tue Aug 18 17:21:58 PDT 2009
Brandon Allbery wrote:
> . . . .
>
> I would next check the output of cpp (given the same command line as
> passed to gcc); off the top of my head, I'm wondering if "majorEvent"
> was #define-d at some point, leading to parser confusion. (Note the
> first error is on line 171, the definition of
> xShmCompletionEvent.majorEvent.)
I think that we are probably chasing the wrong hare here.
The above error reports came from my attempted compilation of
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.c
which had been crashing out with a different set of errors, namely:
> ../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c: In function
> 'J2DXErrHandler':
> ../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error:
> 'X_ShmAttach' undeclared (first use in this function)
> ../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error:
> (Each undeclared identifier is reported only once
> ../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error: for
> each function it appears in.)
I had thought it was possible that a suitable declaration of
'X_ShmAttach' could be supplied by #including
<X11/extensions/shmproto.h> - so I inserted an appropriate #include
statement near the beginning of awt_GraphicsEnv.c
We then got the weird error reports that you list above.
I think that that indicates that including <X11/extensions/shmproto.h>
was a wrong solution to the original problem - so trying to analyse
exactly why it is wrong is not going to get us anywhere.
I suggest it is more useful to go back to the un-modified code and try
to understand why that doesn't work.
I have just repeated the original attempt:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<
bash-3.2# port clean --all openjdk6
---> Cleaning openjdk6
bash-3.2# port sync
bash-3.2# port install openjdk6
---> Fetching openjdk6
---> Attempting to fetch openjdk-6-src-b16-24_apr_2009.tar.gz from
http://arn.se.distfiles.macports.org/openjdk6
---> Verifying checksum(s) for openjdk6
---> Extracting openjdk6
---> Applying patches to openjdk6
---> Configuring openjdk6
---> Building openjdk6
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/./"
&& make all ALT_BOOTDIR="/opt/local/share/java/openjdk6_bootstrap"
ALT_BINARY_PLUGS_PATH="/opt/local/share/java/icedtea6-plugs/jre/lib/rt-closed.jar"
ANT_HOME="/opt/local/share/java/apache-ant"
ALT_FREETYPE_HEADERS_PATH="/opt/local/include"
ALT_FREETYPE_LIB_PATH="/opt/local/lib"
ALT_CUPS_HEADERS_PATH="/usr/include" ALT_MOTIF_DIR="/opt/local"
ALT_X11_PATH="/opt/local" ALT_DEVTOOLS_PATH=/usr
ALT_CACERTS_FILE=/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts
NO_DOCS=true HOTSPOT_BUILD_JOBS=1 " returned error 2
Command output: In file included from
../../../src/solaris/native/sun/awt/awt_p.h:45,
from
../../../src/solaris/native/sun/awt/awt_InputMethod.c:43:
/opt/local/include/X11/IntrinsicP.h:207:1: warning: this is the location
of the previous definition
../../../src/solaris/native/sun/awt/awt_InputMethod.c: In function
'createStatusWindow':
../../../src/solaris/native/sun/awt/awt_InputMethod.c:687: warning:
pointer targets in passing argument 6 of 'XGetGeometry' differ in signedness
../../../src/solaris/native/sun/awt/awt_InputMethod.c:687: warning:
pointer targets in passing argument 7 of 'XGetGeometry' differ in signedness
../../../src/solaris/native/sun/awt/awt_InputMethod.c:687: warning:
pointer targets in passing argument 8 of 'XGetGeometry' differ in signedness
../../../src/solaris/native/sun/awt/awt_InputMethod.c:687: warning:
pointer targets in passing argument 9 of 'XGetGeometry' differ in signedness
../../../src/solaris/native/sun/awt/awt_InputMethod.c: In function
'createXIC':
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1036: warning:
comparison between pointer and integer
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1216: warning:
assignment from incompatible pointer type
../../../src/solaris/native/sun/awt/awt_InputMethod.c: In function
'Java_sun_awt_X11_XInputMethod_openXIMNative':
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1517: warning:
cast to pointer from integer of different size
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1527: warning:
passing argument 5 of 'XRegisterIMInstantiateCallback' from incompatible
pointer type
../../../src/solaris/native/sun/awt/awt_InputMethod.c: In function
'Java_sun_awt_X11_XInputMethod_createXICNative':
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1562: warning:
comparison between pointer and integer
../../../src/solaris/native/sun/awt/awt_InputMethod.c: In function
'Java_sun_awt_X11_XInputMethod_setXICFocusNative':
../../../src/solaris/native/sun/awt/awt_InputMethod.c:1712: warning:
comparison between pointer and integer
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c: In function
'makeDefaultConfig':
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:291: warning:
format '%x' expects type 'unsigned int *', but argument 3 has type
'VisualID *'
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c: In function
'J2DXErrHandler':
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error:
'X_ShmAttach' undeclared (first use in this function)
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error: (Each
undeclared identifier is reported only once
../../../src/solaris/native/sun/awt/awt_GraphicsEnv.c:966: error: for
each function it appears in.)
make[4]: ***
[/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_openjdk6/work/build/bsd-i586/tmp/sun/sun.awt.X11/xawt/obj/awt_GraphicsEnv.o]
Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [library_parallel_compile] Error 2
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [jdk-build] Error 2
Error: Status 1 encountered during processing.
bash-3.2#
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
We still have the original problem that in awt_GraphicsEnv.c,
'X_ShmAttach' is undeclared in line 966.
So where should we get a declaration of 'X_ShmAttach' from?
I have just used the MacOS search facility to look for the text
'X_ShmAttach' and it is mentioned in the following files:
/opt/local/include/X11/extensions/shmproto.h
[my original guess - but probably
not the right file]
/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/X11/extensions/shmstr.h
[but 'X_ShmAttach' only appears in a comment - it isn't defined
here]
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/X11/extensions/shmstr.h
[I am running 10.5]
/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/X11/extensions/XShm.h
[possible?]
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/X11/extensions/XShm.h
[I am running 10.5]
So do you think that awt_GraphicsEnv.c should contain an extra line
#including
/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/X11/extensions/XShm.h ?
Does MacPorts use files in the /Developer tree?
David Rowe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090819/65f2a4c4/attachment.html>
More information about the macports-users
mailing list