[tlbuild] TeX Live builds -- second summary

Ken Brown kbrow1i at gmail.com
Mon May 4 22:13:11 CEST 2009


On 5/4/2009 1:15 PM, Peter Breitenlohner wrote:
> I'll think about a way to do that. That should be easy provided there is a
> libfontconfig.la that automatically pulls in all libraries required for
> fontconfig.
> 
> You could test this by removing
>     xetex_ldadd += $(FREETYPE2_LIBS) $(ZLIB_LIBS)
>     xetex_dependencies += $(FREETYPE2_DEPEND) $(ZLIB_DEPEND)
> from texk/web2c/xetextdir/am/xetex.am and then run automake in texk/web2c/
> (or remove the corresponding pieces from the resulting
> texk/web2c/Makefile.in).

Hi Peter,

I tried this, and it did produce a link command for xetex.exe that uses 
the system zlib and not the TL zlib:

libtool: link: g++-4 -Wno-write-strings -Wno-attributes 
-Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -o xetex.exe 
xetex-xetexini.o xetex-xetex0.o xetex-xetex1.o xetex-xetex2.o 
xetex-xetex_pool.o xetex-xetexextra.o xetex-synctex-xe.o  libxetex.a 
/tmp/tl2009/source/Work/libs/icu/icu-build/lib/libsicuuc.a 
/tmp/tl2009/source/Work/libs/icu/icu-build/lib/libsicule.a 
/tmp/tl2009/source/Work/libs/icu/icu-build/lib/libsicudata.a 
/tmp/tl2009/source/Work/libs/teckit/libTECkit.a 
/usr/lib/libfontconfig.dll.a /usr/lib/libiconv.dll.a 
/usr/lib/libfreetype.dll.a -lz /usr/lib/libexpat.dll.a 
/tmp/tl2009/source/Work/libs/xpdf/libxpdf.a 
/tmp/tl2009/source/Work/libs/libpng/libpng.a lib/lib.a 
/tmp/tl2009/source/Work/texk/kpathsea/.libs/libkpathsea.a

But then the build failed as follows:

/tmp/tl2009/source/Work/libs/libpng/libpng.a(png.o):png.c:(.text+0x1da): 
undefined reference to `_crc32'
[many more such errors]
collect2: ld returned 1 exit status
make[6]: *** [xetex.exe] Error 1

Could the problem be the order of libraries on the link command line? 
Maybe libpng.a needs to precede -lz.  When I did the (successful) build 
--with-system-zlib, the link command was:

libtool: link: g++-4 -Wno-write-strings -Wno-attributes 
-Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -o xetex.exe 
xetex-xetexini.o xetex-xetex0.o xetex-xetex1.o xetex-xetex2.o 
xetex-xetex_pool.o xetex-xetexextra.o xetex-synctex-xe.o  libxetex.a 
/tmp/tl2009/source/Work/libs/icu/icu-build/lib/libsicuuc.a 
/tmp/tl2009/source/Work/libs/icu/icu-build/lib/libsicule.a 
/tmp/tl2009/source/Work/libs/icu/icu-build/lib/libsicudata.a 
/tmp/tl2009/source/Work/libs/teckit/libTECkit.a 
/usr/lib/libfontconfig.dll.a /usr/lib/libiconv.dll.a 
/usr/lib/libfreetype.dll.a /usr/lib/libexpat.dll.a 
/tmp/tl2009/source/Work/libs/xpdf/libxpdf.a 
/tmp/tl2009/source/Work/libs/libpng/libpng.a 
-L/tmp/tl2009/source/Work/libs/freetype2 
/tmp/tl2009/source/Work/libs/freetype2/libfreetype.a -lz lib/lib.a 
/tmp/tl2009/source/Work/texk/kpathsea/.libs/libkpathsea.a

Regards,

Ken


More information about the tlbuild mailing list