[Nagiosplug-devel] [ nagiosplug-Patches-635536 ] compilation problem solution for HP-UX!
noreply at sourceforge.net
noreply at sourceforge.net
Fri Nov 8 08:48:03 CET 2002
Patches item #635536, was opened at 2002-11-08 16:33
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=635536&group_id=29880
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Alexandre ARMENGAUD (armengaud)
Assigned to: Nobody/Anonymous (nobody)
Summary: compilation problem solution for HP-UX!
Initial Comment:
Like many people here I had troubles compiling nagios plugins
on HP-UX.
I wanted to solve it cleanly, so I took the last CVS version and
tried to debug it.
I found several problems, that I could solve in the "configure.in"
file.
There was a problem in the snprintf.c : I guess it's a bug in the
original file from SAMBA, but I didn't dare touching it (there is a
test on if not defined HAVE_C99_SNPRINTF that isn't defined
anywhere). I added a test in configure.in for HP-UX to define it,
and the "#undef HAVE_C99_SNPRINTF" in the acconfig.h
There was also problem in the order of test of functions that
made them fail (probably because of snprintf). I solved that by
changing test order.
I changed also the configuration to make swap_format work, but
it's a little dirty because I didn't want to touch the C source, so I
made used a shell command to have the good swapinfo format.
All seems ok now, and I tested the same configuration files on
Linux, and it's working.
I join the diff file for this new configuration (files configure.in and
acconfig.h)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=635536&group_id=29880
More information about the Devel
mailing list