[Nagiosplug-devel] [ nagiosplug-Patches-635536 ] compilation problem solution for HP-UX!
SourceForge.net
noreply at sourceforge.net
Mon Apr 7 17:07:14 CEST 2003
Patches item #635536, was opened at 2002-11-08 15:33
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=635536&group_id=29880
Category: Bugfix
Group: None
Status: Open
>Resolution: Out of Date
Priority: 5
Submitted By: Alexandre ARMENGAUD (armengaud)
Assigned to: Ton Voon (tonvoon)
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)
----------------------------------------------------------------------
>Comment By: Ton Voon (tonvoon)
Date: 2003-04-08 01:22
Message:
Logged In: YES
user_id=664364
I think this patch is out of date as I think HP-UX builds are currently okay.
If there are no updates after 7 days, I'll close this call.
Ton
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2003-01-29 04:47
Message:
Logged In: YES
user_id=664364
Alexandre,
Thanks for this patch. It looks very interesting, but I am having problems applying your fix to CVS. Can you send me a context or unified diff for the latest CVS version and I'll update it straight away for you to test.
Ton
----------------------------------------------------------------------
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