undefined references

Swaroop Sham <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi ,

I am trying to extend the snmp agent by doing the following

- I built a minimal agent by using the configure script  ./configure
--enable-mini-agent
- I compiled "ONLY" the ifTable using mib2c with the following options:
  - Netsnmp-style-code
     - Tables where the list of rows is external to the agent.
        - An API layer that attempts to reduce the amount of SNMP specific
knowledge required to implement the module.
        -* All other table options where set to defaults*
- I used the "dlmod" shared object method of trying to extend the agent by
placing the shared object name and /path/to/object in the snmpd.conf file
- I did not modify any section of the code yet. I want to try and load the
shared object as is.
- When i try to start the agent , the dlopen fails :

could not open /proc/net/if_inet6
cache has existing timer id.
dlopen failed: /usr/lib/ifTable.so: undefined symbol:
netsnmp_container_table_row_extract
NET-SNMP version 5.2.3

- I did a nm -u on the shared objects and a number of un defined references
were listed
       U malloc@@GLIBC_2.0
         U memcpy@@GLIBC_2.0
         U memset@@GLIBC_2.0
         U netsnmp_baby_steps_access_multiplexer_get
         U netsnmp_baby_steps_handler_get
         U netsnmp_cache_create
         U netsnmp_cache_handler_get
         U netsnmp_check_requests_error
         U netsnmp_check_vb_type_and_size
         U netsnmp_container_find
         U netsnmp_container_table_handler_get
         U netsnmp_container_table_row_extract
         U netsnmp_create_data_list
         U netsnmp_extract_table_info
         U netsnmp_get_row_merge_handler
         U netsnmp_handler_registration_create
         U netsnmp_inject_handler
         U netsnmp_register_table
         U netsnmp_request_set_error
         U netsnmp_request_set_error_all
         U netsnmp_set_request_error
         U netsnmp_table_helper_add_indexes

- Could any one help me with this ?


thanks
Swaroop

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.