rogalee 发表于 2022-10-8 15:27:11

FET335交叉编译snmp

SNMP5.9.1, 使用arm-arago-gnueabi-linux交叉编译SNMP

./configure --host=arm-linux --target=arm-linux --build=i686-linux--with-cc=arm-arago-linux-gnueabi-gcc --with-ar=arm-arago-linux-gnueabi-ar --prefix=/opt/net-snmp/ --enable-mini-agent --disable-shared --with-endianness=little --disable-ipv6 --disable-manuals--disable-applications --disable-ucd-snmp-compatibility --enable-as-needed --enable-debugging --with-mib-modules=infomation




infomation就是要交叉自动生成的文件,infomation.c 和infomation.h,这两个文件应该位于应该位于agent/mibgroup目录下。但是没有自动生成这两个文件。make出错,缺少stdio.h文件,如下log。C库都装过了。lsb-core和 build-enssential都装过了。

root@ubuntu:/usr/local/snmp# ./build.sh 2>&1 |tee log.txt
declare -x CLUTTER_IM_MODULE="xim"
declare -x COMPIZ_CONFIG_PROFILE="ubuntu"
declare -x CONFIG_SITE="/usr/local/arm/site-config"
declare -x CPATH="/usr/local/arm/arm-arago-linux-gnueabi/usr/include:/usr/local/arm/arm-arago-linux-gnueabi/usr/include:/usr/local/arm/arm-arago-linux-gnueabi/usr/include:"
declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-682HNNCdgA"
declare -x DEFAULTS_PATH="/usr/share/gconf/ubuntu.default.path"
declare -x DESKTOP_SESSION="ubuntu"
declare -x DISPLAY=":0"
declare -x GDMSESSION="ubuntu"
declare -x GDM_LANG="en_US"
declare -x GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
declare -x GNOME_KEYRING_CONTROL=""
declare -x GNOME_KEYRING_PID=""
declare -x GPG_AGENT_INFO="/home/kernelshell/.gnupg/S.gpg-agent:0:1"
declare -x GTK2_MODULES="overlay-scrollbar"
declare -x GTK_IM_MODULE="ibus"
declare -x GTK_MODULES="gail:atk-bridge:unity-gtk-module"
declare -x HOME="/root"
declare -x IM_CONFIG_PHASE="1"
declare -x INSTANCE="Unity"
declare -x JOB="gnome-session"
declare -x LANG="en_US.UTF-8"
declare -x LANGUAGE="en_US"
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LIBTOOL_SYSROOT_PATH="/usr/local/arm/arm-arago-linux-gnueabi"
declare -x LOGNAME="root"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:"
declare -x MAIL="/var/mail/root"
declare -x MANDATORY_PATH="/usr/share/gconf/ubuntu.mandatory.path"
declare -x OLDPWD="/usr/local/snmp"
declare -x PATH="/usr/local/arm/bin:/usr/local/arm/bin:/usr/local/arm/arm-arago-linux-gnueabi/bin:/usr/local/arm/arm-arago-linux-gnueabi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
declare -x PKG_CONFIG_PATH="/usr/local/arm/arm-arago-linux-gnueabi/usr/lib/pkgconfig"
declare -x PKG_CONFIG_SYSROOT_DIR="/usr/local/arm/arm-arago-linux-gnueabi"
declare -x PWD="/usr/local/snmp/net-snmp-5.9.1"
declare -x QT4_IM_MODULE="xim"
declare -x QT_ACCESSIBILITY="1"
declare -x QT_IM_MODULE="ibus"
declare -x QT_LINUX_ACCESSIBILITY_ALWAYS_ON="1"
declare -x QT_QPA_PLATFORMTHEME="appmenu-qt5"
declare -x SDK_PATH="/usr/local/arm"
declare -x SESSIONTYPE="gnome-session"
declare -x SHELL="/bin/bash"
declare -x SHLVL="3"
declare -x SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"
declare -x TARGET_SYS="arm-arago-linux-gnueabi"
declare -x TERM="xterm-256color"
declare -x TOOLCHAIN_PATH="/usr/local/arm"
declare -x UPSTART_EVENTS="started starting"
declare -x UPSTART_INSTANCE=""
declare -x UPSTART_JOB="unity-settings-daemon"
declare -x UPSTART_SESSION="unix:abstract=/com/ubuntu/upstart-session/1000/1450"
declare -x USER="root"
declare -x VTE_VERSION="4205"
declare -x WINDOWID="52432048"
declare -x XAUTHORITY="/home/kernelshell/.Xauthority"
declare -x XDG_CONFIG_DIRS="/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg"
declare -x XDG_CURRENT_DESKTOP="Unity"
declare -x XDG_DATA_DIRS="/usr/share/ubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop"
declare -x XDG_GREETER_DATA_DIR="/var/lib/lightdm-data/kernelshell"
declare -x XDG_RUNTIME_DIR="/run/user/1000"
declare -x XDG_SEAT="seat0"
declare -x XDG_SEAT_PATH="/org/freedesktop/DisplayManager/Seat0"
declare -x XDG_SESSION_DESKTOP="ubuntu"
declare -x XDG_SESSION_ID="c2"
declare -x XDG_SESSION_PATH="/org/freedesktop/DisplayManager/Session0"
declare -x XDG_SESSION_TYPE="x11"
declare -x XDG_VTNR="7"
declare -x XMODIFIERS="@im=ibus"
configure: loading site script /usr/local/arm/site-config
checking for arm-linux-gcc... no
checking for gcc... gcc
configure: WARNING: using cross tools not prefixed with host triplet
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
configure: WARNING: --with-endianness is obsolete
checking openssl/aes.h usability... no
checking openssl/aes.h presence... no
checking for openssl/aes.h... no
checking openssl/evp.h usability... no
checking openssl/evp.h presence... no
checking for openssl/evp.h... no
checking what to build and install...agent local mibs
using default persistent mask 077
using default temporary file pattern /tmp/snmpd****
using default AgentX socket /var/agentx/master
using default "enterprise.net-snmp"
using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..."
using default notifications "NET-SNMP-MIB::netSnmpNotifications"
using OS default send buffer size for server sockets
using OS default recv buffer size for server sockets
using OS default send buffer size for client sockets
using OS default recv buffer size for client sockets
checking whether to prompt for values... configure:


       ************** Configuration Section **************


        You are about to be prompted with a series of questions.Answer
