I add a mib in mibgroup  ./agent/mibgroup/moxa-mib

checking for and configuring mib modules to use... agentx default_modules mibII 
moxa-mib notification.
agentx default_modules mibII moxa-mib notification agentx/master 
agentx/subagent snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable 
mibII/vacm_vars mibII/vacm_conf mibII/setSerialNo mibII/at mibII/ifTable 
mibII/ip mibII/tcp mibII/icmp mibII/udp mibII/ipv6 if-mib ip-mib ip-forward-mib 
tcp-mib udp-mibIn file included from module_tmp_header.h:162:0:
./agent/mibgroup/moxa-mib/moxamib.h:54:20: fatal error: system.h: No such file 
or directory
compilation terminated.

Cann’t find ./agent/mibgroup/moxa-mib/moxamib.h include file system.h

system.h  in path 
/home/ray/Downloads/buildroot/EDR-G9010/build/INSFrameworks-custom/MXcore/include

So I add 
--with-cflags=/home/ray/Downloads/buildroot/EDR-G9010/build/INSFrameworks-custom/MXcore/include

But it not include the cflag path

./configure --with-cflags="-DSWITCH_ROUTER 
-I/home/ray/Downloads/buildroot/EDR-G9010/build/INSFrameworks-custom 
-I/home/ray/Downloads/buildroot/EDR-G9010/build/INSFrameworks-custom/productinc/
 
-I/home/ray/Downloads/buildroot/EDR-G9010/build/INSFrameworks-custom/product/include
 
-I/home/ray/Downloads/buildroot/EDR-G9010/build/INSFrameworks-custom/MXcore/include
  
-I/home/ray/Downloads/buildroot/EDR-G9010/build/INSFrameworks-custom/product/lib"
 --with-ldflags=" 
-L/home/ray/Downloads/buildroot/EDR-G9010/build/INSFrameworks-custom/product/lib
 
-L/home/ray/Downloads/buildroot/EDR-G9010/build/INSFrameworks-custom/MXcore/shared_apps/sw_ctrl_mrvl
 
-L/home/ray/Downloads/buildroot/EDR-G9010/build/INSFrameworks-custom/productlib 
-lsyscommon -lsysshm -lswctrl -lswctrlmrvl -lpthread -ltr2api" --with-defaults 
--with-perl-modules=no --disable-embedded-perl --disable-as-needed 
--disable-perl-cc-checks --with-mib-modules="agentx mibII notification 
moxa-mib" --disable-manuals --disable-scripts --disable-mibs 
--disable-mib-loading --enable-mini-agent


From: Ray LC Chao (趙良基)
Sent: Thursday, April 16, 2020 8:00 PM
To: net-snmp-users@lists.sourceforge.net
Subject: CFLAG NOT WORK CORRECT

I add a mib in mibgroup  ex:./agent/mibgroup/test-mib
Directory test-mib have testmib.c testmib.h

testmib.h:
..
Include ”a1.h”
Include “a2.h”
…

a1.h and a2.h in path /home/Download/include
So,config option : --with-cflags="$(TARGET_FLAGS) -I/home/Download/include”
But this CFLAG not work

./agent/mibgroup/test-mib /../../../../home/Download/include: fatal error: 
a1.h: No such file or directory
#include "a1.h"

./agent/mibgroup/test-mib /../../../../home/Download/include: fatal error: 
a1.h: No such file or directory
#include "a2.h"

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to