RE: Multi-destiny Traps

Sergio Cabaço <[email protected]>
Newsgroups gmane.network.net-snmp.devel,gmane.network.net-snmp.user
Message-ID <[email protected]>
Thank you very much for the last reply. 
I haven't mentioned that before because the mail was written a bit too fast but I appreciated that and I'm here expressing my gratitude now.

I look forward to hearing from you.
 

Best Regards / Cumprimentos,

Sérgio Cabaço

 

-----Original Message-----
From: Sergio Cabaço [mailto:[email protected]] 
Sent: terça-feira, 24 de Março de 2009 16:58
To: Dave Shield
Cc: [email protected]; [email protected]
Subject: RE: Multi-destiny Traps


> No - it will use the "getopt()" library call - not the command-line binary.

Ok, that's it, it uses the system library. Nevertheless it uses something available by the system and not by net-snmp, my mistake.


> What O/S is this "unix-based system"?

It is a sub-module (uses the kernel with some modifications) of LynxOS (not all POSIX specifications) and it hasn't getopt available in the system.

> What does "man getopt" report?

Nothing, it has not man available. It is a very delicate OS :)


I have encountered net-snmp-config.h that is generated by configure. In this file, HAVE_GETOPT_H is defined with value 1. I think if I could put it to 0 in configure, this would work just fine. 
Maybe, when putted into 0, this will make no difference but I would like to try it.



Best Regards / Cumprimentos,

Sérgio Cabaço

 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
Sent: terça-feira, 24 de Março de 2009 16:32
To: Sergio Cabaço
Cc: [email protected]; [email protected]
Subject: Re: Multi-destiny Traps

2009/3/24 Sergio Cabaço <[email protected]>:
>  I realised that in linux the net-snmp uses /usr/bin/getopt function in snmp_parse_args.c

No - it will use the "getopt()" library call - not the command-line binary.


>    and in the unix based system that function doesn't exists on the system.

What O/S is this "unix-based system"?
What does "man getopt" report?

(Forget about whether there's a getopt command or not - that's not
relevant here).

Frankly, I would be amazed if it didn't include a getopt() call.
It's part of the POSIX specification, so it would be a very very odd
Unix that omitted it.

Dave

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
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.