Re: On Digital Unix V4.0F

Karl DeBisschop <[email protected]>
Newsgroups gmane.network.netsaint.user
Message-ID <[email protected]>
On Thu, 2002-11-07 at 01:11, Stanley Hopcroft wrote:
> Dear Sir,
> 
> I am writing to thank you for your letter and say,
> 
> On Tue, Oct 29, 2002 at 04:52:57PM +0100, [email protected] wrote:
> > 
> > Hi all,
> > 
> > I tried to install netsaint-0.0.7 on Digital Unix V4.0F and failed.
> > I saw in this list, a couple of you had the same problem and asked for help
> > but
> > nobody have ever posted an answer.
> > 
> 
> Unfortunately, Digital Unix is not as common as an Intel Unix or
> Solaris; those that do have it may no longer be reading this list.
> 
> > On the netsaint web, it says it works on Digital Unix.
> > http://www.netsaint.org/ports.php
> > 
> > But to compile it, we need GNU version of "getopt", which is part of glibc.
> > As far as I know, there is no version of glibc ever runs on Digital Unix.
> 
> You may be mistaken about getopt being 'part of glibc'.

getopt is part of POSIX

> This FreeBSD host (4.7-RELEASE) has no glibc, but has a getopt

GNU getopt has a getopt_long_only function that we use in the plugins to
distinguish from the POSIX getopt. (The plugins also provide the code
for GNU getopt where getopt_long does not exist).

Wherever getop_long is called out in the nagios/netsaint code, it is
ifdef'd so it should only be compiled if getopt_long exists. But it does
require a POSIX getopt. Is there no getopt at all in Digital Unix?

If necessary, the getopt code used in the plugins could also be carried
over to nagios, i suppose.

--
Karl



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.