<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
James Pratt wrote:
<blockquote
 cite="mid:8147CCE3C4A8764DA9980125EE70E82361F1D1@nuexchg.norwich.edu"
 type="cite">
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">-----Original Message-----
From: Brandon Munger [<a class="moz-txt-link-freetext" href="mailto:bmunger@edison.edu">mailto:bmunger@edison.edu</a>]
Sent: Tuesday, December 16, 2008 3:46 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>
Subject: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12

Hello Nagios Users,

I have been attempting to compile Nagios plugins and NRPE with Sun Studio
so I can deploy the binaries to a number of machines.  I have read the
documentation available but I cannot get a successful compile.

This command I am using is:
CC=cc CFLAGS='-DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4' ./configure
--with-ps-command="/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime
comm args'" --with-ps-format='%s %d %d %d %d %d %f %s %s %n'
--with-ps-cols=10
--with-ps-
varlist='procstat,&;procuid,&;procpid,&;procppid,&;procvsz,&;procrss,&;procpcpu,pr
ocetime,procprog,&pos'


The make output I get is:
Making all in plugins
make[2]: Entering directory
`/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins'
source='check_apt.c' object='check_apt.o' libtool=no \
       DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \
       cc -DLOCALEDIR=\"/usr/local/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl
-I/usr/include/pgsql     -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -c check_apt.c
"check_apt.c", line 450: warning: dubious escape: \%
/bin/bash ../libtool --tag=CC --mode=link cc  -DSSL_EXPERIMENTAL
-DSSL_ENGINE -xO4  -L. -o check_apt  check_apt.o utils.o
../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -lnsl -lsocket -ldl
cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -o check_apt check_apt.o utils.o
runcmd.o  -L/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins
../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -ldl
Undefined                       first referenced
symbol                             in file
alloca                              ../gl/libgnu.a(regex.o)
ld: fatal: Symbol referencing errors. No output written to check_apt
make[2]: *** [check_apt] Error 1
make[2]: Leaving directory
`/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/export/home/bmunger/downloads/nagios-plugins-1.4.13'
make: *** [all] Error 2


Thank you for your help.



Brandon
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
Hi Brandon, 

If there is a configure switch to disable the "check_apt" plugin, you could try that. I always found it quite difficult to get Nagios running well on sun/sparc. Please let us know how it goes! :)

jamie

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
<a class="moz-txt-link-freetext" href="http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/">http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
  </pre>
</blockquote>
Hi Jamie,<br>
<br>
I couldn't find a way to disable the check_apt plugin.  I tried a few
flags with the same result.  I have a feeling that the problem will be
with all the plugins, and that apt<br>
is just the first one attempted.  Thanks.<br>
<br>
Brandon<br>
<br>
<br><br>
CONFIDENTIALITY:  This e-mail (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited.  If you received this e-mail in error,
please notify the sender and delete this e-mail from your system. 
</body>
</html>