garnome .27.1 & Mac OS X



I'm trying to compile garnome .27.1 on Mac OS X (10.3 build 7B68). I''m having some issues with the compile, and through some patches have been able to get through some of it. I'd like to share what I have, and ask for any help you could provide with getting the rest of gnome to compile properly.

pkgconfig would not compile without a patch that I found in the darwinports tree for the glib inside pkgconfig:

--- glib-1.2.8/gmain.c~	Thu May 18 22:58:48 2000
+++ glib-1.2.8/gmain.c	Sun Aug 24 13:44:20 2003
@@ -187,6 +187,8 @@
 /* SunOS has poll, but doesn't provide a prototype. */
 #  if defined (sun) && !defined (__SVR4)
 extern gint poll (GPollFD *ufds, guint nfsd, gint timeout);
+#else
+#include <poll.h> /* The opengroup defines the poll.h header as standard */
 #  endif  /* !sun */
 static GPollFunc poll_func = (GPollFunc) poll;
 #else	/* !HAVE_POLL */

This patch also had to be applied to glib-2.2.3's gmain.c to get it to compile.

garnome goes through and compiles up to fontconfig, and then dies with a freetype error:

(cd .libs && rm -f libfontconfig.la && ln -s ../libfontconfig.la libfontconfig.la)
Making all in fc-cache
cc -DHAVE_CONFIG_H -I. -I. -I.. -I/Users/satadru/garnome/include -I/Users/satadru/garnome/include/freetype2 -I/Users/satadru/garnome/include -I/usr/X11R6/include -I/Users/satadru/garnome/include -I/usr/X11R6/include -L/Users/satadru/garnome/lib -L/usr/X11R6/lib -maltivec -O2 -O2 -pipe -c fc-cache.c /bin/sh ../libtool --mode=link cc -I/Users/satadru/garnome/include -I/usr/X11R6/include -L/Users/satadru/garnome/lib -L/usr/X11R6/lib -maltivec -O2 -O2 -pipe -L/Users/satadru/garnome/lib -L/usr/X11R6/lib -o fc-cache fc-cache.o ../src/libfontconfig.la
mkdir .libs
cc -I/Users/satadru/garnome/include -I/usr/X11R6/include -maltivec -O2 -O2 -pipe -o .libs/fc-cache fc-cache.o -L/Users/satadru/garnome/lib -L/usr/X11R6/lib -L../src/.libs -lfontconfig -lfreetype -lz -lexpat ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used symbol _FT_List_Remove used from dynamic library /usr/X11R6/lib/libfreetype.6.dylib(ftbase.o) not from earlier dynamic library /Users/satadru/garnome/lib/libfreetype.6.dylib(libfreetype.6.3.3.dylib- master.o) symbol _FT_Add64 used from dynamic library /usr/X11R6/lib/libfreetype.6.dylib(ftbase.o) not from earlier dynamic library /Users/satadru/garnome/lib/libfreetype.6.dylib(libfreetype.6.3.3.dylib- master.o) symbol _FT_Add_Module used from dynamic library /usr/X11R6/lib/libfreetype.6.dylib(ftbase.o) not from earlier dynamic library /Users/satadru/garnome/lib/libfreetype.6.dylib(libfreetype.6.3.3.dylib- master.o) symbol _FT_Alloc used from dynamic library /usr/X11R6/lib/libfreetype.6.dylib(ftbase.o) not from earlier dynamic library /Users/satadru/garnome/lib/libfreetype.6.dylib(libfreetype.6.3.3.dylib- master.o) symbol _FT_Atan2 used from dynamic library /usr/X11R6/lib/libfreetype.6.dylib(ftbase.o) not from earlier dynamic library /Users/satadru/garnome/lib/libfreetype.6.dylib(libfreetype.6.3.3.dylib- master.o)
<snip>
ld: Undefined symbols:
_FcConfigEnableHome
make[8]: *** [fc-cache] Error 1
make[7]: *** [all-recursive] Error 1
make[6]: *** [all-recursive-am] Error 2
make[5]: *** [build-work/main.d/fontconfig-2.2.1/Makefile] Error 2
make[4]: *** [../../bootstrap/fontconfig/cookies/main.d/install] Error 2
make[3]: *** [../../bootstrap/xft/cookies/main.d/install] Error 2
make[2]: *** [../../gnome/pango/cookies/main.d/install] Error 2
make[1]: *** [../../gnome/gtk+/cookies/main.d/install] Error 2
make: *** [../../gnome/metacity/cookies/main.d/install] Error 2


Moving the preinstalled freetype libraries out of the way and recompiling both fontconfig and freetype gives me this:

Making all in fc-cache
/bin/sh ../libtool --mode=link cc -I/Users/satadru/garnome/include -I/usr/X11R6/include -L/Users/satadru/garnome/lib -L/usr/X11R6/lib -maltivec -O2 -O2 -pipe -L/Users/satadru/garnome/lib -L/usr/X11R6/lib -o fc-cache fc-cache.o ../src/libfontconfig.la cc -I/Users/satadru/garnome/include -I/usr/X11R6/include -maltivec -O2 -O2 -pipe -o .libs/fc-cache fc-cache.o -L/Users/satadru/garnome/lib -L/usr/X11R6/lib -L../src/.libs -lfontconfig -lfreetype -lz -lexpat ld: warning can't open dynamic library: /usr/X11R6/lib/libfreetype.6.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
_FcConfigEnableHome
_FT_Get_Char_Index referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib _FT_Get_Next_Char referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib _FT_Load_Glyph referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib _FT_Select_Charmap referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib _FT_Done_Face referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib _FT_Done_FreeType referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib _FT_Get_Sfnt_Name referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib _FT_Get_Sfnt_Name_Count referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib _FT_Get_Sfnt_Table referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib _FT_Init_FreeType referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib _FT_New_Face referenced from libfontconfig expected to be defined in /usr/X11R6/lib/libfreetype.6.dylib
make[8]: *** [fc-cache] Error 1
make[7]: *** [all-recursive] Error 1
make[6]: *** [all-recursive-am] Error 2
make[5]: *** [build-work/main.d/fontconfig-2.2.1/Makefile] Error 2
make[4]: *** [../../bootstrap/fontconfig/cookies/main.d/install] Error 2
make[3]: *** [../../bootstrap/xft/cookies/main.d/install] Error 2
make[2]: *** [../../gnome/pango/cookies/main.d/install] Error 2
make[1]: *** [../../gnome/gtk+/cookies/main.d/install] Error 2
make: *** [../../gnome/metacity/cookies/main.d/install] Error 2

Any ideas? Is there any way to get garnome to compile everything and not recompile freetype, and instead use the preexisting system freetype?

Satadru




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]