[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
change.

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.


Then;
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'
/usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.00/3.2/include/stdio.h:459:
error: previous declaration of `snprintf'
common.h:104: error: parse error before "va_list"
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.




Knut Meidal
________________________






More information about the Help mailing list