net-snmp-config shift error

Bug #960500 reported by Marco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
net-snmp (Debian)
Fix Released
Unknown
net-snmp (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

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.

James Page (james-page)
Changed in net-snmp (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
James Page (james-page) wrote :
Revision history for this message
James Page (james-page) wrote :

Hmm - or maybe not.

That patch appears to already be in source tree we are using for 5.4.3 in oneiric.

Changed in net-snmp (Debian):
status: Unknown → New
Changed in net-snmp (Debian):
status: New → Fix Committed
Changed in net-snmp (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.