After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 322374 - Examples does not build on MacOS X
Examples does not build on MacOS X
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2005-11-25 00:05 UTC by Johan (not receiving bugmail) Dahlin
Modified: 2006-05-15 22:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Johan (not receiving bugmail) Dahlin 2005-11-25 00:05:58 UTC
To be able to build the examples using pango head I had to set CFLAGS to 
  "-framework Foundation -framework AppKit".

With that modification it built without problems
Comment 1 Behdad Esfahbod 2006-01-16 11:05:59 UTC
For which examples are these exactly needed? If really needed, they belong to somewhere else I suspect, in pangocairo or cairo, not the examples...
Comment 2 Johan (not receiving bugmail) Dahlin 2006-01-16 12:02:06 UTC
Any/All examples. They're using symbols from Foundation/AppKit but they're not linked properly.
Comment 3 Behdad Esfahbod 2006-01-16 12:07:01 UTC
Ok, then is it pangocairo that is taking those symbols in?

I don't see any reference to anything Apple-specific in the examples' code.
Comment 4 Johan (not receiving bugmail) Dahlin 2006-01-16 12:17:37 UTC
I don't have access to the machine right now so I cannot give the exact compilation error.
The symbols are in the atsu backend (pangoatsui-fontmap.c, pango_atsui_family_list_faces and pango_atsui_font_map_init), which needs to be compiled with an objective C compiler.
Comment 5 Behdad Esfahbod 2006-01-16 21:43:15 UTC
Andersca, can you roll a patch?  Are these flags already in pangocairo.pc and only a problem in examples/?
Comment 6 Richard Hult 2006-02-08 09:53:55 UTC
This is weird. I don't need those flags, and not Anders either. As I understand it, nothing from those two frameworks are used in cairo or pango. Johan, could you try adding -lobjc and see if that helps?
Comment 7 Behdad Esfahbod 2006-02-08 10:19:28 UTC
Apparently somebody else was experiencing this too, as verbosely reported on one of the lists recently.
Comment 8 Behdad Esfahbod 2006-05-15 22:20:56 UTC
Richard Hult committed the following:

diff -u -p -d -r1.139 -r1.140
--- pango/Makefile.am   31 Mar 2006 12:28:09 -0000      1.139
+++ pango/Makefile.am   15 May 2006 17:55:30 -0000      1.140
@@ -297,6 +297,7 @@ libpangocairo_1_0_la_SOURCES += \
        pangocairo-atsuifontmap.c

 libpangocairo_1_0_la_CFLAGS = -xobjective-c
+libpangocairo_1_0_la_LDFLAGS += -framework CoreFoundation -framework Carbon -framework Cocoa
 endif

 # ------------------- libpangowin32 -------------------

2006-05-15  Richard Hult  <richard@imendio.com>

        * pango/Makefile.am (libpangocairo_1_0_la_LDFLAGS): Add the necessary
        frameworks to make this build with -no-undefined.