[tex-live] build failure in texk/web2c/xetexdir

Jukka Salmi j+tex-live at 2008.salmi.ch
Wed Oct 29 00:04:28 CET 2008


Jukka Salmi --> tex-live (2008-10-28 22:47:13 +0100):
> Hello,
> 
> building TL 2008 on a NetBSD/i386 system fails (with both the source
> distributed on the DVD and with the latest svn):
> 
> $ TL_CONFIGURE_ARGS=--with-fontconfig=/usr/pkg \
> > LDFLAGS=-Wl,-rpath,/usr/pkg/lib \
> > TL_MAKE=gmake \
> > ./Build
> [...]
> gcc -DHAVE_CONFIG_H  -I. -I../../../texk/web2c -I.. -I../../../texk/web2c/..  -I/usr/pkg/include -I../../libs/obsdcompat -I../../libs/obsdcompat/.. -I../../../texk/web2c/../../libs/obsdcompat -I../../../texk/web2c/../../libs/obsdcompat/..  -I../../../texk/web2c/../../libs/zlib -I../../../texk/web2c/../../libs/libpng -I../../../texk/web2c/../../libs/xpdf -Dextra_version_info=`date +-%Y%m%d%H` -g -O2  -I../../libs/icu-xetex/common -I../../../texk/web2c/../../libs/icu-xetex/common -I../../../texk/web2c/../../libs/icu-xetex/layout -DLE_USE_CMEMORY -I../../../texk/web2c/../../libs/freetype2/include -I../../../texk/web2c/../../libs/teckit/source/Public-headers -I../../libs/libpng -I../../../texk/web2c/../../libs/libpng -I../../libs/xpdf -I../../libs/xpdf/xpdf -I../../libs/xpdf/goo -I../../libs/xpdf/fofi -I../../../texk/web2c/../../libs/xpdf -I../../../texk/web2c/../../libs/xpdf/xpdf -I../../../texk/web2c/../../libs/xpdf/goo -I../../../texk/web2c/../../libs/xpdf/fofi -I../../libs/z!
>  lib -I../../../texk/web2c/../../libs/zlib -DHAVE_CONFIG_H  -I. -I../../../texk/web2c -I.. -I../../../texk/web2c/..  -I/usr/pkg/include -I../../libs/obsdcompat -I../../libs/obsdcompat/.. -I../../../texk/web2c/../../libs/obsdcompat -I../../../texk/web2c/../../libs/obsdcompat/..  -I../../../texk/web2c/../../libs/zlib -I../../../texk/web2c/../../libs/libpng -I../../../texk/web2c/../../libs/xpdf -Dextra_version_info=`date +-%Y%m%d%H` -g -O2  -DXETEX_OTHER -DXETEX_GRAPHITE -c ../../../texk/web2c/xetexdir/XeTeX_ext.c -o XeTeX_ext.o
> ../../../texk/web2c/xetexdir/XeTeX_ext.c: In function 'initversionstring':
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:181: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gFreeTypeLibrary'
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:181: error: 'gFreeTypeLibrary' undeclared (first use in this function)
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:181: error: (Each undeclared identifier is reported only once
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:181: error: for each function it appears in.)
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:182: error: 'FT_Int' undeclared (first use in this function)
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:182: error: expected ';' before 'ftMajor'
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:217: error: 'ftMajor' undeclared (first use in this function)
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:217: error: 'ftMinor' undeclared (first use in this function)
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:217: error: 'ftPatch' undeclared (first use in this function)
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:222: error: 'FREETYPE_MAJOR' undeclared (first use in this function)
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:222: error: 'FREETYPE_MINOR' undeclared (first use in this function)
> ../../../texk/web2c/xetexdir/XeTeX_ext.c:222: error: 'FREETYPE_PATCH' undeclared (first use in this function)
> gmake[2]: *** [XeTeX_ext.o] Error 1
> gmake[2]: Leaving directory `/a/src/local/texlive_2008/source/Work/texk/web2c'
> gmake[1]: *** [all] Error 1
> gmake[1]: Leaving directory `/a/src/local/texlive_2008/source/Work/texk'
> gmake: *** [all] Error 1
> [...]
> 
> Any hints?

Problem found: /usr/pkg/include contains FreeType 1.5 headers and is
specified on the $(CC) command as a -I directory before $(FTFLAGS)
(which is -I../../../texk/web2c/../../libs/freetype2/include above).
Not sure how to fix this correctly (besides removing the FT 1.5 headers
from /usr/pkg/include and falling back to those shipped with TL...).


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~


More information about the tex-live mailing list