[Nagios-devel] Configure changes to nrpe to get it to build on Solaris 8

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Configure changes to nrpe to get it to build on Solaris 8

Post by Guest »

--HDP4tC79xt
Content-Type: text/plain; charset=us-ascii
Content-Description: message body and .signature
Content-Transfer-Encoding: 7bit

I'm not sure whether nrpe was expected to build on Solaris 8 or not, but it
didn't for me under the following circumstances:

* gcc 3.2.3 as installed from the SunFreeware site

* no other GNU tools (just Sun's make, ar, etc in /usr/ccs/bin)

* OpenSSL in /usr/local/ssl/... (again, installed from binaries on
SunFreeware)

I encountered the following problems:

* There was no definition of u_int32_t - whatever was there in the
configure script wasn't working. I ripped out what was there and
added a AC_DEFINE_INTEGER_BITS m4 macro and associated supporting bits
I found at

http://www.gnu.org/software/ac-archive/ ... _bits.html

This seems to be more reliable.

* -I/usr/local/ssl/include was not included in CFLAGS. I tweaked the
OpenSSL detection and added -I$ssldir/include to CFLAGS if $ssldir
wasn't /usr or /usr/local (explicitly adding /usr/include or
/usr/local/include to include file search paths makes gcc complain).

I used autoconf 2.57 on my Mac OS X system to rebuild the configure file
then copied the generated configure file and other modified files to the
Solaris system and verified that nrpe would build on both platforms. I also
copied the modified package over to a RH 7.3 system and verified I could
rebuild configure with autoconf (2.53 - it failed with 2.13) and
successfully configure and build the package there as well.

Attached is the context diff.

--
Skip Montanaro
[email protected]
Got spam? http://spambayes.sf.net/


--HDP4tC79xt
Content-Type: application/octet-stream
Content-Disposition: attachment;
filename="nrpe.diffs"
Content-Transfer-Encoding: base64

KioqIG5ycGUtMi4wYjQvY29uZmlndXJlLmluCVdlZCBKdW4gIDQgMTg6MDc6NDcgMjAwMwot
LS0gbnJwZS0yLjBiNC1sb2NhbC9jb25maWd1cmUuaW4JVGh1IEp1biAxOSAxMDoxMTowMyAy
MDAzCioqKioqKioqKioqKioqKgoqKiogMzcsNTkgKioqKgogIEFDX1RZUEV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V9ieXRlc10sIFttNF9ldmFsKGFjX2RhdGF0
eXBlX2JpdHMvOCldKQohIEFDX0NIRUNLX1RZUEUoJDEsICwKISAgWwohICAgQUNfTVNHX05P
VElDRShbdHJ5aW5nIHRvIGZpbmQgYSBzdWl0YWJsZSBdYWNfZGF0YXR5cGVfYnl0ZXNbLWJ5
dGUgcmVwbGFjZW1lbnQgZm9yICQxXSkKISAgICQxPW5vCiEgICBmaW5kXyQxICgpCiEgICB7
CiEgICAgIF9BQ19ERUZJTkVfSU5URUdFUl9CSVRTX0hFTFBFUigkQCkKISAgICAgOgohICAg
fQohICAgZmluZF8kMQohICAgQUNfREVGSU5FX1VOUVVPVEVEKCQxLCAkJDEsCiEgICAgIFtJ
ZiBub3QgYWxyZWFkeSBkZWZpbmVkLCB0aGVuIGRlZmluZSBhcyBhIGRhdGF0eXBlIG9mICpl
eGFjdGx5KiBdYWNfZGF0YXR5cGVfYml0c1sgYml0cy5dKQohICBdKQohIF0pCiEgCiEgZG5s
IEl0ZXJhdGUgb3ZlciBhcmd1bWVudHMgJDIuLiROLCB0cnlpbmcgdG8gZmluZCBhIGdvb2Qg
bWF0Y2ggZm9yICQxLgohIG00X2RlZmluZShbX0FDX0RFRklORV9JTlRFR0VSX0JJVFNfSEVM
UEVSXSwKISBbaWZlbHNlKCQyLCAsICwKISAgW200X2RlZmluZShbYWNfZGF0YXR5cGVfYml0
c10sIFttNF90cmFuc2xpdCgkMSwgW2EtekEtWl9dKV0pCiEgICBtNF9kZWZpbmUoW2FjX2Rh
dGF0eXBlX2J5dGVzXSwgW200X2V2YWwoYWNfZGF0YXR5cGVfYml0cy84KV0pCiEgICBBQ19D
SEVDS19TSVpFT0YoJDIpCiEgICBpZiB0ZXN0ICIkQVNfVFJfU0goYWNfY3Zfc2l6ZW9mXyQy
KSIgLWVxIGFjX2RhdGF0eXBlX2J5dGVzOyB0aGVuCiEgICAgICQxPSIkMiIKISAgICAgcmV0
d

...[email truncated]...


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