Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#30281 closed defect (fixed)

gtk2 2.24 fails to build on Lion

Reported by: carsomyr@… Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 1.9.99
Keywords: haspatch Cc: andreas@…, marc.schlaich@…, ejtttje@…, KNIZEK.MILAN@…, macports@…, Tom.Schoonjans@…, icemac (Michael Howitz), markblackman, gardener_2003@…
Port: gtk2

Description

GTK doesn't build on Lion because of a small problem at the linking step with a test program named "autotestkeywords". Please find the build log and patch attached. Does anyone know why including only headers in a file like autotestkeywords.cc would cause the symbol "_objc_msg_send_fixup" to be generated when using the 10.7 SDK as opposed to the 10.6 SDK? In any case, the patch causes linkage with the requisite frameworks.

Attachments (2)

patch-Makefile.in.diff (713 bytes) - added by carsomyr@… 13 years ago.
The Makefile patch.
log (1.8 MB) - added by carsomyr@… 13 years ago.
The failed build log.

Download all attachments as: .zip

Change History (29)

Changed 13 years ago by carsomyr@…

Attachment: patch-Makefile.in.diff added

The Makefile patch.

Changed 13 years ago by carsomyr@…

Attachment: log added

The failed build log.

comment:1 Changed 13 years ago by carbncl@…

Just built successfully using the provided patch, thanks!

comment:2 Changed 13 years ago by andreas@…

Cc: andreas@… added

Cc Me!

comment:3 in reply to:  1 Changed 13 years ago by carsomyr@…

Replying to carbncl@…:

Just built successfully using the provided patch, thanks!

Always happy to remove fellow Lion users' roadblock!

comment:4 Changed 13 years ago by marc.schlaich@…

Cc: marc.schlaich@… added

Cc Me!

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Summary: gtk 2.24 fails to build on Liongtk2 2.24 fails to build on Lion
Version: 2.0.991.9.99

Has duplicate #30266.

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Interestingly enough, gtk2 +universal installed fine for me on Lion.

comment:7 in reply to:  6 Changed 13 years ago by carsomyr@…

Replying to jmr@…:

Interestingly enough, gtk2 +universal installed fine for me on Lion.

What do the link flags look like at the point where the build log failed?

comment:8 Changed 13 years ago by andreas@…

Here's my log from the same issue if it helps: ticket:30266:main.log

comment:9 Changed 13 years ago by ejtttje@…

I also ran into this... it may be an issue which only shows up with +quartz+no_x11

comment:10 Changed 13 years ago by ejtttje@…

Cc: ejtttje@… added

Cc Me!

comment:11 Changed 13 years ago by ejtttje@…

This has been filed upstream: https://bugzilla.gnome.org/show_bug.cgi?id=655065

Thanks for tracking this down, hopefully a macports admin will check it in soon...?

comment:12 Changed 13 years ago by carsomyr@…

I can also confirm that gtk2+x11 builds fine, and that 10.7 + gtk+quartz+no_x11 fails.

comment:13 Changed 13 years ago by soriyath@…

I've tried patching it without success.

comment:14 Changed 13 years ago by soriyath@…

I just fixed it. I patched the file manually in build/.../gtk2/work

comment:15 Changed 13 years ago by KNIZEK.MILAN@…

Cc: KNIZEK.MILAN@… added

Cc Me!

comment:16 Changed 13 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:17 Changed 13 years ago by andreas@…

I switched to homebrew instead and it doesnt look like im going to need to look back at macports again.

comment:18 Changed 13 years ago by Tom.Schoonjans@…

Cc: Tom.Schoonjans@… added

Cc Me!

comment:19 Changed 13 years ago by mamoll (Mark Moll)

patch works for me with gtk2 @2.24.4_0+no_x11+quartz

comment:20 Changed 13 years ago by rdj999@…

Patch also works for me with gtk2-2.24.4_0+no_x11+quartz.darwin_11.x86_64. Thanks to whoever posted it.

comment:21 in reply to:  13 Changed 13 years ago by rdj999@…

Replying to soriyath@…:

I've tried patching it without success.

Did you make sure to change into the directory from where "make" complained? Example:

# pushd /opt/local/var/macports/build/_Volumes_vm-\
2_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/gtk2\
/work/gtk+-2.24.4/tests/Volumes/vm-2/opt/local/var/macports/build/_Volumes_vm-\
2_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk2/\
gtk2/work/gtk+-2.24.4/tests /opt/local/var/macports/build/_Volumes_vm-\
2_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_auctex\
/auctex/work/auctex-11.86
# patch Makefile .../Downloads/patch-Makefile.in.diff 

comment:22 Changed 13 years ago by icemac (Michael Howitz)

Cc: mh@… added

Cc Me!

comment:23 Changed 13 years ago by markblackman

Cc: mark@… added

Cc Me!

comment:24 Changed 13 years ago by drkp (Dan Ports)

Owner: changed from macports-tickets@… to dports@…
Status: newassigned

comment:25 Changed 13 years ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed

Thanks, applied the patch in r82502.

comment:26 Changed 13 years ago by gardener_2003@…

Cc: gardener_2003@… added

Cc Me!

comment:27 in reply to:  description Changed 13 years ago by gardener_2003@…

Replying to carsomyr@…:

GTK doesn't build on Lion because of a small problem at the linking step with a test program named "autotestkeywords". Please find the build log and patch attached. Does anyone know why including only headers in a file like autotestkeywords.cc would cause the symbol "_objc_msg_send_fixup" to be generated when using the 10.7 SDK as opposed to the 10.6 SDK? In any case, the patch causes linkage with the requisite frameworks.

I see this problem, may I ask how can I use this patch, I am new mac pro.

Note: See TracTickets for help on using tickets.