[Nagiosplug-devel] [ nagiosplug-Patches-635536 ] compilation problem solution for HP-UX!
    SourceForge.net 
    noreply at sourceforge.net
       
    Fri Feb 21 11:54:09 CET 2003
    
    
  
Patches item #635536, was opened at 2002-11-08 10:33
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: None
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-01-28 23: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