Thomas,

        Thanks for your answer. The getopt in the net-snmp code is
following the BSD implementation, which is different to the Linux GPL
implementation. So, the question is, should we modify the BSD version to
create a Net-SNMP version more complaint to the Linux one, or should we
modify snmpusm application to be compliant with BSD and GPL (adding some
compilation flags)? 

Regards,
Pablo

> -----Original Message-----
> From: Thomas Anders [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 13, 2006 10:56 AM
> To: Passera Pablo-APP015
> Cc: [email protected]
> Subject: Re: getopt for Solaris (bug ?)
> 
> Passera Pablo-APP015 wrote:
> >     After compiling the snmpusm application, I've noticed that the 
> > command line options were working different for Solaris 
> than for Linux.
> > Looking at the code, for Solaris the application is using 
> an internal 
> > implementation of the function getopt. This implementation returns 
> > after founding an options without a "-" in front (e.g. the 
> agent IP address).
> > So, the -Cx or -Ce options weren't being parsed because 
> they are after 
> > the IP address. Should the getopt implementation be changed 
> to mimic 
> > the Linux implementation?
> 
> Yes, I think there are open issues with the getopt behaviour 
> on Solaris.
> IIRC "--<token>=<value>" doesn't work either. Patches appreciated.
> 
> 
> +Thomas
> 
> --
> Thomas Anders (thomas.anders at blue-cable.de)
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to