[Fontconfig] X11 font interference on OS X 10.4.8

Joe Koski jkoski11 at comcast.net
Sat Oct 7 13:29:33 PDT 2006


I'm attempting to build a wx terminal with wxwidgets for gnuplot-4.2 on my
G5 Mac with OS X 10.4.8 and Xcode-2.4 developer tools. One of the
dependencies for the build is fontconfig, so I'm attempting to build
fontconfig-2.4.1.

After I got libxml sorted out, the make went well until it encountered the
fonts that are installed in /usr/X11R6 by the Apple X11.app package. At that
point I saw

<snip>
 /usr/bin/install -c -m 644 ./fonts.conf /usr/local/etc/fonts/fonts.conf
 fc-cache/fc-cache -s -f -v
/usr/share/fonts: skipping, no such directory
/usr/X11R6/lib/X11/fonts: caching, 0 fonts, 11 dirs
/usr/X11R6/lib/X11/fonts/100dpi: dyld: lazy symbol binding failed: Symbol
not found: _FSPathMakeRef
  Referenced from: /usr/local/lib/libfreetype.6.dylib
  Expected in: flat namespace

dyld: Symbol not found: _FSPathMakeRef
  Referenced from: /usr/local/lib/libfreetype.6.dylib
  Expected in: flat namespace

make[2]: *** [install-data-local] Error 133
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1

Apparently _FSPathMakeRef is located in a framework called
CoreServices.framework that is part of the Xcode-2.4 Tools (The Apple
unix-porting list solved that one). For linking, the framework is included
via -framework CoreServices. To solve the problem, I did an export
LDFLAGS="-framework CoreServices" and the make completed successfully
without errors.

During "sudo make install" I see the error reappear:

<snip>
 /usr/bin/install -c -m 644 ./fonts.conf /usr/local/etc/fonts/fonts.conf
 fc-cache/fc-cache -s -f -v
/usr/share/fonts: skipping, no such directory
/usr/X11R6/lib/X11/fonts: caching, 0 fonts, 11 dirs
/usr/X11R6/lib/X11/fonts/100dpi: dyld: lazy symbol binding failed: Symbol
not found: _FSPathMakeRef
  Referenced from: /usr/local/lib/libfreetype.6.dylib
  Expected in: flat namespace

dyld: Symbol not found: _FSPathMakeRef
  Referenced from: /usr/local/lib/libfreetype.6.dylib
  Expected in: flat namespace

make[2]: *** [install-data-local] Error 133
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1

My questions:  How do I tell "make install" to use the Apple framework, or,
alternatively, how do I tell fontconfig to ignore the X11 fonts? I have
freetype-2.2.1 already built and installed.

Thanks for any suggestions.

Joe





More information about the Fontconfig mailing list