nagios 2.0rc1 on Solaris

Alex Moore asmoore at edge.net
Wed Dec 28 05:16:54 CET 2005


I am getting the following error while trying to build 2.0rc1 on
Solaris 8.  It appears that Solaris does not understand a shared object
named with a .o extension.  Is that correct?  What should I do to get
around this?

My configure statement is:
./configure \
    --prefix=/opt/csw/nagios \
    --mandir=/opt/csw/share/man \
    --x-includes=/usr/openwin/include \
    --x-libraries=/usr/openwin/lib \
    --with-nagios-user=nagios \
    --with-nagios-grp=nagios \
    --with-mysql-lib=/opt/csw/mysql4/lib/mysql \
    --with-mysql-inc=/opt/csw/mysql4/include \
    --with-gd-lib=/opt/csw/lib \
    --with-gd-inc=/opt/csw/include \
    --enable-embedded-perl \
    --with-perlcache

The compile error is:

gmake[1]: Entering directory
`/export/medusa/asmoore/build/nagios-2.0rc1/module' 
/opt/studio/SOS8/SUNWspro/bin/cc -xarch=386 -I/opt/csw/include
-D_REENTRANT -xO3 -xarch=386 -xspace -xildoff -I/opt/csw/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/opt/csw/lib/perl/5.8.7/CORE  -DHAVE_CONFIG_H  -o helloworld.o
helloworld.c -L/opt/csw/lib -L/opt/csw/mysql4/lib/mysql -L/opt/csw/lib
-G -lrt 
"helloworld.c", line 39: warning: syntax error:  empty declaration 
"helloworld.c", line 68: warning: argument #8 is incompatible with
prototype: 
	prototype: pointer to void : "../include/nagios.h", line 518
	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 
gmake[1]: Leaving directory
`/export/medusa/asmoore/build/nagios-2.0rc1/module' gmake: *** [all]
Error 2


Thanks, Alex

-- 


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list