[MacPorts] #20956: openjdk6: build fails on Snow Leopard with error during "corba-build"

MacPorts noreply at macports.org
Fri Nov 19 02:18:13 PST 2010


#20956: openjdk6: build fails on Snow Leopard with error during "corba-build"
------------------------------------+---------------------------------------
 Reporter:  dmz@…                   |       Owner:  landonf@…           
     Type:  defect                  |      Status:  assigned            
 Priority:  Normal                  |   Milestone:                      
Component:  ports                   |     Version:  1.8.0               
 Keywords:                          |        Port:  openjdk6            
------------------------------------+---------------------------------------

Comment(by johnsonlaucn@…):

 Hi all.

 I updated the portfile to solve the X11/AWT cross compiling issue.[[BR]]
 A subdirectory named xawt_icons which contains makefile for building
 X11/AWT icon classes will be created during the build.[[BR]]

 The build sequence was xawt => awt => other classes and native
 libraries.[[BR]]
 When xawt targets are executed, the ToBin.java requires to load
 libfontmanager which needs libfreetype,[[BR]]
 clearly a 32bit bootstrap will complain about the wrong architecture of
 dylibs if your libraries aren't universal and refuse to load.

 By generating icon classes with dummy data to satisfy what awt build needs
 at first,[[BR]]
 then regenerate the icon classes with correct icon data and compiling them
 after all classes and native libraries are built sucessfully,[[BR]]
 this trick simply avoid the problem.

 Makefile for icon classes is named sun_xawt_icons_Makefile and placed
 under files.[[BR]]
 The patch containing all modifications relevant to cross compiling has
 been renamed to patch-cross-compile (from patch-swing-beans-failed-by-
 bootjdk).

-- 
Ticket URL: <https://trac.macports.org/ticket/20956#comment:66>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list