[tlbuild] dvibook failure on Cygwin

Ken Brown kbrow1i at gmail.com
Tue Feb 28 12:30:57 CET 2012


On 2/27/2012 9:07 AM, Peter Breitenlohner wrote:
> On Mon, 27 Feb 2012, Ken Brown wrote:
>
>> Good idea. This not only gets rid of the warning, but it guarantees
>> that Cygwin's getopt.h won't be included during the texlive build.
>> How's this:
>>
>> --- c-unistd.h.orig 2012-02-21 18:56:49.000000000 -0500
>> +++ c-unistd.h 2012-02-27 07:58:51.290463800 -0500
>> @@ -24,6 +24,9 @@
>> #include <kpathsea/systypes.h>
>>
>> #if HAVE_UNISTD_H
>> +#ifdef __CYGWIN__
>> +#include <kpathsea/getopt.h>
>> +#endif
>> #include <unistd.h>
>> #endif
>
> Hi Ken,
>
> applied (r25514). Unfortunately this is no guarantee because one can always
> explicitly #include <unistd.h> early on.

Hi Peter,

I think this change has to be reverted; it breaks compilation of gsftopk:

../../../texk/gsftopk/gsftopk.c:418:8: error: redefinition of 'struct 
option'
/home/kbrown/src/texlive/Build/test/texk/kpathsea/getopt.h:99:8: note: 
originally defined here
Makefile:377: recipe for target `gsftopk.o' failed

Regards,

Ken



More information about the tlbuild mailing list