[tlbuild] dvisvgm

Mojca Miklavec mojca.miklavec.lists at gmail.com
Fri Feb 10 09:48:56 CET 2017


On 5 February 2017 at 14:20, Apostolos Syropoulos <asyropoulos at gmail.com> wrote:
> Hello,
>
> Finally I managed to compile dvisvgm. However, I had to do
> two apply two patches:
>
> *** fontforge.h.orig    2017-02-05 13:25:09.904026440 +0200
> --- fontforge.h 2017-02-05 14:27:35.320621195 +0200
> ***************
> *** 33,38 ****
> --- 33,39 ----
>   #include "libffstamp.h"
>   #include <stdio.h>
>   #include <string.h>
> + #define  HAVE_LIBINTL_H 1
>   #include <intl.h>
>   #include "splinefont.h"
>   #include "uiinterface.h"
>
> For some reason the HAVE_LIBINTL_H symbol is mangled so
> the compiler includes wrong things from intl.h

Thank you, I will try that next.

> In file texk/dvisvgm/dvisvgm-src/libs/xxHash/xxhash.h
> there are a few occurrences of the restrict keyword which
> is not defined in C++ (see https://en.wikipedia.org/wiki/Restrict).
> So texk/dvisvgm/dvisvgm-src/src/Unicode.cpp fails to compile.
> I just wonder how people managed to compile withe -std=c++11
> option enabled!

The "restrict" keyword was probably meant to be ignored, based on this:

/* ****************************
*  Compiler specifics
******************************/
#if !(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))   /* ! C99 */
#  define restrict   /* disable restrict */
#endif

but maybe that didn't work on Solaris for one reason or another.

You can probably try to use just
    #define restrict

Mojca


More information about the tlbuild mailing list