netsnmp 5.2.1.2 not working on powerpc with 2.6 kernel

This is a discussion on netsnmp 5.2.1.2 not working on powerpc with 2.6 kernel within the SNMP Users forums, part of the Networking and Network Related category; I am having a powerpc processor, with yellow dog distribution of linux kernel 2.6. Net-snmp is not able ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-31-2006
Sachin Mishra
 
Posts: n/a
Default netsnmp 5.2.1.2 not working on powerpc with 2.6 kernel

I am having a powerpc processor, with yellow dog distribution of linux
kernel 2.6. Net-snmp is not able to load my module which is implemented
in form of shared object. Here is the program trace when net-snmp is
started:

# gdb snmpd
GNU gdb Red Hat Linux (6.0post-0.20040223.19.ydl.1rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "ppc-yellowdog-linux-gnu"...Using host
libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) b dlmod_load_module
Function "dlmod_load_module" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (dlmod_load_module) pending.
(gdb) r -f
Starting program: /usr/local/sbin/snmpd -f
Breakpoint 2 at 0xff41928: file ucd-snmp/dlmod.c, line 145.
Pending breakpoint "dlmod_load_module" resolved

Breakpoint 2, dlmod_load_module (dlm=Variable "dlm" is not available.
) at ucd-snmp/dlmod.c:145
145 DEBUGMSGTL(("dlmod", "dlmod_load_module %s: %s\n",
dlm->name,
(gdb) bt
#0 dlmod_load_module (dlm=Variable "dlm" is not available.
) at ucd-snmp/dlmod.c:145
#1 0x0ff418fc in dlmod_load_module (dlm=Variable "dlm" is not
available.
) at ucd-snmp/dlmod.c:139
#2 0x0fe174fc in run_config_handler (lptr=Variable "lptr" is not
available.
) at read_config.c:484
#3 0x0fe17788 in read_config (filename=Variable "filename" is not
available.
) at read_config.c:775
#4 0x0fe17db4 in read_config_files (when=Variable "when" is not
available.
) at read_config.c:1116
#5 0x0fe18950 in read_configs () at read_config.c:811
#6 0x0fe0125c in init_snmp (type=Variable "type" is not available.
) at snmp_api.c:823
#7 0x10003810 in main (argc=267927908, argv=0x100a0640) at snmpd.c:875
(gdb)

************************************************** **********************
************************************************** **********************
Here is the trace when everything works fine with RH9 distribution on a
x86 machine kernel version 2.4:

[root@sachinm-ws sachin]# gdb snmpd
GNU gdb 20040404
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".

(gdb) b dlmod_load_module
Function "dlmod_load_module" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (dlmod_load_module) pending.
(gdb) r -f
Starting program: /usr/local/sbin/snmpd -f
Breakpoint 2 at 0x40036120: file ucd-snmp/dlmod.c, line 146.
Pending breakpoint "dlmod_load_module"
resolved
Breakpoint 2, dlmod_load_module (dlm=0x814ccc8) at ucd-snmp/dlmod.c:146
146 dlm->path));
(gdb) bt
#0 dlmod_load_module (dlm=0x814ccc8) at ucd-snmp/dlmod.c:146
#1 0x40036757 in dlmod_parse_config (token=0xbfffcfd0 "dlmod",
cptr=0xbfffd3d6 "sampleMIB") at ucd-snmp/dlmod.c:272
#2 0x4012b1bf in run_config_handler (lptr=0x808be08, token=0xbfffcfd0
"dlmod", cptr=0xbfffd3d6 "sampleMIB", when=-1073753052)
at read_config.c:484
#3 0x4012ba2d in read_config (filename=0xbfffe2c0
"/usr/local/share/snmp/snmpd.conf", line_handler=0x804eb28, when=0) at
read_config.c:775
#4 0x4012c7ba in read_config_files (when=0) at read_config.c:1116
#5 0x4012c19e in read_configs () at read_config.c:811
#6 0x4010e38d in init_snmp (type=0x804bb48 "snmpd") at snmp_api.c:823
#7 0x0804a839 in main (argc=2, argv=0xbffff664) at snmpd.c:875
(gdb)

Thanks,
Sachin



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=...486&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:19 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0