them carefully, as they determine how the SNMP agent and related
applications are to function.


        After the configure script finishes, you can browse the newly
created net-snmp-config.h file for further - less important - parameters to
modify.Be careful if you re-run configure though, since net-snmp-config.h
will be overwritten.


-Press return to continue-




yes
checking Default version of SNMP to use...




*** Default SNMP Version:


        Starting with Net-SNMP 5.0, you can choose the default version of
the SNMP protocol to use when no version is given explicitly on the
command line, or via an 'snmp.conf' file.In the past this was set to
SNMPv1, but you can use this to switch to SNMPv3 if desired.SNMPv3
will provide a more secure management environment (and thus you're
encouraged to switch to SNMPv3), but may break existing scripts that
rely on the old behaviour.(Though such scripts will probably need to
be changed to use the '-c' community flag anyway, as the SNMPv1
command line usage has changed as well.).
   At this prompt you can select "1", "2" (for SNMPv2c), or "3" as
the default version for the command tools (snmpget, ...) to use.This
can always be overridden at runtime using the -v flag to the tools, or
by using the "defVersion" token in your snmp.conf file.
   Providing the --with-default-snmp-version="x" parameter to ./configure
will avoid this prompt.


Default version of SNMP to use (3): 3
setting Default version of SNMP to use to...3
checking System Contact Information...




*** System Contact Information:


        Describes who should be contacted about the host the agent is
running on.This information is available in the MIB-II tree.This
can also be over-ridden using the "syscontact" syntax in the agent's
configuration files.
Providing the --with-sys-contact="contact" parameter to ./configure
will avoid this prompt.


System Contact Information (@@no.where): cmm@coolshark.com
setting System Contact Information to...cmm@coolshark.com
checking System Location...




*** System Location:


        Describes the location of the system.This information is
available in the MIB-II tree.this can also be over-ridden using the
"syslocation" syntax in the agent's configuration files.
Providing the --with-sys-location="location" parameter to ./configure
will avoid this prompt.


System Location (Unknown): beijing
setting System Location to...beijing
checking Location to write logfile...




*** Logfile location:


        Enter the default location for the snmpd agent to dump
information & errors to.If not defined (enter the keyword "none"
at the prompt below) the agent will use stdout and stderr instead.
(Note: This value can be over-ridden using command line options.)
Providing the --with-logfile="path" parameter to ./configure
will avoid this prompt.


Location to write logfile (/var/log/snmpd.log): none
setting Location to write logfile to...none
checking Location to write persistent information...




*** snmpd persistent storage location:


        Enter a directory for the SNMP library to store persistent
data in the form of a configuration file.This default location is
different than the old default location (which was for ucd-snmp).If
you stay with the new path, I'll ask you in a second if you wish to
copy your files over to the new location (once only).If you pick
some other path than the default, you'll have to copy them yourself.
There is nothing wrong with picking the old path (/var/ucd-snmp) if
you'd rather.
Providing the --with-persistent-directory="path" parameter to
./configure will avoid this prompt.


