Hello,
We would like to share our experience successfully running Net-SNMP using
dynamic linking on AIX. Previously, we reported some problems when we tried
to use dynamic linking for Net-SNMP libraries on AIX. Our sub-agent crashed
with dynamic libraries as in the following.
Program received signal SIGSEGV, Segmentation fault.
0xd379c898 in netsnmp_ds_set_boolean () from
/usr/local/lib/libnetsnmpagent.so
#0 0xd379c898 in netsnmp_ds_set_boolean () from
/usr/local/lib/libnetsnmpagent.so
#1 0xd37a0fdc in init_agent at snmp_vars.c:289
There are the same or similar reportings in Net-SNMP bug list. (Please
reference
http://marc.info/?l=net-snmp-bugs&w=2&r=1&s=aix+ds_set_boolean&q=b.)
Here are explanations what we did to avoid this problem.
Our environment
- AIX 5.1
- Net-SNMP 5.4
Build and install
- tar xvf net-snmp-5.4.tar
- ./configure --enable-shared --disable-static --without-perl-modules
--disable-embedded-perl LDFLAGS=-Wl,-brtl
- make
- make install
(Since we don't use perl functionalities, we disabled perl options. –brtl is
an option which enables runtime linking. When we didn't use runtime linking,
we got segfaults.)
Sub-agent build
- build with –brtl option
After these simple steps (without any modification of libtool or others),
master agent and our sub-agent are perfectly working using dynamic linking
on AIX. We'll greatly appreciate any of your corrections, feedback and
advice. Thank you very much for your time.
Sincerely,
Sukwoo Kang
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders