Page 1 of 1

[Nagios-devel] Compiling nagios nsca plugin on OSX

Posted: Wed Nov 26, 2003 1:28 am
by Guest
Hello,=20


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
>=20
> *** Compile finished ***
>=20
> If the compile finished without any errors, you should
> find client and server binaries in the src/ subdirectory.
>=20
> 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.

________________________________________________
=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7
=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]