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

Jonathan Kew jonathan at jfkew.plus.com
Tue Oct 28 23:55:02 CET 2008


On 28 Oct 2008, at 21:47, Jukka Salmi wrote:

> 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?

Strange... it looks as if the Freetype header hasn't been included, so  
FT_Library is not defined as a type, and therefore it is taken as a  
variable (implicit int) declaration. But XeTeX_ext.c definitely has
   #include <ft2build.h>
   #include FT_FREETYPE_H
which should have provided the definition of FT_Library.

So I have no idea why it's failing. What version of gcc is on that  
system -- is it particularly old or bleeding-edge new?

Are there any warnings, etc, issued during the configure process? Does  
the Freetype library build cleanly?

JK



More information about the tex-live mailing list