[tlbuild] Fwd: rebuild time

Apostolos Syropoulos asyropoulos at gmail.com
Thu Jun 17 11:45:42 CEST 2010


2010/6/17 Peter Breitenlohner <peb at mppmu.mpg.de>:
> On Thu, 17 Jun 2010, Apostolos Syropoulos wrote:
>
>> Well it does not compile on OpenSolaris:
>>
>> In file included from
>> ../../../texk/dvisvgm/dvisvgm-1.0.1/src/CmdLineParserBase.cpp:26:
>> ../../../texk/dvisvgm/dvisvgm-1.0.1/src/Message.h:58:47: error: macro
>> "putchar" passed 2 arguments, but takes just 1
>> In file included from
>> ../../../texk/dvisvgm/dvisvgm-1.0.1/src/CmdLineParserBase.cpp:26:
>> ../../../texk/dvisvgm/dvisvgm-1.0.1/src/Message.h:58: error: variable
>> or field ?putchar? declared void
>
> Hi Apostolos,
>
> it seems the OpenSolaris headers declare putchar as macro.  This then
> conflicts with the definition of the MessageStream::putchar() method.

You are correct:

iso/stdio_iso.h:#define	putchar(x)	putc((x), stdout)

>
> I think, as a temporary fix you could replace
>        class Message;
> in Message.h by
>        class Message;
>        #undef putchar
>


Indeed this solves the problem:

class Message;
#ifdef __sun
#undef putchar
#endif

Thank you!

A.S.

-- 
Apostolos Syropoulos
Xanthi, GREECE



More information about the tlbuild mailing list