LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 10-24-2018, 10:40 PM   #1
June_Chen
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Rep: Reputation: Disabled
/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

[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
 
Old 10-25-2018, 07:14 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,659

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by June_Chen View Post
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help:snmptrapd: symbol lookup error: /usr/lib/x86_64-linux-gnu/libnetsnmptrapd.so.30 Vugl Ubuntu 0 08-13-2016 04:49 PM
/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_atomic_x dasoberdick Slackware 16 10-11-2014 02:36 AM
[SOLVED] symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_file_link bagi Slackware 3 05-17-2011 07:49 AM
symbol lookup error: /usr/lib/libavcodec.so.51: undefined symbol: av_crc04C11DB7 priceey Linux - Software 0 05-06-2009 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration