Robert (and the rest of the core developers):

I took the code of the routine init_mib_modules() and copied it to
the file snmpd.c, placing it just ahead of the function main().  I
actually kept it with the modified name of init_mib_modules_wrb().
Then made the daemon anew, and executed it.  The resulting output is

[EMAIL PROTECTED] net-snmp-5.2]# ./agent/.libs/snmpd -Dmib_init -H
No log handling enabled - turning on stderr logging
mib_init: initializing: usmConf
mib_init: initializing: subagent
mib_init: initializing: vacm_conf
mib_init: initializing: agentx_config
mib_init: initializing: dot11StationConfigTable
./agent/.libs/snmpd: relocation error: ./agent/.libs/snmpd: undefined symbol:
init_dot11StationConfigTable


So, now we see that another routine is not defined, and this is the
routine that I want to see execute, since it is the means of initialising
the StationConfigTable of the 802.11 MIB.

Again, I used the *nm* function on the daemon, and the output is

[EMAIL PROTECTED] net-snmp-5.2]# nm ./agent/.libs/snmpd
         U add_to_init_list
0804f02c D app_name
080504a0 B argvrestart
08050840 B argvrestartname
08050414 B argvrestartp
08050390 A __bss_start
0804a8e8 t call_gmon_start
         U close@@GLIBC_2.0
08050950 b completed.1
08050164 d __CTOR_END__
08050160 d __CTOR_LIST__
0804f000 D __data_start
0804f000 W data_start
         U debugmsg
         U debugmsgtoken
         U debug_register_tokens
0804d1b8 t __do_global_ctors_aux
0804a90c t __do_global_dtors_aux
08050044 d dont_zero_s.1
0804f004 D __dso_handle
0805016c d __DTOR_END__
08050168 d __DTOR_LIST__
         U dump_registry
08050050 A _DYNAMIC
08050390 A _edata
0804e6f8 r __EH_FRAME_BEGIN__
08050958 A _end
         U __errno_location@@GLIBC_2.0
         U Exit
         U exit@@GLIBC_2.0
080508d0 B external_exceptfd
08050638 B external_exceptfd_data
08050390 B external_exceptfdfunc
08050410 B external_exceptfdlen
08050420 B external_readfd
080506b8 B external_readfd_data
080505a8 B external_readfdfunc
08050628 B external_readfdlen
080504a8 B external_signal_handler
08050740 B external_signal_scheduled
08050528 B external_writefd
080507c0 B external_writefd_data
08050848 B external_writefdfunc
08050418 B external_writefdlen
0804f028 D Facility
         U fclose@@GLIBC_2.1
         U fdopen@@GLIBC_2.1
0804d1dc T _fini
0804f000 A __fini_array_end
0804f000 A __fini_array_start
0804d200 R _fp_hw
         U fprintf@@GLIBC_2.0
0804a948 t frame_dummy
0804e6f8 r __FRAME_END__
         U free@@GLIBC_2.0
         U fwrite@@GLIBC_2.0
         U getopt@@GLIBC_2.0
         U getpid@@GLIBC_2.0
         U getpwnam@@GLIBC_2.0
08050174 A _GLOBAL_OFFSET_TABLE_
         w __gmon_start__
         U handle_long_opt
0804a06c T _init
         U init_agent
0804f000 A __init_array_end
0804f000 A __init_array_start
         U init_at
         U init_disk
         U init_dlmod
         U init_dot11StationConfigTable
         U init_errormib
         U init_extend
         U init_extensible
         U init_file
         U init_icmp
         U init_interface_common
         U init_interfaces
         U init_ip
         U init_loadave
         U init_logmatch
         U init_master_agent
         U init_memory
