[XeTeX] XeTeX build fails

Jonathan Kew jonathan_kew at sil.org
Fri Dec 21 17:09:02 CET 2007

On 21 Dec 2007, at 3:54 pm, Peter Dyballa wrote:

> Correcting the LDFLAGS value to "-dead_strip -multiply_defined
> suppress -L/sw/lib/fontconfig2/lib -L/sw/lib -L/usr/local/lib" XeTeX
> still can't be built:
> 	c++ -o xetex -dead_strip -multiply_defined suppress -L/sw/lib/
> fontconfig2/lib -L/sw/lib -L/usr/local/lib  xetexini.o xetex0.o

What's /sw/lib/fontconfig2/lib doing there? XeTeX doesn't use  
fontconfig on Mac OS X.

> xetex1.o xetex2.o xetexextra.o trans.o XeTeX_ext.o xetex_pool.o
> XeTeX_mac.o XeTeXFontMgr_Mac.o  XeTeXFontMgr.o XeTeXLayoutInterface.o
> XeTeXOTLayoutEngine.o XeTeXFontInst.o cmaps.o FontTableCache.o
> XeTeXOTMath.o XeTeXGrLayout.o XeTeXFontInst_Mac.o  
> XeTeXFontInst_FT2.o  \
> 	  ../../libs/icu-xetex/lib/libsicuuc.a ../../libs/icu-xetex/lib/
> libsicule.a ../../libs/icu-xetex/lib/libsicudata.a ../../libs/teckit/
> lib/.libs/libTECkit.a ../../libs/freetype2/.libs/libfreetype.a ../../
> libs/graphite-engine/src/.libs/libgraphite.a -lz -framework Carbon -
> framework Cocoa -framework QuickTime \
> 	lib/lib.a ../kpathsea/.libs/libkpathsea.a -lm   -nodefaultlibs -Wl,-
> Bstatic -lstdc++ -Wl,-Bdynamic -lm -lgcc_eh -lgcc -lc -lgcc_eh -lgcc -
> 	/sw/lib/odcctools/bin/ld: warning prebinding disabled because of
> undefined symbols

Looks like you're still using some Fink tools.... I can't help with  

> 	/sw/lib/odcctools/bin/ld: Undefined symbols:
> 	_fprintf$LDBLStub
> 	_sprintf$LDBLStub
> 	_swprintf$LDBLStub
> 	_printf$LDBLStub
> 	collect2: ld returned 1 exit status
> 	gnumake: *** [xetex] Error 1
> 	### failed to build the xetex binary

I think those $LDBLStub errors usually indicate that you're trying to  
mix object files compiled with gcc 3.x and 4.x. Don't do that.


More information about the XeTeX mailing list