lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

snmpd: /usr/sbin/snmpd: relocation error: /usr/sbin/snmpd: u

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
pavelfg
Beginner


Joined: 24 Jan 2005
Posts: 6

PostPosted: Mon Jan 31, 2005 11:50 pm    Post subject: snmpd: /usr/sbin/snmpd: relocation error: /usr/sbin/snmpd: u Reply with quote

Hi guys.

I installed SNMP by RPM's, but when I try to startd the deamon, I get the following error:

# service snmpd start
snmpd: /usr/sbin/snmpd: relocation error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd


I looked for information about how to configure SNMP, and I found that i have to run the command:

# snmpconf -g basic_setup

without any knowledge i configured it as I though. I don't not why I get this error. I googled it, but there is no enough information.

Do you think is a configuration problem. If this if true, do you have a small tutorial about SNMP

grettings
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Mon Jan 31, 2005 11:58 pm    Post subject: Reply with quote

Let's try a couple simple things to get an idea of what we're working with since you did have a source install of net-snmp previously..
Code:
$ rpm -q net-snmp
$ /usr/sbin/snmpd -v

and let us know the output.
Also, did you delete all the snmp stuff from your /usr/local/ directories? It's not too difficult, if tedious..

-Doug
Back to top
pavelfg
Beginner


Joined: 24 Jan 2005
Posts: 6

PostPosted: Tue Feb 01, 2005 3:50 pm    Post subject: Reply with quote

YEs, I installed it by source for the firs time. After that and after your comments, I decided to installed by RPMS's. And it's woerked fine.

The following is the ouput of the commands you told me


Code:

$ rpm -q net-snmp
net-snmp-5.0.9-2.30E.6


$ /usr/sbin/snmpd -v
/usr/sbin/snmpd: relocation error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd



Thanks for all your help.


grettings
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Tue Feb 01, 2005 4:16 pm    Post subject: Reply with quote

This is almost definitely because of incorrect library linking due to the source install. I'm not sure how comfortable you are with linux and removing libraries; I'll try to help a little bit..

First, we should remove your current RPMs for net-snmp. To find out what's installed, do
Code:
$ rpm -qa | grep net-snmp

You'll want to 'rpm -e <name>' for each package. You're going to have packages that depend on this, so you'll probably want to add the '--nodeps' option for now as we'll be reinstalling the RPMs later so everything should be fine.

Next, we need to find all the old net-snmp libraries. I recommend a 'find' command for this:
Code:
$ find /usr/local/ -name libnetsnmp*
$ find /usr/lib -name libnetsnmp*

You'll probably want to remove everything this finds; especially if it's in the /usr/local directory.

After this is done, try reinstalling the net-snmp packages and starting it up again (or the 'snmpd -v' command). Hopefully we've ironed things out.

-Doug
Back to top
pavelfg
Beginner


Joined: 24 Jan 2005
Posts: 6

PostPosted: Tue Feb 01, 2005 7:23 pm    Post subject: Successful installation Reply with quote

Thanks everyone for your help, specially Doug.


You're right, it was a library linking problem, but uninstalling only the net-snmp RPM's, by

Code:


$ rpm -e net-snmp-utils-5.0.9-2.30E.6
$ rpm -e net-snmp-devel-5.0.9-2.30E.6
$ rpm -e net-snmp





was not enough, 'cause it didn't delete all the files. I installed net-snmp by source the last 28 of january.

First I uninstalled the RPM packets and then I deleted every file wich was related to SNMP and those wich had the date: January 28

After deleting a lot of files, I reinstalled in this order:

Code:

rpm -ivh net-snmp-5.0.9-2.30E.6.i386.rpm
rpm -ivh net-snmp-devel-5.0.9-2.30E.6.i386.rpm
rpm -ivh net-snmp-utils-5.0.9-2.30E.6.i386.rpm



Finally i typed the comamnd you told me


Code:

/usr/sbin/snmpd -v

NET-SNMP version:  5.0.9
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders@lists.sourceforge.net



Now it's working

Thanks a lot guys


grettings
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group