[tlbuild] xetex not being built

Jukka Salmi j+tex-live at 2009.salmi.ch
Tue May 12 16:42:11 CEST 2009


Hello,

Peter Breitenlohner --> tlbuild (2009-05-11 15:22:00 +0200):
> It seems that you have configured with '--with-fontconfig=/opt/csw', 
> resp. '/usr/pkg', and that should now work.

unfortunately it still doesn't; not because of fontconfig but because
the path to the FreeType 2 headers is passed to g++ after a path
containing FreeType 1 headers is passed (I configured with both
`--with-system-freetype2' and `--with-system-freetype'):

[...]
g++ -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./.. -I/a/src/texlive/Build/source/Work/texk -I/a/src/texlive/Build/source/texk -DU_STATIC_IMPLEMENTATION -I../../../texk/web2c/xetexdir -I/a/src/texlive/Build/source/Work/libs/icu/icu-build/common -I/a/src/texlive/Build/source/libs/icu/icu-xetex/common -I/a/src/texlive/Build/source/libs/icu/icu-xetex/layout -I/a/src/texlive/Build/source/libs/teckit/source/Public-headers  -DXETEX_OTHER -DPDF_PARSER_ONLY -I/a/src/texlive/Build/source/Work/libs/xpdf -I/a/src/texlive/Build/source/Work/libs/xpdf/goo -I/a/src/texlive/Build/source/Work/libs/xpdf/xpdf -I/usr/pkg/include -I/usr/pkg/include -DXETEX_GRAPHITE -I/a/src/texlive/Build/source/libs/graphite/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/freetype -I/usr/pkg/include  -g -O2 -MT libxetex_a-XeTeXFontInst_FT2.o -MD -MP -MF .deps/libxetex_a-XeTeXFontInst_FT2.Tpo -c -o libxetex_a-XeTeXFontInst_FT2.o `test -f 'xetexdir/XeTeXFontInst_FT2.cpp' || echo '../../../texk/web2c/'`xetexdir/XeTeXFontInst_FT2.cpp
In file included from ../../../texk/web2c/xetexdir/XeTeXFontInst_FT2.cpp:41:
/usr/pkg/include/freetype2/freetype/tttables.h:28:2: error: #error "freetype.h of FreeType 1 has been loaded!"
/usr/pkg/include/freetype2/freetype/tttables.h:29:2: error: #error "Please fix the directory search order for header files"
/usr/pkg/include/freetype2/freetype/tttables.h:30:2: error: #error "so that freetype.h of FreeType 2 is found first."
[...]

The system in question uses pkgsrc and has FreeType 2 headers in
/usr/pkg/include/freetype2 and FreeType 1 headers in /usr/pkg/include.
The latter path is passed to g++ before the former as a result of the
following assignements (in texk/web2k/Makefile):

LIBPNG_INCLUDES = -I/usr/pkg/include
FONTCONFIG_INCLUDES = -I/usr/pkg/include
FREETYPE2_INCLUDES = -I/usr/pkg/include/freetype2 -I/usr/pkg/include
am__append_21 = [...] $(LIBPNG_INCLUDES) $(FONTCONFIG_INCLUDES)
xetex_cppflags = [...] $(am__append_21) [...] $(FREETYPE2_INCLUDES)
libxetex_a_CPPFLAGS = $(xetex_cppflags)
libxetex_a-XeTeXFontInst_FT2.o:
	$(CXX) [...] $(libxetex_a_CPPFLAGS) [...]

Moving $(FREETYPE2_INCLUDES) before $(am__append_21) in the assignement
to xetex_cppflags works around the problem.


> (1) Is pkg-config in your PATH?

Yes.


> (2) If so what is the output from 'pkg-config fontconfig --cflags' and
> 'pkg-config fontconfig --libs'?

$ pkg-config fontconfig --cflags
-I/usr/pkg/include  
$ pkg-config fontconfig --libs
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lfontconfig  


Regards, Jukka

-- 
This email fills a much-needed gap in the archives.


More information about the tlbuild mailing list