New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30281 (closed defect: fixed)

Opened 22 months ago

Last modified 21 months ago

gtk2 2.24 fails to build on Lion

Reported by: carsomyr@… Owned by: dports@…
Priority: Normal Milestone:
Component: ports Version: 1.9.99
Keywords: haspatch Cc: andreas@…, marc.schlaich@…, ejtttje@…, KNIZEK.MILAN@…, macports@…, Tom.Schoonjans@…, mh@…, mark@…, 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

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

Change History

Changed 22 months ago by carsomyr@…

The Makefile patch.

Changed 22 months ago by carsomyr@…

The failed build log.

comment:1 follow-up: ↓ 3 Changed 22 months ago by carbncl@…

Just built successfully using the provided patch, thanks!

comment:2 Changed 22 months ago by andreas@…

  • Cc andreas@… added

Cc Me!

comment:3 in reply to: ↑ 1 Changed 22 months 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 22 months ago by marc.schlaich@…

  • Cc marc.schlaich@… added

Cc Me!

comment:5 Changed 22 months ago by ryandesign@…

  • Keywords haspatch added
  • Version changed from 2.0.99 to 1.9.99
  • Summary changed from gtk 2.24 fails to build on Lion to gtk2 2.24 fails to build on Lion

Has duplicate #30266.

comment:6 follow-up: ↓ 7 Changed 22 months ago by jmr@…

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

comment:7 in reply to: ↑ 6 Changed 22 months 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 22 months ago by andreas@…

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

comment:9 Changed 22 months ago by ejtttje@…

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

comment:10 Changed 22 months ago by ejtttje@…

  • Cc ejtttje@… added

Cc Me!

comment:11 Changed 22 months 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 22 months ago by carsomyr@…

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

comment:13 follow-up: ↓ 21 Changed 22 months ago by soriyath@…

I've tried patching it without success.

comment:14 Changed 22 months ago by soriyath@…

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

comment:15 Changed 22 months ago by KNIZEK.MILAN@…

  • Cc KNIZEK.MILAN@… added

Cc Me!

comment:16 Changed 22 months ago by macports@…

  • Cc macports@… added

Cc Me!

comment:17 Changed 22 months 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 22 months ago by Tom.Schoonjans@…

  • Cc Tom.Schoonjans@… added

Cc Me!

comment:19 Changed 22 months ago by mmoll@…

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

comment:20 Changed 22 months 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 22 months 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 22 months ago by mh@…

  • Cc mh@… added

Cc Me!

comment:23 Changed 22 months ago by mark@…

  • Cc mark@… added

Cc Me!

comment:24 Changed 21 months ago by dports@…

  • Owner changed from macports-tickets@… to dports@…
  • Status changed from new to assigned

comment:25 Changed 21 months ago by dports@…

  • Status changed from assigned to closed
  • Resolution set to fixed

Thanks, applied the patch in r82502.

comment:26 Changed 21 months ago by gardener_2003@…

  • Cc gardener_2003@… added

Cc Me!

comment:27 in reply to: ↑ description Changed 21 months 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.