Compiling nagios-plugins-master on Solaris 9

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
barry_mclellan
Posts: 12
Joined: Wed Jan 22, 2014 3:15 pm

Compiling nagios-plugins-master on Solaris 9

Post by barry_mclellan »

Hello,

I am trying to compile the nagios-plugins-master under Solaris 9 but running into errors. I have downloaded m4, autoconf, gettext and automake and compiled them without errors. When I attempt to compile

I receive this:
./tools/setup

Found GNU Make at /home1/cho6955/bin/make ... good.
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
lib/Makefile.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
lib/tests/Makefile.am:10: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
plugins/Makefile.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')

Then I run:
./configure --with-nagios-user=nagios

Which has no error.

Then I run 'make' and see the error below:

make: Fatal error in reader: Makefile, line 2507: Unexpected end of line seen
Current working directory /home1/cho6955/nagios/nagios-plugins-master/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home1/cho6955/nagios/nagios-plugins-master
*** Error code 1
make: Fatal error: Command failed for target `all'

Has anyone tried to compile under Solaris 9?

Thanks!
Barry
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Compiling nagios-plugins-master on Solaris 9

Post by tmcdonald »

Are you following any sort of guide? If so can you post a link to it?
Former Nagios employee
barry_mclellan
Posts: 12
Joined: Wed Jan 22, 2014 3:15 pm

Re: Compiling nagios-plugins-master on Solaris 9

Post by barry_mclellan »

Hello,

I'm just following the README that comes with the nagios plugins file.

Did you want a link to that download?


Thanks!
Barry
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Compiling nagios-plugins-master on Solaris 9

Post by abrist »

1. Could you pm me the generated Makefile? I have never seen any of my generated makefiles get past ~2000 or so lines.
2. Are you using the current master branch?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
estanley
Posts: 19
Joined: Thu Apr 08, 2010 9:28 am

Re: Compiling nagios-plugins-master on Solaris 9

Post by estanley »

I generally see that message when I'm using Sun's make. The way I get around it is to run 'MAKE=gmake ./configure' and then use gmake everywhere I would use make (i.e 'gmake all'). In your case you may need to substitute '/home1/cho6955/bin/make' for 'gmake' .
barry_mclellan
Posts: 12
Joined: Wed Jan 22, 2014 3:15 pm

Re: Compiling nagios-plugins-master on Solaris 9

Post by barry_mclellan »

Thanks abrist, I will pm you the make file now.

Andy Brist gave me the link to the source: https://github.com/nagios-plugins/nagio ... master.zip
Hopefully that is ok.

estandley, I will try that as well, thanks!!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Compiling nagios-plugins-master on Solaris 9

Post by tmcdonald »

We'll keep this thread open until you get back to us.
Former Nagios employee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Compiling nagios-plugins-master on Solaris 9

Post by abrist »

Well, there is nothing special about line 2507. This looks like a general compiler error - did Eric's suggestion work for you?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
barry_mclellan
Posts: 12
Joined: Wed Jan 22, 2014 3:15 pm

Re: Compiling nagios-plugins-master on Solaris 9

Post by barry_mclellan »

Sorry for the delay, I tried Eric's post and no luck.

I have a solaris guy working on it, but he's getting frustrated and says it won't compile. Any other idea's I can try?

I'm realling liking this product, unfortunately will all the legacy I have surrounding me, it may just not be a good fit. Too bad there isn't a section that has older compiled agents hanging around.


Thanks everyone!
Barry
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Compiling nagios-plugins-master on Solaris 9

Post by abrist »

In all honesty, you may want to try older versions of the plugins/nrpe. They may compile a bit easier on legacy platforms.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked