Page 1 of 1

[Nagios-devel] nrpe-2.12 patch for Solaris

Posted: Wed Dec 17, 2008 2:49 pm
by Guest
------=_Part_14221_33498407.1229525389312
Content-Type: multipart/alternative;
boundary="----=_Part_14222_13268505.1229525389312"

------=_Part_14222_13268505.1229525389312
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Attached diff-output contains a patch to get nrpe to compile on Solaris
(both 9 and 10).

"The Single UNIX Specification Version 2" doesn't specify neither LOG_FTP,
LOG_AUTHPRIV and LOG_SYSLOG to be defined (don't know if it has been changed
in SUS v3).

Although LOG_SYSLOG actually exists on Solaris, I've put same ifdef around
that also, just to point out that also is undefined in SUS v2.

Mybee this should be done as a part of configure, but I'll leave that to
someone who are familiar with autoconf...

------=_Part_14222_13268505.1229525389312
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Attached diff-output contains a patch to get nrpe to compile on Solaris (both 9 and 10)."The Single UNIX Specification Version 2" doesn't specify neither LOG_FTP, LOG_AUTHPRIV and LOG_SYSLOG to be defined (don't know if it has been changed in SUS v3).
Although LOG_SYSLOG actually exists on Solaris, I've put same ifdef around that also, just to point out that also is undefined in SUS v2.Mybee this should be done as a part of configure, but I'll leave that to someone who are familiar with autoconf...

------=_Part_14222_13268505.1229525389312--

------=_Part_14221_33498407.1229525389312
Content-Type: application/octet-stream; name=nrpe-patch
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fou2uure0
Content-Disposition: attachment; filename=nrpe-patch

KioqIHNyYy9ucnBlLmMub3JpZwlNb24gTWFyIDEwIDIyOjA0OjQzIDIwMDgNCi0tLSBzcmMvbnJw
ZS5jCVdlZCBEZWMgMTcgMTM6MzE6MzYgMjAwOA0KKioqKioqKioqKioqKioqDQoqKiogNjAzLDYx
MCAqKioqDQotLS0gNjAzLDYxMiAtLS0tDQogIAkJbG9nX2ZhY2lsaXR5PUxPR19EQUVNT047DQog
IAllbHNlIGlmKCFzdHJjbXAodmFydmFsdWUsImF1dGgiKSkNCiAgCQlsb2dfZmFjaWxpdHk9TE9H
X0FVVEg7DQorICNpZmRlZiBMT0dfU1lTTE9HDQogIAllbHNlIGlmKCFzdHJjbXAodmFydmFsdWUs
InN5c2xvZyIpKQ0KICAJCWxvZ19mYWNpbGl0eT1MT0dfU1lTTE9HOw0KKyAjZW5kaWYNCiAgCWVs
c2UgaWYoIXN0cmNtcCh2YXJ2YWx1ZSwibHJwIikpDQogIAkJbG9nX2ZhY2lsaXR5PUxPR19MUFI7
DQogIAllbHNlIGlmKCFzdHJjbXAodmFydmFsdWUsIm5ld3MiKSkNCioqKioqKioqKioqKioqKg0K
KioqIDYxMyw2MjIgKioqKg0KLS0tIDYxNSw2MjggLS0tLQ0KICAJCWxvZ19mYWNpbGl0eT1MT0df
VVVDUDsNCiAgCWVsc2UgaWYoIXN0cmNtcCh2YXJ2YWx1ZSwiY3JvbiIpKQ0KICAJCWxvZ19mYWNp
bGl0eT1MT0dfQ1JPTjsNCisgI2lmZGVmIExPR19BVVRIUFJJVg0KICAJZWxzZSBpZighc3RyY21w
KHZhcnZhbHVlLCJhdXRocHJpdiIpKQ0KICAJCWxvZ19mYWNpbGl0eT1MT0dfQVVUSFBSSVY7DQor
ICNlbmRpZg0KKyAjaWZkZWYgTE9HX0ZUUA0KICAJZWxzZSBpZighc3RyY21wKHZhcnZhbHVlLCJm
dHAiKSkNCiAgCQlsb2dfZmFjaWxpdHk9TE9HX0ZUUDsNCisgI2VuZGlmDQogIAllbHNlIGlmKCFz
dHJjbXAodmFydmFsdWUsImxvY2FsMCIpKQ0KICAJCWxvZ19mYWNpbGl0eT1MT0dfTE9DQUwwOw0K
ICAJZWxzZSBpZighc3RyY21wKHZhcnZhbHVlLCJsb2NhbDEiKSkNCg==
------=_Part_14221_33498407.1229525389312--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]