module/helloworld.c failing to build

Ethan Galstad nagios at nagios.org
Wed Dec 26 17:30:26 CET 2007


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: nagios at nagios.org
Web:   www.nagios.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list