[Nagiosplug-help] Plugin Compile Error on HP-UX

Knut Meidal Knut.Meidal at om.com
Thu Mar 6 08:56:38 CET 2003

Plugin compile on HP-UX 11.00

I'm getting errors when compiling the plugins.
Running gcc version 3.2 20020708 (binary install)

The nrpe source compiled (barely) after removing the -g flag.
I've tried removing the -g compiler flag in the various plugin Makefiles, no

Below is a list of output from ./configure and make all

I would appreciate any insights,

Knut Meidal

Configure Warnings:

checking for pow in -lm... (cached) no
configure: warning: can't find library containing definition of pow
./configure[6758]: swap:  not found.

make all
No suffix list.
Making all in lib
        gcc -DHAVE_CONFIG_H -I. -I. -I../plugins -I../plugins -I../plugins
-I../plugins -I../plugins -I../plugins -I.    -g -O2 -c getopt.c
        gcc -DHAVE_CONFIG_H -I. -I. -I../plugins -I../plugins -I../plugins
-I../plugins -I../plugins -I../plugins -I.    -g -O2 -c getopt1.c
        gcc -DHAVE_CONFIG_H -I. -I. -I../plugins -I../plugins -I../plugins
-I../plugins -I../plugins -I../plugins -I.    -g -O2 -c getloadavg.c
        rm -f libnagiosplug.a
        ar cru libnagiosplug.a getopt.o getopt1.o getloadavg.o
        ranlib libnagiosplug.a
Making all in plugins
        gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib
-O2 -c check_disk.c
In file included from check_disk.c:34:
common.h:100: error: conflicting types for `snprintf'
error: previous declaration of `snprintf'
common.h:104: error: parse error before "va_list"
*** Error exit code 1

*** Error exit code 1


Knut Meidal

More information about the Help mailing list