Sorry, I should have caught this trivial fix before the final release was o=
ut. In common/macros.c, the current=0Acode says:=0A=0A#include "../include=
/macros.h"=0A#include "../include/config.h"=0A=0ABut this doesn't do the ri=
ght thing, with regard to=0Adefining the _GNU_SOURCE symbol so the compiler=
doesn't=0Acomplain about the asprintf() calls. The problem is that=0Amacr=
os.h eventually includes , which itself=0Aincludes , wh=
ich is where _GNU_SOURCE gets=0Aturned into the __USE_GNU symbol that is ac=
tually used=0Ain to provide a definition for asprintf().=0ASo the=
definition of _GNU_SOURCE at the top of config.h=0Acomes too late to do an=
y good.=0A=0ALong story short, the order of those two lines in=0Acommon/mac=
ros.c needs to be reversed:=0A=0A#include "../include/config.h"=0A#include =
"../include/macros.h"=0A=0AAlso in the way of trivial fixes, compilation of=
=0Acgiutils.c yields the warning:=0A=0Acgiutils.c: In function 'include_ssi=
_files':=0Acgiutils.c warning: unused variable 'x'=0A=0AThis ought to=
be suppressed by removing the obsolete=0Adeclaration.=0A=0A--- On Sat, 3/9=
/13, Eric Stanley wrote:=0A=0A> From: Eric Stanley =0A> Subject: [Nagios-devel] Nagios Core 3.5.0rc2=0A> To=
: "Nagios Developers List" =0A> Date: S=
aturday, March 9, 2013, 2:37 PM=0A> I have just uploaded another Nagios=0A>=
Core release candidate. Thanks to =0A> Phil Randal for find and reporting =
an issue.=0A> =0A> You can download the 3.5.0rc2 tarball from =0A> http://s=
ourceforge.net/projects/nagios/files/nagios-3.x/nagios-3.5.0/nagios-3.5.0rc=
2.tar.gz/download.=0A> =0A> Feel free to compile and try it out. I will rel=
ease 3.5.0=0A> about midweek =0A> unless I hear of significant issues.=0A> =
=0A> The complete changelog since 3.4.4 is as follows:=0A> =0A> * Fixed bug=
#403: The "configuration" page of the webui=0A> doesn't use =0A> entity en=
coding=0A> when displaying the "command expansion" item (Eric Stanley,=0A> =
Phil Randal)=0A> * Fixed bug #424: Nagios Core 3.4.4 seg fault (core dump) =
on=0A> restart =0A> after removing=0A> config for running service (Eric Sta=
nley)=0A> * Updated CGI utility functions to support UTF-8 characters=0A> (=
Eric Stanley)=0A> * Fixed bug where selecting Command Expansion from=0A> Co=
nfiguration CGI =0A> page would disp=0A> lay commands instead (Eric Stanley=
)=0A> * Fixed bug #369: status.cgi crashes with segfault when=0A> there are=
german =0A> ulauts (=E4=F6=FC=0A> =DF) in the hostname or the servicename =
(Eric Stanley)=0A> * Fixed bug #418: Scheduled Downtime Notifications Resen=
t On=0A> Nagios =0A> Restart/reload (=0A> Eric Stanley)=0A> =0A> -- =0A> Er=
ic Stanley=0A> ___=0A> Developer=0A> Nagios Enterprises, LLC=0A> Email:=A0 =
estanley@nagios.com=0A> Web:=A0 =A0 www.nagios.com=0A> =0A> =0A> ----------=
--------------------------------------------------------------------=0A> Sy=
mantec Endpoint Protection 12 positioned as A LEADER in=0A> The Forrester=
=A0 =0A> Wave(TM): Endpoint Security, Q1 2013 and "remains a good=0A> choic=
e" in the=A0 =0A> endpoint security space. For insight on selecting the rig=
ht=0A> partner to =0A> tackle endpoint security challenges, access the full=
report.=0A> =0A> http://p.sf.net/sfu/symantec-dev2dev=0A> ________________=
_______________________________=0A> Nagios-devel mailing list=0A> Nagios-de=
vel@lists.sourceforge.net=0A> https://lists.sourceforge.net/lists/listinfo/=
nagios-devel=0A>
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: eponymousalias@yahoo.com