Posts Tagged ‘cygwin’

Compiling nagios plugins with cygwin: handling ./configure problem with ICMP

Wednesday, June 24th, 2009

To build nagios plugins in windows, one should start cygwin and execute ./configure and make commands. While doing this, I faced with problem: ./configure script just hangs on the “checking for ICMP ping syntax” line.

Since I needed only one plugin (check_http) and I’m not familiar with icmp, cygwin and bash, I simply removed lines from ./configure:

{ echo "$as_me:$LINENO: checking for ICMP ping syntax" >&5
echo $ECHO_N "checking for ICMP ping syntax... $ECHO_C" >&6; }
ac_cv_ping_packets_first=no
ac_cv_ping_has_timeout=no
[REMOVE_THIS]
if test -n "$with_ping_command"
then
    { echo "$as_me:$LINENO: result: (command-line) $with_ping_command" >&5
.....
.....
echo "${ECHO_T}$with_ping_command" >&6; }

else
    { echo "$as_me:$LINENO: WARNING: unable to find usable ping syntax" >&5
echo "$as_me: WARNING: unable to find usable ping syntax" >&2;}
fi
[/REMOVE_THIS]

cat >>confdefs.h <<_ACEOF
#define PING_COMMAND "$with_ping_command"
_ACEOF

After this ./configure finished it’s work. Then I called make, it built 23 plugins before thew the error and died. Luckily create_http.exe was created.