[tlbuild] build failure: usage of __attribute__ ((format(printf, 1, 0))) in texk/web2c/luatexdir/luafontloader/src/ffdummies.c

Jonathan Kew jfkthame at googlemail.com
Fri Jun 4 14:59:04 CEST 2010


On 28 May 2010, at 13:26, 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

This broke the build, at least on an OS X cross-compilation (64->32bit) setup, because it affects the use of __attribute__ in system headers that get included later in the file.

I've just checked-in a change to use the "#if !defined(__GNUC__) || (__GNUC__ < 2)" construction instead.

JK




More information about the tlbuild mailing list