module/helloworld.c failing to build

David Halik dhalik at jla.rutgers.edu
Mon Dec 17 23:19:23 CET 2007


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

-- 
================================
David Halik
Student Programmer
OSS/NBCS - OIT Rutgers
dhalik at jla.rutgers.edu
================================ 


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace




More information about the Developers mailing list