Hi,

When installaling net-snmp-5.7.3, I am  hitting into this error, not able find 
out what is the exact issue here.  Could somebody help out here ?


Linux Version:
============

[root@snmplab-linux15 net-snmp-5.7.3]# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 6.6 (Santiago)

[root@snmplab-linux15 net-snmp-5.7.3]#



Step 1.
          ./configure CFLAGS=-fPIC

After step 1 successfully completed, tried step 2 below and getting the error.


Step2.


[root@snmplab-linux15 net-snmp-5.7.3]# make

making all in /root/net-snmp-5.7.3/snmplib

make[1]: Entering directory `/root/net-snmp-5.7.3/snmplib'

make[1]: Leaving directory `/root/net-snmp-5.7.3/snmplib'

making all in /root/net-snmp-5.7.3/agent

make[1]: Entering directory `/root/net-snmp-5.7.3/agent'

/bin/sh ../libtool  --mode=link gcc -fno-strict-aliasing -DPIC -Ulinux 
-Dlinux=linux  -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  
-I/usr/cisco/packages/perl/perl-5.8.8/lib/5.8.8/x86_64-linux-thread-multi/CORE  
 -rpath /usr/local/lib -version-info 30:3:0 -o libnetsnmpagent.la 
helpers/all_helpers.lo helpers/baby_steps.lo helpers/bulk_to_next.lo 
helpers/cache_handler.lo helpers/debug_handler.lo helpers/instance.lo 
helpers/mode_end_call.lo helpers/multiplexer.lo helpers/null.lo 
helpers/old_api.lo helpers/read_only.lo helpers/row_merge.lo helpers/scalar.lo 
helpers/scalar_group.lo helpers/serialize.lo helpers/snmp_get_statistic.lo 
helpers/stash_cache.lo helpers/stash_to_next.lo helpers/table.lo 
helpers/table_array.lo helpers/table_container.lo helpers/table_data.lo 
helpers/table_dataset.lo helpers/table_iterator.lo helpers/table_row.lo 
helpers/table_tdata.lo helpers/watcher.lo agent_handler.lo agent_index.lo 
agent_read_config.lo agent_registry.lo agent_sysORTable.lo agent_trap.lo 
kernel.lo snmp_agent.lo snmp_vars.lo mibgroup/snmpv3/usmConf.lo 
mibgroup/agentx/master.lo mibgroup/agentx/subagent.lo 
mibgroup/utilities/execute.lo mibgroup/utilities/iquery.lo 
mibgroup/mibII/vacm_conf.lo mibgroup/agentx/protocol.lo 
mibgroup/agentx/client.lo mibgroup/agentx/master_admin.lo 
mibgroup/agentx/agentx_config.lo snmp_perl.lo ../snmplib/libnetsnmp.la    
-Wl,-E  -L/usr/local/lib 
/usr/cisco/packages/perl/perl-5.8.8/lib/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a
 -L/usr/cisco/packages/perl/perl-5.8.8/lib/5.8.8/x86_64-linux-thread-multi/CORE 
-lperl -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc  -lm


*** Warning: Linking the shared library libnetsnmpagent.la against the

*** static library 
/usr/cisco/packages/perl/perl-5.8.8/lib/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a
 is not portable!

libtool: link: gcc -shared  -fPIC -DPIC  helpers/.libs/all_helpers.o 
helpers/.libs/baby_steps.o helpers/.libs/bulk_to_next.o 
helpers/.libs/cache_handler.o helpers/.libs/debug_handler.o 
helpers/.libs/instance.o helpers/.libs/mode_end_call.o 
helpers/.libs/multiplexer.o helpers/.libs/null.o helpers/.libs/old_api.o 
helpers/.libs/read_only.o helpers/.libs/row_merge.o helpers/.libs/scalar.o 
helpers/.libs/scalar_group.o helpers/.libs/serialize.o 
helpers/.libs/snmp_get_statistic.o helpers/.libs/stash_cache.o 
helpers/.libs/stash_to_next.o helpers/.libs/table.o helpers/.libs/table_array.o 
helpers/.libs/table_container.o helpers/.libs/table_data.o 
helpers/.libs/table_dataset.o helpers/.libs/table_iterator.o 
helpers/.libs/table_row.o helpers/.libs/table_tdata.o helpers/.libs/watcher.o 
.libs/agent_handler.o .libs/agent_index.o .libs/agent_read_config.o 
.libs/agent_registry.o .libs/agent_sysORTable.o .libs/agent_trap.o 
.libs/kernel.o .libs/snmp_agent.o .libs/snmp_vars.o 
mibgroup/snmpv3/.libs/usmConf.o mibgroup/agentx/.libs/master.o 
mibgroup/agentx/.libs/subagent.o mibgroup/utilities/.libs/execute.o 
mibgroup/utilities/.libs/iquery.o mibgroup/mibII/.libs/vacm_conf.o 
mibgroup/agentx/.libs/protocol.o mibgroup/agentx/.libs/client.o 
mibgroup/agentx/.libs/master_admin.o mibgroup/agentx/.libs/agentx_config.o 
.libs/snmp_perl.o   -Wl,-rpath -Wl,/root/net-snmp-5.7.3/snmplib/.libs 
-Wl,-rpath -Wl,/usr/local/lib ../snmplib/.libs/libnetsnmp.so -lrt 
-L/usr/local/lib 
/usr/cisco/packages/perl/perl-5.8.8/lib/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a
 -L/usr/cisco/packages/perl/perl-5.8.8/lib/5.8.8/x86_64-linux-thread-multi/CORE 
-lperl -lnsl -ldl -lcrypt -lutil -lpthread -lc -lm  -Wl,-E   -Wl,-soname 
-Wl,libnetsnmpagent.so.30 -o .libs/libnetsnmpagent.so.30.0.3

/usr/bin/ld: 
/usr/cisco/packages/perl/perl-5.8.8/lib/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a(DynaLoader.o):
 relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a 
shared object; recompile with -fPIC

/usr/cisco/packages/perl/perl-5.8.8/lib/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a:
 could not read symbols: Bad value

collect2: ld returned 1 exit status

make[1]: *** [libnetsnmpagent.la] Error 1

make[1]: Leaving directory `/root/net-snmp-5.7.3/agent'

make: *** [subdirs] Error 1

[root@snmplab-linux15 net-snmp-5.7.3]#



Thanks

Sudhakara
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
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