0804acb4 T init_mib_modules_wrb
         U init_nsCache
         U init_nsDebug
         U init_nsLogging
         U init_nsModuleTable
         U init_nsTransactionTable
         U init_override
         U init_pass
         U init_pass_persist
         U init_proc
         U init_proxy
         U init_setSerialNo
         U init_snmp
         U init_snmpEngine
         U init_snmp_mib
         U init_snmpMPDStats
         U init_snmpNotifyFilterProfileTable
         U init_snmpNotifyFilterTable
         U init_snmpNotifyTable
         U init_snmpTargetAddrEntry
         U init_snmpTargetParamsEntry
         U init_sysORTable
         U init_system_mib
         U init_target_counters
         U init_tcp
         U init_tcpTable
         U init_udp
         U init_udpTable
         U init_usmStats
         U init_usmUser
         U init_vacm_context
         U init_vacm_vars
         U init_var_route
         U init_versioninfo
         U init_vmstat
0804d204 R _IO_stdin_used
08050170 d __JCR_END__
08050170 d __JCR_LIST__
         w _Jv_RegisterClasses
0804d184 T __libc_csu_fini
0804d154 T __libc_csu_init
         U __libc_start_main@@GLIBC_2.0
08050738 B log_addresses
0804f040 d logfile_s.0
0804b46c T main
         U malloc@@GLIBC_2.0
         U memset@@GLIBC_2.0
         U netsnmp_access_interface_init
         U netsnmp_addrcache_initialise
         U netsnmp_check_outstanding_agent_requests
         U netsnmp_daemonize
         U netsnmp_ds_get_boolean
         U netsnmp_ds_get_int
         U netsnmp_ds_get_string
         U netsnmp_ds_set_boolean
         U netsnmp_ds_set_int
         U netsnmp_ds_set_string
         U netsnmp_ds_toggle_boolean
         U netsnmp_get_version
         U open@@GLIBC_2.0
080508c8 B optarg@@GLIBC_2.0
080508cc B optind@@GLIBC_2.0
0804f008 d p.0
         U printf@@GLIBC_2.0
         U putchar@@GLIBC_2.0
         U puts@@GLIBC_2.0
         U read_config_print_usage
0804c970 t receive
0804f024 D reconfig
         U run_alarms
0804f020 D running
         U select@@GLIBC_2.0
         U send_easy_trap
         U setenv@@GLIBC_2.0
         U setgid@@GLIBC_2.0
         U setgroups@@GLIBC_2.0
         U setuid@@GLIBC_2.0
0804ac08 t setup_log
         U setvbuf@@GLIBC_2.0
         U should_init
         U shutdown_proxy
         U signal@@GLIBC_2.0
0804abc0 T SnmpdCatchRandomSignal
0804aba4 T SnmpdDump
         U snmp_disable_log
         U snmp_disable_stderrlog
         U snmp_disable_syslog
0804ab84 T SnmpdReconfig
0804ab74 T SnmpdShutDown
08050954 B snmp_dump_packet
         U snmp_enable_filelog
         U snmp_enable_stderrlog
         U snmp_enable_syslog
         U snmp_enable_syslog_ident
         U snmp_get_do_debugging
0804d148 T snmp_input
         U snmp_log
         U snmp_log_options
         U snmp_log_options_usage
         U snmp_log_perror
         U snmp_log_syslogname
         U snmp_read
         U snmp_select_info
         U snmp_set_do_debugging
         U snmp_set_dump_packet
         U snmp_set_quick_print
         U snmp_shutdown
         U snmp_store
         U snmp_timeout
0804abf4 t SnmpTrapNodeDown
         U sprintf@@GLIBC_2.0
0804a8c4 T _start
08050630 B stderr@@GLIBC_2.0
08050048 d stderr_log_s.2
0805062c B stdout@@GLIBC_2.0
         U strcasecmp@@GLIBC_2.0
         U strcat@@GLIBC_2.0
         U strcpy@@GLIBC_2.0
         U strncpy@@GLIBC_2.0
         U strstr@@GLIBC_2.0
         U __strtol_internal@@GLIBC_2.0
         U __strtoul_internal@@GLIBC_2.0
0805004c d syslog_log_s.3
         U unlink@@GLIBC_2.0
         U update_config
0804a974 t usage
0804ab38 t version


Notice that many of the component functions are undefined.  What is going
on here?

William R. Buckley
President
SoftNerd, A California Corporation
Director Emeritus,
International Core Wars Society
[EMAIL PROTECTED]
415-240-6107


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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/listinfo/net-snmp-users

Reply via email to