Re: [Nagios-devel] Compiling nagios nsca plugin on OSX
Posted: Tue Dec 02, 2003 6:58 pm
Hmmm.. searching on Google, it appears that poll() might not be
supported on Mac OSX. I'll look at implementing a workaround, but it
may take a while as this is not on the front burner. If anyone else
has a quick fix, please chime in.
On 26 Nov 2003 at 10:20, Greg Bernard wrote:
> 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
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
supported on Mac OSX. I'll look at implementing a workaround, but it
may take a while as this is not on the front burner. If anyone else
has a quick fix, please chime in.
On 26 Nov 2003 at 10:20, Greg Bernard wrote:
> 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
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]