[MacPorts] #20696: openjdk6: 'X_ShmAttach' undeclared (first use in this function)
#20696: openjdk6: 'X_ShmAttach' undeclared (first use in this function) -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: landonf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: openjdk -------------------------------------+-------------------------------------- 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 [http://lists.macosforge.org/pipermail /macports-users/2009-August/016108.html by myself] and [http://lists.macosforge.org/pipermail/macports- users/2009-August/016137.html by David Rowe]. -- Ticket URL: <http://trac.macports.org/ticket/20696> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20696: openjdk6: 'X_ShmAttach' undeclared (first use in this function) -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: landonf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: openjdk -------------------------------------+-------------------------------------- Comment(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. ---- -- Ticket URL: <http://trac.macports.org/ticket/20696#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20696: openjdk6: 'X_ShmAttach' undeclared (first use in this function) -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: landonf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: openjdk -------------------------------------+-------------------------------------- Comment(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) -- Ticket URL: <http://trac.macports.org/ticket/20696#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20696: openjdk6: 'X_ShmAttach' undeclared (first use in this function) ---------------------------+----------------------- Reporter: ryandesign@… | Owner: landonf@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: wontfix | Keywords: Port: openjdk | ---------------------------+----------------------- Changes (by landonf@…): * status: new => closed * resolution: => wontfix Comment: openjdk6 is no longer supported and has been removed from the tree. -- Ticket URL: <https://trac.macports.org/ticket/20696#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts