Re: [Nagios-devel] module/helloworld.c failing to build

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] module/helloworld.c failing to build

Post by Guest »

David Halik wrote:
> I've had some difficulty getting module/helloworld.c to build and link
> in Solaris 9 with SunStudio. RC1 was the first time I've seen this
> particular problem since the betas all built fine. See below:
>
> gmake[1]: Entering directory
> `/usr/local/src/rpm-packages/BUILD/nagios-3.0rc1/module'
> cc -I/usr/local/include -DHAVE_CONFIG_H -o helloworld.o helloworld.c -G
> -L/usr/local/lib -R/usr/local/lib -L/usr/sfw/lib -R/usr/sfw/lib
> -L/usr/local/lib -lrt
> "/usr/include/dlfcn.h", line 149: warning: macro redefined: RTLD_NOW
> "/usr/include/dlfcn.h", line 152: warning: macro redefined: RTLD_GLOBAL
> "helloworld.c", line 39: warning: syntax error: empty declaration
> "helloworld.c", line 76: warning: argument #8 is incompatible with
> prototype:
> prototype: pointer to void : "../include/nagios.h", line 491
> argument : pointer to function(pointer to char) returning void
> ld: fatal: file helloworld.o: unknown file type
> ld: fatal: File processing errors. No output written to helloworld.o
> gmake[1]: *** [helloworld.o] Error 1
>

Thanks for the note. I'll get a patch into CVS shortly that should fix
this problem.


Ethan Galstad
Nagios Developer
___
Email: [email protected]
Web: www.nagios.org





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