Compiling errors Nagios 2.0 RC2 on Solaris 10 (SPARC)/Sun Studio 11

Mika Borner Mika.Borner at clariden.com
Mon Jan 23 09:20:34 CET 2006


I have problems compiling Nagios 2.0 RC2 on Sun Solaris 10 (SPARC) using
Sun Studio 11. It seems that there is a problem with embedded perl.
First I tried to enable embedded perl, it failed. After that, I tried to
make a prototype file for Solaris Packaging. Failes too. This looks
again like a embedded perl problem (See output below, comments
between):

## Running configure with CC pointing to Sun Studio 11 and Perl
embedded enabled (with cache)

$ ./configure --prefix=/u00/appl/nagios --with-htmurl=/nagios
--with-nagios-user=nagios --with-nagios-group=nagios
--with-command-group=nagcmd --with-cgiurl=/nagios/cgi-bin --with-PACKAGE
--with-gd-lib=/opt/csw/lib --with-gd-inc=/opt/csw/include
--enable-embedded-perl  --with-perlcache
--x-includes=/usr/openwin/include --x-libraries=/usr/openwin/lib
...
/opt/SUNWspro/bin/cc -g -I/opt/csw/include  -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO 
-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE  -DHAVE_CONFIG_H -DNSCORE
-o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o
events.o flapping.o logging.o notifications.o sehandlers.o utils.o
retention-base.o xretention-base.o comments-base.o xcomments-base.o
objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o
perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o  
perlxsi.o  -L/opt/csw/lib -R
/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE 
/usr/perl5/5.8.4/lib/sun4-solaris-64int/auto/DynaLoader/DynaLoader.a
-L/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -lperl -lsocket -lnsl
-ldl -lm -lc -lm  -lpthread -lltdl -lrt
Undefined                       first referenced
 symbol                             in file
PL_Sv                               checks.o
PL_op                              
/usr/perl5/5.8.4/lib/sun4-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
PL_errgv                            checks.o
PL_stack_max                        checks.o
PL_markstack_ptr                    checks.o
PL_markstack_max                    checks.o
PL_perl_destruct_level              utils.o
PL_Xpv                              checks.o
PL_curpad                          
/usr/perl5/5.8.4/lib/sun4-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
PL_sv_yes                          
/usr/perl5/5.8.4/lib/sun4-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
PL_stack_sp                         checks.o
PL_tmps_ix                          checks.o
PL_stack_base                       checks.o
PL_tmps_floor                       checks.o
ld: fatal: Symbol referencing errors. No output written to nagios
*** Error code 1
make: Fatal error: Command failed for target `nagios'
Current working directory /u00/appl/nagios/nagios-2.0rc2/base
*** Error code 1
make: Fatal error: Command failed for target `all'

############
## Ok, I don't "need" Enbedded-Perl. Configure without embedded-perl
(command ommitted):
###########

/opt/SUNWspro/bin/cc -g -I/opt/csw/include -DHAVE_CONFIG_H -o
helloworld.o helloworld.c -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
*** Error code 1
make: Fatal error: Command failed for target `helloworld.o'
Current working directory /u00/appl/nagios/nagios-2.0rc2/module
*** Error code 1
make: Fatal error: Command failed for target `all'

##########
# Ok, known error. Ommitting helloworld make. After that it works. Now,
I want a Prototype file for a Sun Package:
##########

$ make Prototype
...
cd contrib; make all; make DESTDIR=/u00/appl/nagios/nagios-2.0rc2/pkg
INIT_OPTS='' INSTALL_OPTS='' COMMAND_OPTS='' nagios_grp='' nagios_usr=''
install
perl -MExtUtils::Embed -e xsinit
/opt/SUNWspro/bin/cc -g -I/opt/csw/include -DHAVE_CONFIG_H -c perlxsi.c
 `perl -MExtUtils::Embed -e ccopts`
/opt/SUNWspro/bin/cc -g -I/opt/csw/include -DHAVE_CONFIG_H -c
mini_epn.c `perl -MExtUtils::Embed -e ccopts`
/opt/SUNWspro/bin/cc -g -I/opt/csw/include -DHAVE_CONFIG_H
-L/opt/csw/lib -lrt perlxsi.o mini_epn.o `perl -MExtUtils::Embed -e
ccopts -e ldopts` -o mini_epn
Undefined                       first referenced
 symbol                             in file
PL_Sv                               mini_epn.o
PL_op                              
/usr/perl5/5.8.4/lib/sun4-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
PL_errgv                            mini_epn.o
PL_stack_max                        mini_epn.o
PL_markstack_ptr                    mini_epn.o
PL_markstack_max                    mini_epn.o
PL_perl_destruct_level              mini_epn.o
PL_Xpv                              mini_epn.o
PL_curpad                          
/usr/perl5/5.8.4/lib/sun4-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
PL_sv_yes                          
/usr/perl5/5.8.4/lib/sun4-solaris-64int/auto/DynaLoader/DynaLoader.a(DynaLoader.o)
PL_stack_sp                         mini_epn.o
PL_tmps_ix                          mini_epn.o
PL_stack_base                       mini_epn.o
PL_tmps_floor                       mini_epn.o
ld: fatal: Symbol referencing errors. No output written to mini_epn
*** Error code 1
make: Fatal error: Command failed for target `mini_epn'
Current working directory /u00/appl/nagios/nagios-2.0rc2/contrib
*** Error code 1
make: Fatal error: Command failed for target `Prototype'

#####
Again a problem with Embedded Perl as it seems... 

Can anybody help?



-------------------------------------------------------------------------
This message is intended for the addressee only and may
contain confidential or privileged information. If you
are not the intended receiver, any disclosure, copying
to any person or any action taken or omitted to be taken
in reliance on this e-mail, is prohibited and may be un-
lawful. You must therefore delete this e-mail.
Internet communications may not be secure or error-free
and may contain viruses. They may be subject to possible
data corruption, accidental or on purpose. This e-mail is
not and should not be construed as an offer or the
solicitation of an offer to purchase or subscribe or sell
or redeem any investments.
-------------------------------------------------------------------------



-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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