/share/rsdk/bin/rsdk-linux-gcc -DRTK_X86_CLE -DRTK_X86_ASICDRV -DCONFIG_APOLLO_CMD -DCONFIG_SMIDA1011 -DDISABLE_VLAN_SHADOW -DCONFIG_LINUX_USER_SHELL -D'EPON_OAM_VERSION="1.0.8"' -DCONFIG_HGU_APP -DCONFIG_RTL865X -DCONFIG_RTL865XC -DRTL865X_MODEL_USER -DCONFIG_GPON_VERSION=2 -DRTK_X86_CLE -DNO_MIB_SEPARATE -DCONFIG_SOC_DEPEND_FEATURE -DCONFIG_SOC_MODE -DCONFIG_BEN_SINGLE_END -DCONFIG_CLASSFICATION_FEATURE -DCONFIG_GPON_VERSION=2 -DRTK_X86_CLE -DNO_MIB_SEPARATE -DCONFIG_SOC_DEPEND_FEATURE -DCONFIG_SOC_MODE -DCONFIG_SDK_RTL9602C -DFORCE_PROBE_RTL9602C_REV_B -DCONFIG_BEN_SINGLE_END -DCONFIG_CLASSFICATION_FEATURE -DCONFIG_GPON_VERSION=2 -DRTK_X86_CLE -DNO_MIB_SEPARATE -DCONFIG_SOC_DEPEND_FEATURE -DCONFIG_SOC_MODE -DCONFIG_SDK_RTL9602C -DFORCE_PROBE_RTL9602C_REV_B -DCONFIG_BEN_SINGLE_END -DCONFIG_CLASSFICATION_FEATURE -I/share/PTF1204_HN/PTF1204 -I/share/PTF1204_HN/PTF1204/include -DEMBED -include/share/PTF1204_HN/PTF1204/include/linux/autoconf.h -include/share/PTF1204_HN/PTF1204/config/autoconf.h -I./inc -I./inc/drv/drv_hgu -I./inc/user -I./inc/user/wrapper -I/share/PTF1204_HN/PTF1204/linux-2.6.x/drivers/net/rtl86900/sdk/include -I/share/PTF1204_HN/PTF1204/linux-2.6.x/drivers/net/rtl86900/sdk/system/include -I/share/PTF1204_HN/PTF1204/linux-2.6.x/drivers/net/rtl86900/sdk/include/hal/chipdef/apollo -I/share/PTF1204_HN/PTF1204/linux-2.6.x/drivers/net/rtl86900/sdk/src/app/pkt_redirect/inc -I./inc/igmp -I/share/PTF1204_HN/PTF1204/user/boa/src/LINUX -I/share/PTF1204_HN/PTF1204/user/boa/src/LINUX/form_src -I/share/PTF1204_HN/PTF1204/include/linux -include/share/PTF1204_HN/PTF1204/autoconf.h -I/share/PTF1204_HN/PTF1204/linux-2.6.x/drivers/net/rtl86900/sdk/../romeDriver - i./inc/user/wrapper/ctc_hgu./SRC/epon_oam_main. O./SRC/epon_oam_db. O./SRC/epon_oam_rx. O./SRC/epon_oam_tx. O./SRC/epon_oam_state. O./SRC/epon_oam_dbg. O/share/PTF1204_HN PTF1204/user/boa/SRC/LINUX/mibtbl. O/share/PTF1204_HN PTF1204/user/boa/SRC/LINUX/mib. O./SRC/DRV drv_hgu/drv_acl. O./SRC/DRV drv_hgu/drv_vlan. O./SRC/DRV drv_hgu/drv_mac. O./SRC/DRV drv_hgu/drv_convert. O./SRC/DRV drv_hgu/../sys_portview.o ./src/drv/drv_hgu/drv_clf.o ./src/user/ctc_oam.o ./src/user/ctc_oam_var.o ./src/user/ctc_oam_cli.o ./src/user/tk_oam.o ./src/user/kt_oam.o ./src/user/ctc_oam_alarmtbl.o ./src/user/ctc_loop_detect.o ./src/user/cortina_oam.o ./src/user/wrapper/ctc_wrapper.o ./src/user/wrapper/ctc_hgu/ctc_hgu.o ./src/user/wrapper/ctc_hgu/ctc_mc.o ./src/user/wrapper/ctc_hgu/ctc_vlan.o ./src/user/wrapper/ctc_hgu/ctc_clf.o ./src/igmp/epon_oam_igmp.o ./src/igmp/epon_oam_igmp_db.o ./src/igmp/epon_oam_igmp_querier.o ./src/igmp/epon_oam_igmp_hw.o -L/share/PTF1204_HN/PTF1204/linux-2.6.x/drivers/net/rtl86900/object/src/app/lib -lrtk -lpthread -lrt -lpr -L/share/PTF1204_HN/PTF1204/lib/librtk -lmib -o bin/eponoamd
/share/PTF1204_HN PTF1204/lib/librtk libmib. So: undefined reference to ` g_VoIP_Feature '
Collect2: ld returned 1 exit status
Make [4] : * * * [eponoamd] Error 1
Make [4] : brigade directory `/share/PTF1204_HN/PTF1204/Linux - 2.6 x/drivers/net/rtl86900/SDK/SRC/app/epon_oam_v1 '
Make [3] : * * * [all] Error 1
Make [3] : brigade directory `/share/PTF1204_HN/PTF1204/Linux - 2.6 x/drivers/net/rtl86900/SDK/SRC/app '
Make [2] : [all] Error 2 * * *
Make [2] : brigade directory `/share/PTF1204_HN PTF1204/user/diagshell '
Make [1] : [all] Error 2 * * *
Make [1] : brigade directory `/share/PTF1204_HN PTF1204/user '
Consult, appear this kind of problem solution should be how? Thank you very much!
CodePudding user response:
Static link first try
CodePudding user response:
May also lack of other dynamic library:/share/PTF1204_HN PTF1204/lib/librtk libmib. So: undefined reference to ` g_VoIP_Feature '
Can check g_VoIP_Feature this function is belong to which libraries
CodePudding user response:
https://blog.csdn.net/weixin_42462202/article/details/84975306