|
From: | Jay |
Subject: | RE: groff 1.20 on Interix (all_source) |
Date: | Wed, 24 Jun 2009 15:29:36 +0000 |
The autoconf tests are run without the #define of _ALL_SOURCE so they get a different view of if things are declared or not. This is a common problem with autoconf. If you can foist the _ALL_SOURCE into the autoconf runs of the compiler, then maybe more success. - Jay > Date: Wed, 24 Jun 2009 14:59:54 +0200 > To: address@hidden > CC: address@hidden > Subject: Re: groff 1.20 on Interix (all_source) > From: address@hidden > > > > It would be nice to just: > > > > #if defined(__INTERIX) && !defined(_ALL_SOURCE) > > #define _ALL_SOURCE > > #endif > > Indeed, this seems to be the right solution. > > > in lib.h, but that invites clashing declarations like: > > > > > > /src/groff-1.20/src/include/lib.h:120: error: declaration of C function `int > > strncasecmp(const char*, const char*, int)' conflicts with > > /usr/include/strings.h:68: error: previous declaration `int strncasecmp(const > > char*, const char*, unsigned int)' here > > > > > > and similar for putenv. > > How comes? There is an explicit autoconf test which controls the > NEED_DECLARATION_STRNCASECMP and NEED_DECLARATION_PUTENV macros. > Maybe the GROFF_NEED_DECLARATION macro in m4/groff.m4 is broken for > your platform. Can you check config.log, please? Your patches fix > the symptoms but not the cause :-) > > > Werner |
[Prev in Thread] | Current Thread | [Next in Thread] |