[tlbuild] Missing includes for zlib when building woff2 (dvisvgm)
Martin Gieseking
martin.gieseking at uos.de
Mon Mar 25 21:03:53 CET 2019
Dear Mojca,
> On Mon, 25 Mar 2019 at 19:36, Martin Gieseking wrote:
>>> However this fails when building dvisvgm's built-in dependency woff2.
>>> When configuring dvisvgm itself the zlib is found and the flags seem
>>> to be there, but they don't seem to propagate all the way down to
>>> woff2.
>>
>> I'm not sure if I understand the problem correctly. Does woff2 require
>> zlib in your build environment? That would be strange because woff2 uses
>> the brotli compression library and doesn't rely on zlib. Actually, I
>> can't find any reference to zlib in the subset of the woff2 sources
>> bundled with dvisvgm. Could you send me a build log with the
>> corresponding error messages?
>
> I'm sorry, I slightly messed it up (also when investigating the
> sources), it's ff-woff, not woff2.
[...]
> The file dvisvgm-src/libs/ff-woff/Makefile actually contains the
> correct definition of ZLIB_INCLUDES, but it's not used anywhere. It's
> only used inside of
> dvisvgm-src/src/Makefile:AM_CFLAGS = $(WARNING_CFLAGS)
> $(ZLIB_INCLUDES) $(CODE_COVERAGE_CFLAGS) \
> just not in any of the libs.
Thanks for the clarification and the additional info. ZLIB_INCLUDES is
probably a variable set by the TL build system. In the original dvisvgm
sources, ZLIB_CFLAGS holds the include switches. Does it help if you
append $(ZLIB_INCLUDES) to AM_CFLAGS in file libs/ff-woff/Makefile.am?
Martin
More information about the tlbuild
mailing list