Compilation Problem with 5.3.1

Amit Gupta <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <OF38A6BAB0.1DF60775-ON652571EF.002216C9-652571EF.00235A57@hsc.com>
Hi All,

I ahave just downloaded the Netsnmp 5.3.1 source code and trying to build 
it there on
the Linux machine. 


gcc -g -O2 -Dlinux -I/usr/include/rpm -o .libs/snmpd snmpd.o 
./.libs/libnetsnmp
mibs.so ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so 
../snmplib
/.libs/libnetsnmp.so -ldl -lrpm -lrpmio /usr/lib/libpopt.so -lz -lcrypto 
-lm  -W
l,--rpath -Wl,/usr/local/lib
/usr/lib/libpopt.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/home/amit/netsnmp/net-snmp-5.3.1/agent'
make: *** [subdirs] Error 1


and also when i try to compile only the perl module, i get the following 
error

no-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET
_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64   -DVERSION=\"5.0301\" 
-DXS_VERSI
ON=\"5.0301\" -fPIC 
"-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE"
default_store.c
cc1: error: unrecognized command line option "-fstack-protector"
cc1: error: invalid parameter `ssp-buffer-size'
default_store.c:1: error: CPU you selected does not support x86-64 
instruction s
et
default_store.c:1: error: bad value (generic) for -mtune= switch
make[1]: *** [default_store.o] Error 1
make[1]: Leaving directory 
`/home/amit/netsnmp/net-snmp-5.3.1/perl/default_store
'
make: *** [subdirs] Error 2

Regards
- AMit

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
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.