#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)
Change History (29)
Changed 13 years ago by carsomyr@…
Attachment: | patch-Makefile.in.diff added |
---|
comment:1 follow-up: 3 Changed 13 years ago by carbncl@…
Just built successfully using the provided patch, thanks!
comment:3 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:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|---|
Summary: | gtk 2.24 fails to build on Lion → gtk2 2.24 fails to build on Lion |
Version: | 2.0.99 → 1.9.99 |
Has duplicate #30266.
comment:6 follow-up: 7 Changed 13 years ago by jmroot (Joshua Root)
Interestingly enough, gtk2 +universal installed fine for me on Lion.
comment:7 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: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:14 Changed 13 years ago by soriyath@…
I just fixed it. I patched the file manually in build/.../gtk2/work
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: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 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:24 Changed 13 years ago by drkp (Dan Ports)
Owner: | changed from macports-tickets@… to dports@… |
---|---|
Status: | new → assigned |
comment:25 Changed 13 years ago by drkp (Dan Ports)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks, applied the patch in r82502.
comment:27 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.
The Makefile patch.