[MacPorts] #36041: gimp2: build fails on 10.5.8 PPC

MacPorts noreply at macports.org
Wed Jan 29 11:18:31 PST 2014


#36041: gimp2: build fails on 10.5.8 PPC
------------------------------+----------------------
  Reporter:  michael.klein@…  |      Owner:  devans@…
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.1.2
Resolution:                   |   Keywords:  powerpc
      Port:  gimp2            |
------------------------------+----------------------

Comment (by newchief@…):

 I attached my changes to ports that I made to complete build of gimp
 2.8.10 (quartz, no X!) on my old PowerMac G5. Tested today with recent
 sync. These are:
 boost
 gcr
 gegl
 gimp2
 glib2

 What's changed in gimp?
 Instead of adding -faltivec, I rearranged inclusion of GTK/GDK files or
 renamed local variables (mostly from pixel to just p). This seem to be
 more reasonable than applying one compilation policy over all compiled
 package.
 The most crucial change is in glib2. When I built gimp, I couldn't start
 it. It crashed right after splash screen with following backtrace:

 (gimp-2.8:7170): GLib-GObject-WARNING **: gvalue.c:183: cannot initialize
 GValue with type 'gchararray', the value has already been initialized as
 '(null)'

 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_INVALID_ADDRESS at address: 0x44424414
 0x01264370 in g_type_check_value ()
 (gdb) bt
 #0  0x01264370 in g_type_check_value ()
 #1  0x0126bce8 in g_value_transform ()
 #2  0x0124fce4 in g_object_new_internal ()
 #3  0x01250214 in g_object_new_valist ()
 #4  0x01250578 in g_object_new ()
 #5  0x0016547c in gimp_prop_spin_scale_new ()
 #6  0x00096f70 in gimp_selection_options_gui ()
 #7  0x0008b67c in gimp_rectangle_select_options_gui ()
 #8  0x00055604 in gimp_tools_restore ()
 #9  0x000128d0 in gui_restore_callback ()
 #10 0x01246368 in g_closure_invoke ()
 #11 0x0125cff8 in signal_emit_unlocked_R ()
 #12 0x0125e85c in g_signal_emit_valist ()
 #13 0x0125ebe4 in g_signal_emit ()
 #14 0x0000e024 in app_run ()
 #15 0x00010884 in main ()
 (gdb)

 This '(null)' in warning seemed suspicious to me so I added another 'if'
 that checks for that case in glib's g_value_init() function. Seems like it
 solves the problem.

 Other packages like gimp, gutenprint, xsane, ufraw, gipm-app and so on did
 not require any further changes.

 Although PowerMac G5 is ppc64, I've built everything ppc 32-bit. gtk+
 cannot be built for ppc64 anyway.

 Installed variants of crucial ports:

 |  atk @2.10.0_0 (active) platform='darwin 9' archs='ppc'
 |  babl @0.1.11_20131014 (active) platform='darwin 9' archs='ppc'
 |  boost @1.55.0_1+no_single+no_static+python27 (active) platform='darwin
 9' archs='ppc'
 |  cairo @1.12.16_2+quartz-universal-x11 (active) platform='darwin 9'
 archs='ppc'
 |  fontconfig @2.11.0_2-universal (active) platform='darwin 9' archs='ppc'
 |  freetype @2.5.2_1-universal (active) platform='darwin 9' archs='ppc'
 |  gcr @3.10.1_1 (active) platform='darwin 9' archs='ppc'
 |  gegl @0.2.0_12+graphviz+python27+quartz-html_doc-universal-workshop-x11
 (active) platform='darwin 9' archs='ppc'
 |  gimp @2.8.10_0 (active) platform='darwin 9' archs='noarch'
 |  gimp-app @2.8.2_2 (active) platform='darwin 9' archs='ppc'
 |  gimp2 @2.8.10_5+python27+quartz-gvfs-help_browser-remote-universal
 (active) platform='darwin 9' archs='ppc'
 |  glib2 @2.38.2_0 (active) platform='darwin 9' archs='ppc'
 |  gnome-keyring @3.10.1_1 (active) platform='darwin 9' archs='ppc'
 |  gtk2 @2.24.22_1+no_x11+quartz-x11 (active) platform='darwin 9'
 archs='ppc'
 |  gutenprint @5.2.9_2 (active) platform='darwin 9' archs='ppc'
 |  harfbuzz @0.9.25_0-universal (active) platform='darwin 9' archs='ppc'
 |  libpixman @0.32.4_0-universal (active) platform='darwin 9' archs='ppc'
 |  pango @1.36.1_1+quartz-x11 (active) platform='darwin 9' archs='ppc'
 |  ufraw @0.19.2_3 (active) platform='darwin 9' archs='ppc'
 |  xsane @0.998_3 (active) platform='darwin 9' archs='ppc'

-- 
Ticket URL: <https://trac.macports.org/ticket/36041#comment:13>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list