[tlbuild] build failure: usage of __attribute__ ((format(printf, 1, 0))) in texk/web2c/luatexdir/luafontloader/src/ffdummies.c
Taco Hoekwater
taco at elvenkind.com
Fri May 28 14:34:53 CEST 2010
Hi,
Vladimir Volovich wrote:
> "TH" == Taco Hoekwater writes:
>
> >> __attribute__ is also used in at least these files:
>
> TH> Used yes, but it should not produce errors (thanks to obsdcompat
> TH> header inclusion)
>
> yes, thanks. so the only remaining problem with __attribute__ usage
> occurs in texk/web2c/synctexdir/synctex.c and could be fixed by adding
> the following somewhere at the beginning of that file:
>
> #ifndef __attribute__
> #define __attribute__(A)
> #endif
I, the luatex files, I actually used a slightly different version
(copied from obsdcompat):
/* fix for non-gcc compilation: */
#if !defined(__GNUC__) || (__GNUC__ < 2)
# define __attribute__(x)
#endif /* !defined(__GNUC__) || (__GNUC__ < 2) */
(I added Jerome to the CC list)
Best wishes,
Taco
More information about the tlbuild
mailing list