Page 1 of 1

Re: [Nagios-devel] success compiling NSCA on AIX 5.3 with gcc

Posted: Thu Jul 06, 2006 12:15 pm
by Guest
Vonnahme, Nathan wrote:
> It's been way more complicated and weird than I expected, but I got the
> send_nsca client to compile on AIX 5.3
>
> First I had to get the prereqs right:
>
> - installed libmcrypt from source (http://mcrypt.sourceforge.net/)
> I had to hack the Makefile to remove '-1.7' in a few places for
> some reason
> - installed Berkley DB (db-3.3.11-4.aix5.1.ppc.rpm) from IBM's Toolbox
> for Linux apps
> (http://www-03.ibm.com/servers/aix/produ ... nload.html)
> - installed tcp_wrappers installp package from
> http://www.bullfreeware.com/
>
> When I ran ./configure on AIX, the 'make' broke (see output below). So
> then, and this is the spooky part, I ran ./configure on a Linux machine
> (RHEL4), and 'make send_nsca' then worked on my AIX machine:
>
> $ make send_nsca
> cd ./src/; make send_nsca ; cd ..
> gcc -g -O2 -DHAVE_CONFIG_H -o send_nsca send_nsca.c netutils.c
> utils.c -lnsl
>
> The binary appears to work fine.
>
> I am ignorant about make/configure stuff, but I think the configure
> script is based on really old AIXes and when it sees "aix" it thinks it
> should complicate things a lot. But AIX 5L is (deliberately) very
> linux-like, especially when it comes to running gcc. One of the goals
> for AIX 5L was supposed to be "100% source compatibility with Linux"
>
> Maybe someone who knows more about automake/autoconf could fix the
> configure script? I'm happy to test...
>

I'm not an AIX guy, so I can't help too much. When did 5L get released?
Also, are you using the latest release of NSCA? The
aclocal.m4/config.guess/config.sub files were updated in
January/February with the latest OS detection stuff.

Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





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