--===============1245968166==
Content-Type: multipart/alternative;
boundary="----=_Part_8570_6478213.1165073878028"

------=_Part_8570_6478213.1165073878028
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

When I am trying to compile the snmpusm.c file in linux device I am facing
the following error. Kindly help me out.

$ gcc snmpusm.c -o snmpusm -I/home/me_user/net-snmp-5.3.1/include -lnetsnmp
-lcrypto -lm
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0x80):
multiple definition of `usmAES128PrivProtocol'
/tmp/ccTiH0Iv.o(.data+0x188): first defined here
/usr/bin/ld: Warning: size of symbol `usmAES128PrivProtocol' changed from 4
in /tmp/ccTiH0Iv.o to 40 in
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0xc0):
multiple definition of `usmDESPrivProtocol'
/tmp/ccTiH0Iv.o(.data+0x120): first defined here
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0x100):
multiple definition of `usmNoPrivProtocol'
/tmp/ccTiH0Iv.o(.data+0xe0): first defined here
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0x140):
multiple definition of `usmHMACSHA1AuthProtocol'
/tmp/ccTiH0Iv.o(.data+0xa0): first defined here
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0x180):
multiple definition of `usmHMACMD5AuthProtocol'
/tmp/ccTiH0Iv.o(.data+0x60): first defined here
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0x1c0):
multiple definition of `usmNoAuthProtocol'
/tmp/ccTiH0Iv.o(.data+0x20): first defined here
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.text+0x0):
In function `usm_malloc_usmStateReference':
: multiple definition of `usm_malloc_usmStateReference'
/tmp/ccTiH0Iv.o(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `usm_malloc_usmStateReference' changed
from 29 in /tmp/ccTiH0Iv.o to 44 in
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status


--
Regards & Thanks,
nagalav

------=_Part_8570_6478213.1165073878028
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

 

When I am trying to compile the snmpusm.c file in linux device I am facing the following error. Kindly help me out.

 

$ gcc snmpusm.c -o snmpusm -I/home/me_user/net-snmp-5.3.1/include -lnetsnmp -lcrypto -lm
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0x80): multiple definition of `usmAES128PrivProtocol'

/tmp/ccTiH0Iv.o(.data+0x188): first defined here
/usr/bin/ld: Warning: size of symbol `usmAES128PrivProtocol' changed from 4 in /tmp/ccTiH0Iv.o to 40 in /usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o
)
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0xc0): multiple definition of `usmDESPrivProtocol'
/tmp/ccTiH0Iv.o(.data+0x120): first defined here
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(
snmpusm.o)(.data+0x100): multiple definition of `usmNoPrivProtocol'
/tmp/ccTiH0Iv.o(.data+0xe0): first defined here
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0x140): multiple definition of `usmHMACSHA1AuthProtocol'

/tmp/ccTiH0Iv.o(.data+0xa0): first defined here
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0x180): multiple definition of `usmHMACMD5AuthProtocol'
/tmp/ccTiH0Iv.o(.data+0x60): first defined here

/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(snmpusm.o)(.data+0x1c0): multiple definition of `usmNoAuthProtocol'
/tmp/ccTiH0Iv.o(.data+0x20): first defined here
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(
snmpusm.o)(.text+0x0): In function `usm_malloc_usmStateReference':
: multiple definition of `usm_malloc_usmStateReference'
/tmp/ccTiH0Iv.o(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `usm_malloc_usmStateReference' changed from 29 in /tmp/ccTiH0Iv.o to 44 in /usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libnetsnmp.a(
snmpusm.o)
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status


--
Regards & Thanks,

nagalav




------=_Part_8570_6478213.1165073878028--


--===============1245968166==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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?p...rge&CID=DEVDEV
--===============1245968166==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============1245968166==--