[rrd-developers] Fix for "__STRICT_ANSI__" is not defined

Tobias Oetiker tobi at oetiker.ch
Mon May 7 09:31:55 CEST 2012

Hi Gilles,

Saturday g.esp at free.fr wrote:

> while compiling rrdtool-1.4.7 under linux with gcc-4.4.5, I spotted those warnings
> In file included from rrd_i18n.h:18,
>                  from rrd_tool.c:21:
> gettext.h:176:6: warning: "__STRICT_ANSI__" is not defined
> gettext.h:200:5: warning: "__STRICT_ANSI__" is not defined
> gettext.h:215:6: warning: "__STRICT_ANSI__" is not defined
> gettext.h:246:5: warning: "__STRICT_ANSI__" is not defined
> gettext.h:261:6: warning: "__STRICT_ANSI__" is not defined
> In the light of this gnulib thread, adding a defined is the way to fix that:
> http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00173.html
> I made a patch for the 1.4 branch, it compile fine. Apply with -p3 to the package.
> Same change should work for 1.3 and trunk, untested by me.
> Those warning are already reported as http://oss.oetiker.ch/rrdtool-trac/ticket/337
> I know gettext original libgettextpo.h.in is still unchanged (but does not emit this warning)

thanks ... I have added your patch in r2288

> Thank for rrdtool.
> Gilles

Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900

More information about the rrd-developers mailing list