[Bug 960500] [NEW] net-snmp-config shift error

Marco marcolikis at gmail.com
Tue Mar 20 18:47:47 UTC 2012


Public bug reported:

Hi, all!

We are working with net-snmp 5.4.3 (  Installed: 5.4.3~dfsg-2.2ubuntu1
Candidate: 5.4.3~dfsg-2.2ubuntu1) on Ubuntu 11.10. We tried to compile a
subagent with net-snmp-config (net-snmp-config --compile-subagent
mysubagent nstAgentSubagentObject.c) and we got the following error :
shift: 672: can't shift that many. When we commented the line 672, the
script worked very fine.  Next, we have the piece of script (net-snmp-
config) with the comment :

    # add init routines
    for i in $cfiles ; do
      name=`basename $i | sed 's/\.[co]$//'`
      echo checking for init_$name in $i
      if grep "init_$name" $i ; then
        echo "  init_${name}();" >> $tmpfile
      fi
     # (20120314) It was commented to avoid script error.
     # shift
    done

Best Regards.

** Affects: net-snmp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in Ubuntu.
https://bugs.launchpad.net/bugs/960500

Title:
  net-snmp-config shift error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/960500/+subscriptions



More information about the Ubuntu-server-bugs mailing list