Hello Simon,

the "shift" statement in net-snmp-config in line 430 seems to be useless
since there is no argument to be shifted away. Some shells (/bin/sh -
see shebang at the beginning of the script net-snmp-config) complain
about this useless shift, others (e.g. the one shipped with Linux) do
not complain, but they nevertheless set a return code 1.

For your local work you might comment the shift line in the script but I
recommend to file a bug report for net-snmp such that the useless shift
will be removed in the next release.

Johannes

Simon Saha schrieb:
> 
> 
> 
> Dear Johannes,
>                   I am using net-snmp version-5.2.2 on HP-Unix system. My
> sub-agent is not getting compiled by net-snmp-config. I am giving the
> following command to compile my sub-agent
> 
>              net-snmp-config --compile-subagent PHAL phaltooExample.c
> 
> It is giving the following error
> 
>       net-snmp-config[430]: shift: The specified number is not valid for
> this command
> 
> while the same command is working perfectly on a linux system. Please help
> me in this reguard.
> 
> bye
> 
> ***********************  FSS-Unclassified   ***********************
> 
> "DISCLAIMER: This message is proprietary to Flextronics Software
> Systems Limited (FSS) and is intended solely for the use of the
> individual to whom it is addressed. It may contain  privileged or
> confidential information and should not be circulated or used for
> any purpose other than for what it is intended. If you have received
> this message in  error, please notify the originator immediately.
> If you are not the intended recipient, you are notified that you are
> strictly  prohibited  from  using, copying, altering, or disclosing
> the contents of this message.  FSS  accepts no  responsibility  for
> loss or damage arising from the use of  the information transmitted
> by this email including damage from virus."
> 

-- 
Johannes Schmidt-Fischer

InterFace AG                 phone  +49 (0)89 / 610 49 - 207
Leipziger Str. 16            fax    +49 (0)89 / 610 49 - 85
D-82008 Unterhaching         mobile +49 (0)171/ 787 76 01
http://www.InterFace-AG.com  mailto:[EMAIL PROTECTED]


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to