success compiling NSCA on AIX 5.3 with gcc

Ethan Galstad nagios at nagios.org
Thu Jul 6 22:15:16 CEST 2006


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/products/aixos/linux/download.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: nagios at nagios.org
Website: http://www.nagios.org

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Developers mailing list