<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">naemon on linux works great, thanks for all that.</div><div class="">we are running some AIX hosts so we compiled naemon for AIX.</div><div class="">it took a long time and hard debugging until we got it running on AIX without dumping all the time.</div><div class="">i want to give back our findings to the community.</div><div class=""><br class=""></div><div class="">i hope you will check the patches and let it be integrated, so other can run naemon on AIX…</div><div class=""><br class=""></div><div class=""><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">Using Prereqs:<o:p class=""></o:p></span></font></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">gcc-8.1.0-2.ppc<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">m4-1.4.17-1.ppc<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">automake-1.16.1-1.noarch<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">Compile NAEMON on AIX7.2 (naemon-core version 1.1.0)<o:p class=""></o:p></span></font></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">touch src/getopt.h<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt;" class="">Patch: lib/runcmd.c<o:p class=""></o:p></span></font></b></div><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New"; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><font size="2" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt;" class="">61c61<o:p class=""></o:p></span></font></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New"; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><font size="2" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt;" class="">< #ifdef OPEN_MAX<o:p class=""></o:p></span></font></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New"; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><font size="2" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt;" class="">---<o:p class=""></o:p></span></font></pre><pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New"; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><font size="2" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt;" class="">> #if defined(OPEN_MAX) && !defined(RLIMIT_NOFILE)<o:p class=""></o:p></span></font></pre><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="DE" style="font-size: 11pt;" class="">lib/nsock.c patchen:<o:p class=""></o:p></span></font></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">84c84<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< if (listen(sock, 3) < 0) {<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">---<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">> if (listen(sock, 50) < 0) {<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt;" class="">Patch: src/naemon/naemon.c<o:p class=""></o:p></span></font></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">162c162<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< c = getopt(argc, argv, "+hVvdspuxTW");<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">---<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">> c = getopt(argc, argv, "+hVvdspuxTW:");<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt;" class="">Patch: src/naemon/workers.c<o:p class=""></o:p></span></font></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">503c503,505<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< WCOREDUMP(wpres.wait_status) ? " (core dumped)" : "",<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">---<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">> //14/05/2018 For some reason this WCOREDUMP macro is not implemented in AIX<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">> //WCOREDUMP(wpres.wait_status) ? " (core dumped)" : "",<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">> " (worker possibly core dumped?)",<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">655c657<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< char * argvec[] = {naemon_binary_path, "--worker", qh_socket_path, NULL};<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">---<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">> char * argvec[] = {naemon_binary_path, "-W", qh_socket_path, NULL};<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">Configure 32bit:<o:p class=""></o:p></span></font></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">PATH=$PATH:/usr/local/bin<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">export PKG_CONFIG_PATH=/opt/freeware/lib/pkgconfig<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">./configure --prefix= --localstatedir=/var/lib/naemon --with-lockfile=/var/lib/naemon --with-logdir=/var/log 'CPPFLAGS=-D_LINUX_SOURCE_COMPAT'<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">Configure 64bit:<o:p class=""></o:p></span></font></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">PATH=$PATH:/usr/local/bin<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">export PKG_CONFIG_PATH=/opt/freeware/lib/pkgconfig<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Calibri" class=""><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif; color: windowtext;" class="">./configure CC="gcc" CFLAGS="-maix64 -mminimal-toc" CXX="g++" CXXFLAGS="-maix64 -mminimal-toc" NM="nm -X64" AR="ar -X64" LDFLAGS="-maix64" EXTLDFLAGS="-maix64" --prefix= --localstatedir=/var/lib/naemon --with-lockfile=/var/lib/naemon --with-logdir=/var/log 'CPPFLAGS=-D_LINUX_SOURCE_COMPAT'<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">Patch: Makefile<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">1057c1057<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< src_naemon_naemon_LDFLAGS = -rdynamic<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">---<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">> src_naemon_naemon_LDFLAGS =<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">1059c1059<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< LDADD = <a href="http://libnaemon.la/" style="color: rgb(149, 79, 114);" class="">libnaemon.la</a> $(GLIB_LIBS) -lm -ldl<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">---<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">> LDADD = <a href="http://libnaemon.la/" style="color: rgb(149, 79, 114);" class="">libnaemon.la</a> -lg $(GLIB_LIBS) -lm -ldl<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">1064c1064<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< libnaemon_la_LIBADD = $(GLIB_LIBS)<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">---<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">> libnaemon_la_LIBADD = -lg $(GLIB_LIBS) -lm<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">Compile:<o:p class=""></o:p></span></font></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">gmake<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">gmake install</span></font><font color="black" class=""><span lang="EN-US" style="color: windowtext;" class=""><o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">NSCA for AIX:<o:p class=""></o:p></span></font></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">Patch </span></font></b><b class=""><span lang="EN-US" class="">src/nsca.c<o:p class=""></o:p></span></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="DE" style="font-size: 10pt; color: windowtext;" class="">diff nsca-2.9.2/src/nsca.c nsca-2.9.2.orig/src/nsca.c<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< #include <stdarg.h><o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">81,112d79<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< int asprintf(char **ret, const char *format, ...)<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< {<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< va_list ap;<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class=""><<o:p class=""> </o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< *ret = NULL; /* Ensure value can be passed to free() */<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class=""><<o:p class=""> </o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< va_start(ap, format);<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< int count = vsnprintf(NULL, 0, format, ap);<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< va_end(ap);<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class=""><<o:p class=""> </o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< if (count >= 0)<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< {<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< char* buffer = malloc(count + 1);<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< if (buffer == NULL)<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< return -1;<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class=""><<o:p class=""> </o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< va_start(ap, format);<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< count = vsnprintf(buffer, count + 1, format, ap);<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< va_end(ap);<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class=""><<o:p class=""> </o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< if (count < 0)<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< {<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< free(buffer);<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< return count;<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< }<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< *ret = buffer;<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< }<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class=""><<o:p class=""> </o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< return count;<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< }<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class=""><<o:p class=""> </o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class=""><<o:p class=""> </o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">613c580<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">< log_facility=LOG_LOCAL0;<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="DE" style="font-size: 10pt; color: windowtext;" class="">---<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="DE" style="font-size: 10pt; color: windowtext;" class="">> log_facility=LOG_FTP;<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><b class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class="">Configure & Compile:<o:p class=""></o:p></span></font></b></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">./configure --with-nsca-user=naemon --with-nsca-grp=naemon --with-mcrypt-lib=/usr/local/lib --with-mcrypt-inc=/usr/local/include --with-libmcrypt-prefix=/usr/local\ <o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class="">CPPFLAGS=-D_LINUX_SOURCE_COMPAT 'LDFLAGS=-L/opt/freeware/lib -L/usr/local/lib -L/usr/local/lib -lmcrypt'<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="EN-US" style="font-size: 10pt; color: windowtext;" class=""> </span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="DE" style="font-size: 10pt; color: windowtext;" class="">gmake clean<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Courier New" class=""><span lang="DE" style="font-size: 10pt; color: windowtext;" class="">gmake all<o:p class=""></o:p></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Arial, sans-serif; color: black;" class=""><font size="2" color="black" face="Arial" class=""><span lang="EN-US" style="font-size: 11pt; color: windowtext;" class=""> </span></font></div></div></div></div></div></body></html>