Location to write persistent information (/var/net-snmp):
setting Location to write persistent information to.../var/net-snmp
checking if I need to feed myself to ksh... no
checking for egrep... (cached) /bin/grep -E
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a sed that does not truncate output... /bin/sed
checking for file... file
checking for find... find
checking for whoami... whoami
checking for autoconf... :
checking for autoheader... :
checking for perl... /usr/bin/perl
checking for ps... /bin/ps
checking for python3... /usr/bin/python3
checking for uname... /bin/uname
checking whether the Perl function system() invokes a POSIX shell... yes
checking for arm-linux-gcc... arm-arago-linux-gnueabi-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether arm-arago-linux-gnueabi-gcc accepts -g... (cached) yes
checking for arm-arago-linux-gnueabi-gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by arm-arago-linux-gnueabi-gcc... /usr/local/arm/arm-arago-linux-gnueabi/bin/ld
checking if the linker (/usr/local/arm/arm-arago-linux-gnueabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for arm-linux-dumpbin... no
checking for arm-linux-link... no
checking for dumpbin... no
checking for link... link -dump
checking the name lister (nm) inte**ce... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert i686-pc-linux-gnu file names to arm-unknown-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/local/arm/arm-arago-linux-gnueabi/bin/ld option to reload object files... -r
checking for arm-linux-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for arm-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-linux-ar... arm-arago-linux-gnueabi-ar
checking for archiver @FILE support... @
checking for arm-linux-strip... no
checking for strip... strip
checking for arm-linux-ranlib... no
checking for ranlib... ranlib
checking for gawk... no
checking for mawk... mawk
checking command to parse nm output from arm-arago-linux-gnueabi-gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for arm-linux-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-arago-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-arago-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC
checking if arm-arago-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-arago-linux-gnueabi-gcc static flag -static works... yes
checking if arm-arago-linux-gnueabi-gcc supports -c -o file.o... yes
checking if arm-arago-linux-gnueabi-gcc supports -c -o file.o... (cached) yes
checking whether the arm-arago-linux-gnueabi-gcc linker (/usr/local/arm/arm-arago-linux-gnueabi/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for arm-linux-windres... no
checking for windres... no
checking target system type... arm-unknown-linux-gnu
checking whether the linker supports -Wl,-no-undefined... yes
checking whether to un-define target system token (before redefining)... yes
checking for system include file... net-snmp/system/linux.h
checking for machine-type include file... net-snmp/machine/generic.h
checking for additional cpp flags...
checking for arm-arago-linux-gnueabi-gcc... /usr/local/arm/bin/arm-arago-linux-gnueabi-gcc
checking whether the compiler supports -fno-strict-aliasing... yes
checking for dpkg-query... /usr/bin/dpkg-query
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/wait.h that is POSIX.1 compatible... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/syslog.h usability... yes
checking sys/syslog.h presence... yes
checking for sys/syslog.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for nlist.h... no
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking kstat.h usability... no
checking kstat.h presence... no
checking for kstat.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for sys/stat.h... (cached) yes
checking sys/systemcfg.h usability... no
checking sys/systemcfg.h presence... no
checking for sys/systemcfg.h... no
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking netipx/ipx.h usability... yes
checking netipx/ipx.h presence... yes
checking for netipx/ipx.h... yes
checking for dlfcn.h... (cached) yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking for fcntl.h... (cached) yes
checking fstab.h usability... yes
checking fstab.h presence... yes
checking for fstab.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for io.h... (cached) no
checking ioctls.h usability... no
checking ioctls.h presence... no
checking for ioctls.h... no
checking for kstat.h... (cached) no
checking kvm.h usability... no
checking kvm.h presence... no
checking for kvm.h... no
checking for limits.h... (cached) yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking mtab.h usability... no
checking mtab.h presence... no
checking for mtab.h... no
checking pkglocs.h usability... no
checking pkglocs.h presence... no
checking for pkglocs.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking spawn.h usability... yes
checking spawn.h presence... yes
checking for spawn.h... yes
checking com_err.h usability... no
checking com_err.h presence... no
checking for com_err.h... no
checking et/com_err.h usability... no
checking et/com_err.h presence... no
checking for et/com_err.h... no
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking utsname.h usability... no
checking utsname.h presence... no
checking for utsname.h... no
checking sys/diskio.h usability... no
checking sys/diskio.h presence... no
checking for sys/diskio.h... no
checking sys/dkio.h usability... no
checking sys/dkio.h presence... no
checking for sys/dkio.h... no
checking for sys/file.h... (cached) yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/fixpoint.h usability... no
checking sys/fixpoint.h presence... no
checking for sys/fixpoint.h... no
checking sys/fs.h usability... no
checking sys/fs.h presence... no
checking for sys/fs.h... no
checking for sys/ioctl.h... (cached) yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking sys/mntent.h usability... no
checking sys/mntent.h presence... no
checking for sys/mntent.h... no
checking sys/mnttab.h usability... no
checking sys/mnttab.h presence... no
checking for sys/mnttab.h... no
checking sys/pool.h usability... no
checking sys/pool.h presence... no
checking for sys/pool.h... no
checking sys/protosw.h usability... no
checking sys/protosw.h presence... no
checking for sys/protosw.h... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking for sys/sockio.h... (cached) no
checking for sys/stat.h... (cached) yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/stream.h usability... no
checking sys/stream.h presence... no
checking for sys/stream.h... no
checking sys/sysget.h usability... no
checking sys/sysget.h presence... no
checking for sys/sysget.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking sys/sysmp.h usability... no
checking sys/sysmp.h presence... no
checking for sys/sysmp.h... no
checking sys/tcpipstats.h usability... no
checking sys/tcpipstats.h presence... no
checking for sys/tcpipstats.h... no
checking for sys/utsname.h... (cached) yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/vm.h usability... no
checking sys/vm.h presence... no
checking for sys/vm.h... no
checking sys/vmmac.h usability... no
checking sys/vmmac.h presence... no
checking for sys/vmmac.h... no
checking sys/vmmeter.h usability... no
checking sys/vmmeter.h presence... no
checking for sys/vmmeter.h... no
checking sys/vmparam.h usability... no
checking sys/vmparam.h presence... no
checking for sys/vmparam.h... no
checking sys/vmsystm.h usability... no
checking sys/vmsystm.h presence... no
checking for sys/vmsystm.h... no
checking asm/page.h usability... no
checking asm/page.h presence... no
checking for asm/page.h... no
checking asm/types.h usability... yes
checking asm/types.h presence... yes
checking for asm/types.h... yes
checking inet/mib2.h usability... no
checking inet/mib2.h presence... no
checking for inet/mib2.h... no
checking linux/hdreg.h usability... yes
checking linux/hdreg.h presence... yes
checking for linux/hdreg.h... yes
checking linux/tasks.h usability... no
checking linux/tasks.h presence... no
checking for linux/tasks.h... no
checking machine/param.h usability... no
checking machine/param.h presence... no
checking for machine/param.h... no
checking ufs/fs.h usability... no
checking ufs/fs.h presence... no
checking for ufs/fs.h... no
checking uvm/uvm_extern.h usability... no
checking uvm/uvm_extern.h presence... no
checking for uvm/uvm_extern.h... no
checking uvm/uvm_param.h usability... no
checking uvm/uvm_param.h presence... no
checking for uvm/uvm_param.h... no
checking vm/vm.h usability... no
checking vm/vm.h presence... no
checking for vm/vm.h... no
checking vm/vm_extern.h usability... no
checking vm/vm_extern.h presence... no
checking for vm/vm_extern.h... no
checking vm/vm_param.h usability... no
checking vm/vm_param.h presence... no
checking for vm/vm_param.h... no
checking for fcntl.h... (cached) yes
checking for grp.h... (cached) yes
checking for pwd.h... (cached) yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking for sys/ioctl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking xti.h usability... no
checking xti.h presence... no
checking for xti.h... no
checking sys/dmap.h usability... no
checking sys/dmap.h presence... no
checking for sys/dmap.h... no
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/timeout.h usability... no
checking sys/timeout.h presence... no
checking for sys/timeout.h... no
checking machine/pte.h usability... no
checking machine/pte.h presence... no
checking for machine/pte.h... no
checking pci/pci.h usability... no
checking pci/pci.h presence... no
checking for pci/pci.h... no
checking valgrind/valgrind.h usability... no
checking valgrind/valgrind.h presence... no
checking for valgrind/valgrind.h... no
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking for openssl/aes.h... (cached) no
checking openssl/dh.h usability... no
checking openssl/dh.h presence... no
checking for openssl/dh.h... no
checking openssl/des.h usability... no
checking openssl/des.h presence... no
checking for openssl/des.h... no
checking openssl/hmac.h usability... no
checking openssl/hmac.h presence... no
checking for openssl/hmac.h... no
checking for openssl/evp.h... (cached) no
checking security/cryptoki.h usability... no
checking security/cryptoki.h presence... no
checking for security/cryptoki.h... no
checking for rpm/rpmts.h... no
checking for rpm/rpmfileutil.h... no
checking for sys/swap.h... yes
checking for malloc.h... yes
checking for osreldate.h... no
checking for machine/types.h... no
checking for sys/dkstat.h... no
checking for sys/conf.h... no
checking for sys/mbuf.h... no
checking for sys/mount.h... yes
checking for sys/proc.h... no
checking for sys/queue.h... yes
checking for sys/user.h... yes
checking sys/sema.h usability... no
checking sys/sema.h presence... no
checking for sys/sema.h... no
checking for sys/hashing.h... no
checking for sys/vnode.h... no
checking for sys/disklabel.h... no
checking nbutil.h usability... no
checking nbutil.h presence... no
checking for nbutil.h... no
checking for ufs/ufs/dinode.h... no
checking for ufs/ufs/quota.h... no
checking for ufs/ufs/inode.h... no
checking for ufs/ffs/fs.h... no
checking for vm/swap_pager.h... no
checking for linux/netlink.h... yes
checking for linux/rtnetlink.h... yes
checking for sys/socket.h... yes
checking for sys/un.h... yes
checking for netinet/tcp_fsm.h... no
checking for sys/sockio.h... (cached) no
checking for sys/socketvar.h... yes
checking for net/if_dl.h... no
checking for net/if_types.h... no
checking for arpa/inet.h... yes
checking for net/if.h... yes
checking for netinet/in.h... yes
checking for netdb.h... yes
checking for net/if_arp.h... yes
checking for net/if_mib.h... no
checking for net/if_var.h... no
checking for netinet/if_ether.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/in_var.h... no
checking for netinet/ip.h... yes
checking for netinet/ip_icmp.h... yes
checking for netinet/icmp_var.h... no
checking for netinet/ip_var.h... no
checking for netinet/tcp.h... yes
checking for netinet/tcp_timer.h... no
checking for netinet/tcp_var.h... no
checking for netinet/tcpip.h... no
checking for netinet/udp.h... yes
checking for netinet/udp_var.h... no
checking for net/route.h... yes
checking for netinet/icmp6.h... yes
checking for netinet/in_pcb.h... no
checking for netinet/ip6.h... yes
checking for netinet6/in6_var.h... no
checking for netinet6/in6_pcb.h... no
checking for netinet6/ip6_var.h... no
checking for netinet6/nd6.h... no
checking for netinet6/tcp6.h... no
checking for netinet6/tcp6_fsm.h... no
checking for netinet6/tcp6_timer.h... no
checking for netinet6/tcp6_var.h... no
checking linux/ethtool.h usability... yes
checking linux/ethtool.h presence... yes
checking for linux/ethtool.h... yes
checking pkginfo.h usability... no
checking pkginfo.h presence... no
checking for pkginfo.h... no
checking pkg.h usability... no
checking pkg.h presence... no
checking for pkg.h... no
checking pkg.h usability... no
checking pkg.h presence... no
checking for pkg.h... no
checking for windows.h... no
checking for iphlpapi.h... no
checking for lm.h... no
checking sensors/sensors.h usability... no
checking sensors/sensors.h presence... no
checking for sensors/sensors.h... no
checking picl.h usability... no
checking picl.h presence... no
checking for picl.h... no
checking for struct rtentry.rt_dst... yes
checking for struct rtentry.rt_hash... no
checking for struct rtentry.rt_next... no
checking for struct rtentry.rt_refcnt... no
checking for struct rtentry.rt_unit... no
checking for struct rtentry.rt_use... no
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking size of intmax_t... 8
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for intmax_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uintmax_t... yes
checking for intptr_t... yes
checking for uintptr_t... yes
checking for off64_t... yes
checking for nfds_t... yes
checking for Counter64... no
checking for mib2_ipIfStatsEntry_t... no
checking for struct in_ifaddr.ia_subnetmask... no
checking for platform-specific source...   

checking for and configuring transport modules to use...Callback Unix Alias TCP UDP IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase IPBase.
checking for security modules to use...usm
checking rpm/rpmlib.h usability... no
checking rpm/rpmlib.h presence... no
checking for rpm/rpmlib.h... no
checking rpm/header.h usability... no
checking rpm/header.h presence... no
checking for rpm/header.h... no
checking for rpm/rpmlib.h... (cached) no
checking for rpm/header.h... (cached) no
checking for library containing getfsstat... no
checking for getfsstat... no
checking for getvfsstat... no
checking for library containing getmntent... none required
checking for library containing kinfo_get_cpus... no
checking for kinfo_get_cpus... no
checking for library containing exp... -lm
checking for library containing kvm_read... no
checking for library containing kvm_openfiles... no
checking for library containing kvm_getprocs... no
checking for library containing kvm_getproc2... no
checking for library containing kvm_getfiles... no
checking for library containing kvm_getfile2... no
checking for library containing kvm_getswapinfo... no
checking for kvm_openfiles... no
checking for kvm_getprocs... no
checking for kvm_getproc2... no
checking for kvm_getswapinfo... no
checking for kvm_getfiles... no
checking for kvm_getfile2... no
checking for library containing dlopen... -ldl
checking for dlopen... yes
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking for library containing pcre_exec... no
checking for and configuring mib modules to use... default_modules infomation.
default_modules infomation snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars mibII/vacm_conf snmpv3/snmpEngine snmpv3/snmpMPDStats snmpv3/usmStats snmpv3/usmConf snmpv3/usmUser mibII/updates util_funcs util_funcs/header_generic mibII/vacm_context util_funcs/header_**_table
.
checking if directories need to be created... .
checking default mib files to read... :SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:SNMP-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:SNMP-FRAMEWORK-MIB:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB
checking whether we have to build PIC code... no
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for gethostbyname... yes
checking for library containing gethostbyaddr... none required
checking for gethostbyaddr... yes
checking for MIB_IF_TABLE2... no
checking for kstat_lookup in -lkstat... no
checking for in6addr_any in -lsocket... no
checking for library containing clock_gettime... -lrt
checking for library containing pci_lookup_name... no
checking for arm-linux-pkg-config... no
checking for pkg-config... /usr/local/arm/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for library containing nl_connect... no
checking for library containing nl_connect... (cached) no
checking for -leay32... no
checking for EVP_md5 in -lcrypto... no
checking for TLS_method... no
checking for TLSv1_method... no
checking for DTLS_method... no
checking for DTLSv1_method... no
checking for SSL_library_init... no
checking for SSL_load_error_strings... no
checking for ERR_get_error_all... no
   usm
checking for pcap_create in -lpcap... no
checking for nlist... no
checking for nlist64... no
checking for knlist... no
checking for library containing endwin... no
checking for library containing ceil... -lm
checking for potential embedded Perl support... disabled
checking if we can install the Perl modules... no
checking if we should install the python bindings... no
checking for authentication support... Internal Crypto Support
checking for off_t... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for socklen_t... yes
checking for in_addr_t... yes
checking for ssize_t... yes
checking for the type of the fifth argument of select()... struct timeval
checking for the type of the third argument of ioctlsocket()... unsigned int
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether arm-arago-linux-gnueabi-gcc needs -traditional... no
checking return type of signal handlers... void
checking for rand... yes
checking for random... yes
checking for srand... yes
checking for srandom... yes
checking for lrand48... yes
checking for srand48... yes
checking for asprintf... yes
checking for closedir... yes
checking for fgetc_unlocked... yes
checking for flockfile... yes
checking for funlockfile... yes
checking for getipnodebyname... no
checking for gettimeofday... yes
checking for getlogin... yes
checking for if_nametoindex... yes
checking for mkstemp... yes
checking for opendir... yes
checking for readdir... yes
checking for regcomp... yes
checking for setenv... yes
checking for setitimer... yes
checking for setlocale... yes
checking for setsid... yes
checking for snprintf... yes
checking for strcasestr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for sysconf... yes
checking for times... yes
checking for vsnprintf... yes
checking for _NSGetArgv()... no
checking for _NSGetExecutablePath()... no
checking for execv... yes
checking for fork... yes
checking for signal... yes
checking for sigset... yes
checking for uname... yes
checking for posix_spawn... yes
checking for waitpid... yes
checking for closesocket... no
checking for gai_strerror... yes
checking for getaddrinfo... yes
checking for gethostbyname... (cached) yes
checking for gethostbyname2... yes
checking for gethostname... yes
checking for gethostbyaddr... (cached) yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for _beginthreadex()... no
checking for _cputs()... no
checking for _get_osfhandle()... no
checking for _getch()... no
checking for _open_osfhandle()... no
checking for getopt... yes
checking for strlcat... no
checking for strlcpy... no
checking for strtok_r... yes
checking for strtol... yes
checking for strtoul... yes
checking for strtoull... yes
checking for cgetnext... no
checking for chown... yes
checking for endfsent... yes
checking for forkall... no
checking for fsync... yes
checking for gai_strerror... (cached) yes
checking for getfsent... yes
checking for getgrnam... yes
checking for gethostname... (cached) yes
checking for getloadavg... yes
checking for getmntent... (cached) yes
checking for getmntinfo... no
checking for getpid... yes
checking for getpwnam... yes
checking for hasmntopt... yes
checking for initgroups... yes
checking for if_nameindex... yes
checking for if_indextoname... yes
checking for if_nametoindex... (cached) yes
checking for localtime_r... yes
checking for mkstemp... (cached) yes
checking for mktime... yes
checking for poll... yes
checking for regcomp... (cached) yes
checking for setfsent... yes
checking for setgid... yes
checking for setgroups... yes
checking for setmntent... yes
checking for setuid... yes
checking for sigaction... yes
checking for sigblock... yes
checking for sigprocmask... yes
checking for statfs... yes
checking for statvfs... yes
checking for stime... yes
checking for strncasecmp... (cached) yes
checking for system... yes
checking for usleep... yes
checking for vm_region... no
checking for vm_region_64... no
checking for getdtablesize... yes
checking for getgrnam... (cached) yes
checking for getpid... (cached) yes
checking for getpwnam... (cached) yes
checking for setgid... (cached) yes
checking for setgroups... (cached) yes
checking for setuid... (cached) yes
checking for tcgetattr... yes
checking for if_freenameindex... yes
checking for getpagesize... yes
checking for lseek64... yes
checking for pread64... yes
checking for select... yes
checking for sigalrm... no
checking for socket... yes
checking for two-argument statfs with struct fs_data (Ultrix)... no
checking how to get the name of the current function... __func__
checking whether static inline functions are broken (Unixware)... no
checking for SIOCGIFADDR in sys/ioctl.h... yes
checking for struct arphd.at_next... no
checking for struct dirent.d_type... yes
checking for struct ethtool_cmd.speed_hi... yes
checking for struct ipstat.ips_cantfrag... no
checking for struct ipstat.ips_delivered... no
checking for struct ipstat.ips_fragdropped... no
checking for struct ipstat.ips_fragmented... no
checking for struct ipstat.ips_localout... no
checking for struct ipstat.ips_noproto... no
checking for struct ipstat.ips_noroute... no
checking for struct ipstat.ips_odropped... no
checking for struct ipstat.ips_ofragments... no
checking for struct ipstat.ips_reassembled... no
checking for struct ip6stat.ip6s_exthdrtoolong ... no
checking for struct ipstat.ips_cantforward... no
checking for struct ipstat.ips_fragtimeout... no
checking for struct mbstat.m_clusters... no
checking for struct mbstat.m_clfree... no
checking for struct mbstat.m_mbufs... no
checking for struct uvmexp.pgswapin... no
checking for struct nlist.n_value... no
checking for struct nlist64.n_value... no
checking for struct sigaction.sa_sigaction... no
checking for struct sockaddr.sa_len... no
checking for struct sockaddr.sa_union.sa_generic.sa_family2... no
checking for struct sockaddr_storage.ss_family... yes
checking for struct sockaddr_storage.__ss_family... no
checking for struct sockaddr_in6.sin6_scope_id... yes
checking size of sockaddr_un.sun_path... 108
checking for struct statfs.f_favail... no
checking for struct statfs.f_ffree... yes
checking for struct statfs.f_files... yes
checking for struct statfs.f_flags... no
checking for struct statfs.f_frsize... yes
checking for struct statvfs.f_files... yes
checking for struct statvfs.f_frsize... yes
checking for struct statvfs.mnt_dir... no
checking for struct swdevt.sw_nblksenabled... no
checking for struct tcpstat.tcp_rcvmemdrop... no
checking for struct tm.tm_gmtoff... yes
checking for struct tm.tm_isdst... yes
checking whether daylight is declared... yes
checking whether timezone is declared... yes
checking whether timezone is a scalar... yes
checking for struct timezone.tz_dsttime... yes
checking for struct udpstat.udps_discard... no
checking for struct udpstat.udps_fullsock... no
checking for struct udpstat.udps_noport... no
checking for struct udpstat.udps_noportbcast... no
checking for struct udpstat.udps_ipackets... no
checking for struct udpstat.udps_opackets... no
checking if _KERNEL needs to be defined for if_mtu... unknown
checking if _KERNEL_STRUCTURES needs to be defined for if_mtu... unknown
checking for struct ifaddr.ifa_next... yes
checking for struct ifnet.if_addrlist... no
checking for struct ifnet.if_addrhead.tqh_first... no
checking for struct ifnet.if_baudrate... no
checking for struct ifnet.if_baudrate.ifs_value... no
checking for struct ifnet.if_ibytes... yes
checking for struct ifnet.if_imcasts... no
checking for struct ifnet.if_iqdrops... yes
checking for struct ifnet.if_lastchange.tv_sec... no
checking for struct ifnet.if_lastchange.tv_nsec... no
checking for struct ifnet.if_mtu... yes
checking for struct ifnet.if_noproto... no
checking for struct ifnet.if_obytes... yes
checking for struct ifnet.if_omcasts... no
checking for struct ifnet.if_speed... yes
checking for struct ifnet.if_type... yes
checking for struct ifnet.if_xname... no
checking type of rtentry structure... unknown
checking for struct rtentry... rtentry
checking syslog prioritynames... yes
checking for location of system kernel... unknown
checking for location of swap device... none
checking for mount table location... /etc/mtab
checking for lpstat... /usr/bin/lpstat
checking for correct flags to ps... -e
checking for SIGHUP... yes
configure: WARNING: Can't check sysctl, manually define NETSNMP_CAN_USE_SYSCTL if platform support available
checking whether TCP timers depend on 'hz'... no
checking for SO_BINDTODEVICE... yes
checking for struct in_pktinfo.ipi_spec_dst... yes
checking for IP_PKTINFO ... yes
checking for IP_RECVDSTADDR ... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating snmplib/Makefile
config.status: creating apps/Makefile
config.status: creating apps/snmpnetstat/Makefile
config.status: creating agent/Makefile
config.status: creating agent/helpers/Makefile
config.status: creating agent/mibgroup/Makefile
config.status: creating local/Makefile
config.status: creating testing/Makefile
config.status: creating man/Makefile
config.status: creating mibs/Makefile
config.status: creating net-snmp-config
config.status: creating net-snmp-create-v3-user
config.status: creating netsnmp.pc
config.status: creating netsnmp-agent.pc
config.status: creating dist/generation-scripts/gen-variables
config.status: creating local/snmpconf
config.status: creating include/net-snmp/net-snmp-config.h
config.status: executing libtool commands
config.status: executing default commands


---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------


SNMP Versions Supported:    1 2c 3
Building for:               linux
Net-SNMP Version:         5.9.1
Network transport support:Callback Unix Alias TCP UDP IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase IPBase
SNMPv3 Security Modules:   usm
Agent MIB code:            default_modules infomation =>snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars mibII/vacm_conf
MYSQL Trap Logging:         unavailable
Embedded Perl support:      disabled
SNMP Perl modules:          disabled
SNMP Python modules:      disabled
Crypto support from:      internal
Authentication support:   MD5 SHA1
Encryption support:         DES AES AES128
Local DNSSEC validation:    disabled


---------------------------------------------------------


gcc -E -Iinclude -I./include -I./agent/mibgroup -I. -I. -DDONT_INC_STRUCTS -DBINDIR=/opt/net-snmp/bin./sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript
chmod a+x net-snmp-config
gcc: warning: ./sedscript.in: linker input file unused because linking not done
touch net-snmp-config-x
echo 's/VERSIONINFO/5.9.1/g' >> sedscript
echo 's#DATADIR#/opt/net-snmp/share#g' >> sedscript
echo 's#LIBDIR#/opt/net-snmp/lib#g' >> sedscript
echo 's#BINDIR#/opt/net-snmp/bin#g' >> sedscript
echo 's#PERSISTENT_DIRECTORY#/var/net-snmp#g' >> sedscript
echo 's#SYSCONFDIR#/opt/net-snmp/etc#g' >> sedscript
/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
** all in /usr/local/snmp/net-snmp-5.9.1/snmplib
make: Entering directory '/usr/local/snmp/net-snmp-5.9.1/snmplib'
/bin/bash ../libtool--mode=compile arm-arago-linux-gnueabi-gcc -I../include -I.         -I../snmplib-g -O2 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Ulinux -Dlinux=linux-c -o snmp_client.lo snmp_client.c
/bin/bash ../libtool--mode=compile arm-arago-linux-gnueabi-gcc -I../include -I.         -I../snmplib-g -O2 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Ulinux -Dlinux=linux-c -o mib.lo mib.c
/bin/bash ../libtool--mode=compile arm-arago-linux-gnueabi-gcc -I../include -I.         -I../snmplib-g -O2 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Ulinux -Dlinux=linux-c -o parse.lo parse.c
/bin/bash ../libtool--mode=compile arm-arago-linux-gnueabi-gcc -I../include -I.         -I../snmplib-g -O2 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Ulinux -Dlinux=linux-c -o snmp_api.lo snmp_api.c
libtool: compile:arm-arago-linux-gnueabi-gcc -I../include -I. -I../snmplib -g -O2 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Ulinux -Dlinux=linux -c snmp_api.c -o snmp_api.o
snmp_api.c:48:19: fatal error: stdio.h: No such file or directory
compilation terminated.
Makefile:100: recipe for target 'snmp_api.lo' failed
make: *** Error 1
make: *** Waiting for unfinished jobs....
libtool: compile:arm-arago-linux-gnueabi-gcc -I../include -I. -I../snmplib -g -O2 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Ulinux -Dlinux=linux -c parse.c -o parse.o
libtool: compile:arm-arago-linux-gnueabi-gcc -I../include -I. -I../snmplib -g -O2 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Ulinux -Dlinux=linux -c snmp_client.c -o snmp_client.o
libtool: compile:arm-arago-linux-gnueabi-gcc -I../include -I. -I../snmplib -g -O2 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Ulinux -Dlinux=linux -c mib.c -o mib.o
snmp_client.c:50:19: fatal error: stdio.h: No such file or directory
parse.c:41:20: fatal error: limits.h: No such file or directory
compilation terminated.
compilation terminated.
Makefile:100: recipe for target 'parse.lo' failed
make: *** Error 1
Makefile:100: recipe for target 'snmp_client.lo' failed
make: *** Error 1
mib.c:48:19: fatal error: stdio.h: No such file or directory
compilation terminated.
Makefile:100: recipe for target 'mib.lo' failed
make: *** Error 1
make: Leaving directory '/usr/local/snmp/net-snmp-5.9.1/snmplib'
Makefile:674: recipe for target 'subdirs' failed
make: *** Error 1
cp: cannot stat './agent/snmpd': No such file or directory


ljb2019001 发表于 2022-10-8 18:11:39

我看报错是没有找到头文件,但是我看交叉编译器头文件都有,这种情况一般就是源码和开发环境的编译环境不兼容导致的,您试试用我们的编译环境编译试试,我们的交叉编译器是32位的,我们环境移植了32位的库,如果在64位环境上编译就会报这样的错
页: [1]
查看完整版本: FET335交叉编译snmp