Opened 15 years ago
Closed 12 years ago
#20696 closed defect (wontfix)
openjdk6: 'X_ShmAttach' undeclared (first use in this function)
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | landonf (Landon Fuller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | Cc: | drowe@…, pierreyves.aillet@… | |
Port: | openjdk |
Description
openjdk6 doesn't seem to build, on Leopard on Intel at least:
../../../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
This was reported on macports-users by myself and by David Rowe.
Change History (4)
comment:1 Changed 15 years ago by pierreyves.aillet@…
Cc: | pierreyves.aillet@… added |
---|
comment:2 Changed 15 years ago by migmit@…
Possible fix (from http://lists.macosforge.org/pipermail/macports-users/2009-August/016234.html):
So - in the spirit of 'suck it and see' I edited the one occurrence of X_ShmAttach in awt_GraphicsEnv.c (line 966) to XShmAttach - and, Geronimo!, openjdk6 now builds.
HOWEVER - I have not yet had time to try out the resulting code to see if it runs correctly. I presume some-one some-where has a validation suite for Java - but I guess it would have to try out the awt functions as that is the code I altered.
comment:3 Changed 14 years ago by gpoletto@…
Hi,
Same problem But the workaround may be wrong, i don't know what XShmAttach refers to. Seems that X_ShmAttach is a macro that equals 1, so my suggested quick fix is to replace it by 1 A cleaner fix may be the need to include X11/extensions/shmproto.h (because seems to be defined here) and add a dependancy to the right library in the build system (if needed)
comment:4 Changed 12 years ago by landonf (Landon Fuller)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
openjdk6 is no longer supported and has been removed from the tree.
Cc Me!