nagios-plugins fail to compile solaris 10 x86/x64

Terry L. Inzauro tinzauro at ha-solutions.net
Wed May 21 17:50:11 CEST 2008


kyle.odonnell at gmail.com wrote:
> I used the following:
> 
> ./configure --prefix=/opt/nagios --enable-perl-modules
> --with-perl=/usr/bin/perl --without-ipv6 --without-openssl
> --without-ssl --disable-ssl --disable-openssl
> --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,procetime,procprog,&pos
> 
> I also used the sunfreeware gcc compiler instead.
> 
> binaries are available on the nagiosexchange:
> 
> http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2564.html;d=1
> 
> 
> On 5/21/08, Terry L. Inzauro <tinzauro at ha-solutions.net> wrote:
>> list,
>>
>> im getting the following when attempting to compile nagios-plugins on a
>> solaris 10 x86 (x4500) box.
>>
>>
>> # begin background system info
>>
>>
>> -bash-3.00$ uname -a
>> SunOS loraine 5.10 Generic_127128-11 i86pc i386 i86pc
>>
>> -bash-3.00$ gcc -v
>> Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
>> Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
>> --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
>> --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
>> --enable-shared
>> Thread model: posix
>> gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
>>
>> -bash-3.00$ which ar
>> /usr/local/bin/ar
>>
>> -bash-3.00$ which make
>> /usr/local/bin/make
>>
>> -bash-3.00$ make -v
>> GNU Make 3.81
>> Copyright (C) 2006  Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.
>> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
>> PARTICULAR PURPOSE.
>>
>> This program built for i386-pc-solaris2.10
>>
>> # end background system
>>
>>
>> # begin make errors (output truncated)
>>
>> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -D_REENTRANT
>> -I/usr/local/ssl/include  -g -O2 -MT vasnprintf.o -MD -MP -MF
>> ".deps/vasnprintf.Tpo" -c -o vasnprintf.o vasnprintf.c; \
>>         then mv -f ".deps/vasnprintf.Tpo" ".deps/vasnprintf.Po"; else rm
>> -f ".deps/vasnprintf.Tpo"; exit 1; fi
>> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -D_REENTRANT
>> -I/usr/local/ssl/include  -g -O2 -MT vasprintf.o -MD -MP -MF
>> ".deps/vasprintf.Tpo" -c -o vasprintf.o vasprintf.c; \
>>         then mv -f ".deps/vasprintf.Tpo" ".deps/vasprintf.Po"; else rm
>> -f ".deps/vasprintf.Tpo"; exit 1; fi
>> if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -D_REENTRANT
>> -I/usr/local/ssl/include  -g -O2 -MT xmalloc.o -MD -MP -MF
>> ".deps/xmalloc.Tpo" -c -o xmalloc.o xmalloc.c; \
>>         then mv -f ".deps/xmalloc.Tpo" ".deps/xmalloc.Po"; else rm -f
>> ".deps/xmalloc.Tpo"; exit 1; fi
>> rm -f libgnu.a
>> ar cru libgnu.a full-read.o full-write.o strnlen1.o xalloc-die.o
>> xstrndup.o asnprintf.o asprintf.o basename.o c-strtod.o cloexec.o
>> creat-safer.o dirname.o dup-safer.o error.o exitfail.o fd-safer.o
>> fsusage.o getopt.o getopt1.o mbchar.o mountlist.o open-safer.o
>> pipe-safer.o printf-args.o printf-parse.o regex.o safe-read.o
>> safe-write.o strcasecmp.o stripslash.o strndup.o strnlen.o vasnprintf.o
>> vasprintf.o xmalloc.o
>> /bin/bash: /usr/local/bin/ar: Invalid argument
>> make[3]: *** [libgnu.a] Error 126
>> make[3]: Leaving directory `/export/home/toor/nagios-plugins-1.4.11/gl'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/export/home/toor/nagios-plugins-1.4.11/gl'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/export/home/toor/nagios-plugins-1.4.11'
>>
>>
>> any ideas?
>>
>>
>>
>> regards,
>>
>>
>> _Terry
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> 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
>>


yeah, i have the sunfreeware compiler installed as well in /usr/local.
the results are the same.  i don't have an issues with using someone
elses binaries, i just dislike not knowing why something is not working.

my build environment is 'all' sunfreeware software of the latest
available version (gcc,binutils,automake,autoconf)

anyone have hints as to how to proceed? perhaps a bug in the configure
script?



regards,

_Terry


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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