[Nagiosplug-devel] Report on nagios-plugins-200211081100 for Solaris

Voon, Ton Ton.Voon at egg.com
Thu Nov 14 01:51:02 CET 2002


I agree Solaris make looks bad, but it is so close to working...

> -----Original Message-----
> From:	Bryan Liles [SMTP:lilesb at ijet.com]
> Sent:	Wednesday, November 13, 2002 7:00 PM
> To:	Voon, Ton
> Cc:	nagiosplug-devel at lists.sourceforge.net
> Subject:	Re: [Nagiosplug-devel] Report on nagios-plugins-200211081100
> for Solaris
> 
> don't use solaris make.   its bad.  use gnu make if at all possible.
> 
> On Wed, 13 Nov 2002 15:54:56 -0000
> "Voon, Ton" <Ton.Voon at egg.com> wrote:
> 
> > Compile report for nagios-plugins-200211081100 on Solaris.
> > 
> > $ gcc -v
> > Reading specs from
> > /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs gcc version
> > 2.8.1$ uname -a
> > SunOS tortoise 5.6 Generic_105181-25 sun4u sparc SUNW,Ultra-80
> > 
> > Using Solaris' make command. No automake - using the one in the
> > tarball.
> > 
> > $ ./configure
> > $ make all
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I.     -g -O2  -c
> > snprintf.c snprintf.c -o snprintf.o
> > gcc: cannot specify -o with -c and multiple compilations
> > *** Error code 1
> > make: Fatal error: Command failed for target `snprintf.o'
> > 
> > Solaris' make doesn't like the Makefile lines:
> > snprintf.o: snprintf.c
> >         $(COMPILE)  -c $? -o $@
> > 
> > It seems that $? is expanded as "snprintf.c snprintf.c". I fixed it by
> > changing the lines to:
> > snprintf.o: snprintf.c
> >         $(COMPILE) -c $(srcdir)/snprintf.c -o $@
> > 
> > This is more consistent with getopt.o and getopt1.o.
> > 
> > $ make        
> > make: Warning: Too many rules defined for target check_ftp
> > make: Warning: Too many rules defined for target check_imap
> > make: Warning: Too many rules defined for target check_nntp
> > make: Warning: Too many rules defined for target check_pop
> > 
> > Maybe just need:
> > check_ftp check_imap check_nntp check_pop: check_tcp
> > 	ln -sf check_tcp $@
> > 
> > Ton
> > 
> > Ton Voon
> > IT Operations - Environments
> > North Wing, Derby
> > Telephone: 01384 26 (4406)
> > mailto: ton.voon at egg.com
> > 
> > 
> > 
> > This private and confidential e-mail has been sent to you by Egg.
> > The Egg group of companies includes Egg Banking plc
> > (registered no. 2999842), Egg Financial Products Ltd (registered
> > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
> > carries out investment business on behalf of Egg and is regulated
> > by the Financial Services Authority.  
> > Registered in England and Wales. Registered offices: 1 Waterhouse
> > Square, 138-142 Holborn, London EC1N 2NA.
> > If you are not the intended recipient of this e-mail and have
> > received it in error, please notify the sender by replying with
> > 'received in error' as the subject and then delete it from your
> > mailbox.
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by: Are you worried about 
> > your web server security? Click here for a FREE Thawte 
> > Apache SSL Guide and answer your Apache SSL security 
> > needs: http://www.gothawte.com/rd523.html
> > _______________________________________________
> > Nagiosplug-devel mailing list
> > Nagiosplug-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel




More information about the Devel mailing list