Compiling nagios nsca plugin on OSX
Greg Bernard
nagios at todoo.biz
Wed Nov 26 10:20:54 CET 2003
Hello,
I am trying to compile nsca the remote plugin execution for NAGIOS but I
can't achieve that because of error when I am compile :
> [lapac:~/Tmp/nsca-2.4] greg% sudo make all
> Password:
> cd ./src/; make all ; cd ..
> gcc -g -O2 -DHAVE_CONFIG_H -o nsca nsca.c netutils.c utils.c
> nsca.c: In function `register_poll':
> nsca.c:449: invalid use of undefined type `struct pollfd'
> nsca.c:449: dereferencing pointer to incomplete type
> nsca.c:450: invalid use of undefined type `struct pollfd'
> nsca.c:450: dereferencing pointer to incomplete type
> nsca.c:458: sizeof applied to an incomplete type
> nsca.c:462: sizeof applied to an incomplete type
> nsca.c:465: invalid use of undefined type `struct pollfd'
> nsca.c:465: dereferencing pointer to incomplete type
> nsca.c:466: invalid use of undefined type `struct pollfd'
> nsca.c:466: dereferencing pointer to incomplete type
> nsca.c: In function `register_read_handler':
> nsca.c:477: `POLLIN' undeclared (first use in this function)
> nsca.c:477: (Each undeclared identifier is reported only once
> nsca.c:477: for each function it appears in.)
> nsca.c: In function `register_write_handler':
> nsca.c:511: `POLLOUT' undeclared (first use in this function)
> nsca.c: In function `handle_events':
> nsca.c:579: invalid use of undefined type `struct pollfd'
> nsca.c:579: dereferencing pointer to incomplete type
> nsca.c:579: `POLLIN' undeclared (first use in this function)
> nsca.c:579: invalid use of undefined type `struct pollfd'
> nsca.c:579: dereferencing pointer to incomplete type
> nsca.c:579: `POLLERR' undeclared (first use in this function)
> nsca.c:579: `POLLHUP' undeclared (first use in this function)
> nsca.c:579: `POLLNVAL' undeclared (first use in this function)
> nsca.c:580: invalid use of undefined type `struct pollfd'
> nsca.c:580: dereferencing pointer to incomplete type
> nsca.c:581: invalid use of undefined type `struct pollfd'
> nsca.c:581: dereferencing pointer to incomplete type
> nsca.c:586: invalid use of undefined type `struct pollfd'
> nsca.c:586: dereferencing pointer to incomplete type
> nsca.c:588: invalid use of undefined type `struct pollfd'
> nsca.c:588: dereferencing pointer to incomplete type
> nsca.c:588: `POLLOUT' undeclared (first use in this function)
> nsca.c:588: invalid use of undefined type `struct pollfd'
> nsca.c:588: dereferencing pointer to incomplete type
> nsca.c:589: invalid use of undefined type `struct pollfd'
> nsca.c:589: dereferencing pointer to incomplete type
> nsca.c:590: invalid use of undefined type `struct pollfd'
> nsca.c:590: dereferencing pointer to incomplete type
> nsca.c:595: invalid use of undefined type `struct pollfd'
> nsca.c:595: dereferencing pointer to incomplete type
> nsca.c:600: invalid use of undefined type `struct pollfd'
> nsca.c:600: dereferencing pointer to incomplete type
> nsca.c:602: invalid use of undefined type `struct pollfd'
> nsca.c:602: dereferencing pointer to incomplete type
> nsca.c:602: invalid use of undefined type `struct pollfd'
> nsca.c:602: dereferencing pointer to incomplete type
> nsca.c:603: invalid use of undefined type `struct pollfd'
> nsca.c:603: dereferencing pointer to incomplete type
> nsca.c:603: invalid use of undefined type `struct pollfd'
> nsca.c:603: dereferencing pointer to incomplete type
> make[1]: *** [nsca] Error 1
>
> *** Compile finished ***
>
> If the compile finished without any errors, you should
> find client and server binaries in the src/ subdirectory.
>
> Read the README file for more information on installing
> the binaries, creating configuration files, and using
> the server and client.
As I do not know anything about C I would like to know if someone has
succeeded in compiling this addon for NAGIOS.
I desperately need It...
Any clue that will help me solve this issue will be welcome.
Thanks.
________________________________________________
«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Gregober ---> PGP ID --> 0x1BA3C2FD
omni_osx_ml @at@ todoo.biz
________________________________________________
«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone." - Bjarne Stroustrup
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
More information about the Developers
mailing list