Hi all!
Well ppl i am having problems in compiling my programs. I m using
fedora core3 and followed the instructions as given on the website. i
downloaded the "net-snmp.1.4.rc1.tar" . And then installed the
libraray as a root. Then i ran snmpd. I was just trying the first
example given on the site(snmpdemoapp.c). But when i compiled it using
the makefile given it gave few errorrs. Then i tried compiling it this
way(in two steps):
cc -I/usr/local/include -g   -c snmpdemoapp.c -o snmpdemoapp.o
this ran perfectly well
cc -o snmpdemoapp snmpdemoapp.o -lsnmp
but this showed errors...since i m new to linux and net-snmp library i
couldnot understand much, I am pasting the error here......


/////////////////////
In function `main':
/root/snmpdemoapp.c:41: undefined reference to `init_agent'
snmpdemoapp.o(.text+0x8f):/root/snmpdemoapp.c:46: undefined reference
to `init_nstAgentSubagentObject'
snmpdemoapp.o(.text+0x9a):/root/snmpdemoapp.c:50: undefined reference
to `init_vacm_vars'
snmpdemoapp.o(.text+0x9f):/root/snmpdemoapp.c:51: undefined reference
to `init_usmUser'
snmpdemoapp.o(.text+0xba):/root/snmpdemoapp.c:59: undefined reference
to `init_master_agent'
snmpdemoapp.o(.text+0x10d):/root/snmpdemoapp.c:72: undefined reference
to `agent_check_and_process'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(keytools.o)(.text+0xdb):
In function `generate_Ku':
: undefined reference to `EVP_md5'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(keytools.o)(.text+0xea):
In function `generate_Ku':
: undefined reference to `EVP_DigestInit'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(keytools.o)(.text+0x12d):
In function `generate_Ku':
: undefined reference to `EVP_DigestUpdate'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(keytools.o)(.text+0x151):
In function `generate_Ku':
: undefined reference to `EVP_DigestFinal'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(keytools.o)(.text+0x181):
In function `generate_Ku':
: undefined reference to `EVP_sha1'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x11a):
In function `sc_random':
: undefined reference to `RAND_bytes'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x194):
In function `sc_random':
: undefined reference to `RAND_bytes'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x2c9):
In function `sc_generate_keyed_hash':
: undefined reference to `EVP_md5'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x301):
In function `sc_generate_keyed_hash':
: undefined reference to `HMAC'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x3cb):
In function `sc_generate_keyed_hash':
: undefined reference to `EVP_sha1'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x4d6):
In function `sc_hash':
: undefined reference to `EVP_sha1'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x4ef):
In function `sc_hash':
: undefined reference to `SSLeay'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x517):
In function `sc_hash':
: undefined reference to `EVP_DigestInit'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x52d):
In function `sc_hash':
: undefined reference to `EVP_DigestUpdate'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x532):
In function `sc_hash':
: undefined reference to `SSLeay'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x553):
In function `sc_hash':
: undefined reference to `EVP_DigestFinal'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x5c8):
In function `sc_hash':
: undefined reference to `EVP_md5'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x5e7):
In function `sc_hash':
: undefined reference to `EVP_DigestFinal_ex'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x5ef):
In function `sc_hash':
: undefined reference to `EVP_MD_CTX_cleanup'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x5fe):
In function `sc_hash':
: undefined reference to `EVP_MD_CTX_init'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0xad6):
In function `sc_encrypt':
: undefined reference to `DES_key_sched'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0xb2a):
In function `sc_encrypt':
: undefined reference to `DES_ncbc_encrypt'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0xb73):
In function `sc_encrypt':
: undefined reference to `DES_ncbc_encrypt'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0xd14):
In function `sc_encrypt':
: undefined reference to `AES_set_encrypt_key'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0xd69):
In function `sc_encrypt':
: undefined reference to `AES_cfb128_encrypt'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0xfd7):
In function `sc_decrypt':
: undefined reference to `DES_key_sched'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x101c):
In function `sc_decrypt':
: undefined reference to `DES_cbc_encrypt'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x11cd):
In function `sc_decrypt':
: undefined reference to `AES_set_encrypt_key'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../libsnmp.a(scapi.o)(.text+0x121c):
In function `sc_decrypt':
: undefined reference to `AES_cfb128_encrypt'
collect2: ld returned 1 exit status
//////////////////////////

Hope to hear from you ppl soon!!!! i m stuck with my project due to this....

Puru

--
--
Computer Engineering Undergraduate(final year)
Dept of Computer Science and Engineering
Vellore Institute of Technology


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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

Reply via email to