/usr/sbin/snmptrapd: symbol lookup error: /usr/lib64/libnetsnmptrapd.so.31: undefined symbol:
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/usr/sbin/snmptrapd: symbol lookup error: /usr/lib64/libnetsnmptrapd.so.31: undefined symbol:
Dear
Centos 7.4 ,after I use Yum install net-snmp
it cant start snmptarpd.
/usr/sbin/snmptrapd: symbol lookup error: /usr/lib64/libnetsnmptrapd.so.31: undefined symbol:
could any suggestion ?
thank you so much
deltails
root@login lib64]# service snmptrapd status
Redirecting to /bin/systemctl status snmptrapd.service
â— snmptrapd.service - Simple Network Management Protocol (SNMP) Trap Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmptrapd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-10-24 14:04:39 CST; 2h 49min ago
Process: 114137 ExecStart=/usr/sbin/snmptrapd $OPTIONS -f (code=exited, status=127)
Main PID: 114137 (code=exited, status=127)
Oct 24 14:04:39 login systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
Oct 24 14:04:39 login snmptrapd[114137]: /usr/sbin/snmptrapd: symbol lookup error: /usr/lib64/libnetsnmptrapd.so.31: undefined symbol: my_progname
Oct 24 14:04:39 login systemd[1]: snmptrapd.service: main process exited, code=exited, status=127/n/a
Oct 24 14:04:39 login systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
Oct 24 14:04:39 login systemd[1]: Unit snmptrapd.service entered failed state.
Oct 24 14:04:39 login systemd[1]: snmptrapd.service failed.
[root@login lib64]# cd /usr/sbin
[root@login sbin]# snmptrapd
snmptrapd: symbol lookup error: /usr/lib64/libnetsnmptrapd.so.31: undefined symbol: my_progname
Dear
Centos 7.4 ,after I use Yum install net-snmp it cant start snmptarpd.
/usr/sbin/snmptrapd: symbol lookup error: /usr/lib64/libnetsnmptrapd.so.31: undefined symbol:
Code:
root@login lib64]# service snmptrapd status
Redirecting to /bin/systemctl status snmptrapd.service
â— snmptrapd.service - Simple Network Management Protocol (SNMP) Trap Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmptrapd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-10-24 14:04:39 CST; 2h 49min ago
Process: 114137 ExecStart=/usr/sbin/snmptrapd $OPTIONS -f (code=exited, status=127)
Main PID: 114137 (code=exited, status=127)
Oct 24 14:04:39 login systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
Oct 24 14:04:39 login snmptrapd[114137]: /usr/sbin/snmptrapd: symbol lookup error: /usr/lib64/libnetsnmptrapd.so.31: undefined symbol: my_progname
Oct 24 14:04:39 login systemd[1]: snmptrapd.service: main process exited, code=exited, status=127/n/a
Oct 24 14:04:39 login systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Trap Daemon..
Oct 24 14:04:39 login systemd[1]: Unit snmptrapd.service entered failed state.
Oct 24 14:04:39 login systemd[1]: snmptrapd.service failed.
[root@login lib64]# cd /usr/sbin
[root@login sbin]# snmptrapd
snmptrapd: symbol lookup error: /usr/lib64/libnetsnmptrapd.so.31: undefined symbol: my_progname
[root@login lib64]# yum install net-snmp=libs
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
No package net-snmp=libs available.
Error: Nothing to do
[root@login lib64]# cd /usr
[root@login usr]# yum provides libnetsnmptrapd.so.31
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
1:net-snmp-agent-libs-5.7.2-28.el7.i686 : The NET-SNMP runtime agent libraries
Repo : local_server
Matched from:
Provides : libnetsnmptrapd.so.31
1:net-snmp-agent-libs-5.7.2-32.el7.i686 : The NET-SNMP runtime agent libraries
Repo : base
Matched from:
Provides : libnetsnmptrapd.so.31
1:net-snmp-agent-libs-5.7.2-33.el7_5.2.i686 : The NET-SNMP runtime agent libraries
Repo : updates
Matched from:
Provides : libnetsnmptrapd.so.31
1:net-snmp-agent-libs-5.7.2-33.el7_5.2.i686 : The NET-SNMP runtime agent libraries
Repo : @updates
Matched from:
Provides : libnetsnmptrapd.so.31
[root@login sbin]# ls -al /usr/lib64/libnetsnmptrapd.so.31
lrwxrwxrwx 1 root root 25 Oct 23 11:06 /usr/lib64/libnetsnmptrapd.so.31 -> libnetsnmptrapd.so.31.0.2
You posted this same question twice, and re-opened an old thread to ask this question as well; see the LQ Rules.
Past that, I have bolded/underlined a few things in what you posted for emphasis only. Note that you tried to yum install net-snmp-libs, but put an equals sign (=) instead of a dash. Which will not work. You then looked up the correct package name, but don't seem to have installed it. And can you run "yum repolist" and post the output? Those repositories don't look like the CentOS repositories, and if you don't get the correct package(s), things won't work well (if at all).
What kind of CPU do you have? Because your repositories are pulling up i686 packages, and you *seem* to have a 64 bit (x86_64) distro loaded. And when you did the ls -al on the library, was that link VALID? Did it actually point to a file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.