Hi all...
i am going to cross compile subagent using net-snmp-config...
I already installed net-snmp-5.3.2 on fedora11
===============================================================================================
[r...@localhost net-snmp-5.3.2]# net-snmp-config --compile-subagent fan fan.c
generating the tmporary code file: netsnmptmp.19241.c
void init_fan(void);
checking for init_fan in fan.c
void init_fan(void)
running: ppc_82xx-gcc -g -O2 -Dlinux -I. -I/home/proj/msap/apps/sychoi/install/usr/include -o fan netsnmptmp.19241.c fan.c -L/home/proj/apps/sychoi/install/usr/lib -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldl -lcrypto -lm
/tmp/ccO9adDs.o: In function `stop_server':
/home/proj/msap/apps/sychoi/net-snmp-5.3.2/netsnmptmp.19241.c:13: undefined reference to `netsnmp_running'
/home/proj/msap/apps/sychoi/net-snmp-5.3.2/netsnmptmp.19241.c:13: undefined reference to `netsnmp_running'
/tmp/ccO9adDs.o: In function `main':
/home/proj/msap/apps/sychoi/net-snmp-5.3.2/netsnmptmp.19241.c:36: undefined reference to `netsnmp_running'
/home/proj/msap/apps/sychoi/net-snmp-5.3.2/netsnmptmp.19241.c:36: undefined reference to `netsnmp_running'
/home/proj/msap/apps/sychoi/net-snmp-5.3.2/netsnmptmp.19241.c:45: undefined reference to `netsnmp_running'
/tmp/ccO9adDs.o:/home/proj/msap/apps/sychoi/net-snmp-5.3.2/netsnmptmp.19241.c:45: more undefined references to `netsnmp_running' follow
/opt/eldk-4.0/usr/../ppc_82xx/usr/lib/libnetsnmpagent.so: undefined reference to `hosts_ctl'
collect2: ld returned 1 exit status
removing the tmporary code file: netsnmptmp.19241.c
============================================================================================
as this error message show.... I think "net-snmp-config" is not matched cross compiler ppc_82xx_gcc...
How should i do if i want to make subagent with "net-snmp-config" in cross compiling enviroment...
I just want to make a subagent... with "net-snmp_config"......
please help me....
|
|
![]()
|
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders