On Fri, 2010-04-02 at 10:52 +0900, 생각하기 wrote:
>                               Hi all.... 
>                                    
>      I installed net-snmp-5.3.2 with cross compiler ppc_82xx_gcc
>                             I command this
>                                    
>             "net-snmp-config --compile-subagent fan fan.c"
>                                    
>                      Below error message arise.. 
>                                    
> =====================================================================================================================================================================
>                                    
> [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

>From the error messages it looks as if you have two versions of
net-snmp-config installed and are running on a mix of them.

What is the output of 'type net-snmp-config' or 'which net-snmp-config'?
Is it what you expected?

What happens if you run ./bin/net-snmp-config ... instead of
net-snmp-config?

/MF


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

Reply via email to