Hi,
I am using Net-Snmp 5.4 in Windows XP.

I am trying to compile the new mib using the sample mib file in the
following page i.e. NET-SNMP-TUTORIAL-MIB.

http://www.net-snmp.org/wiki/index.p...g_a_MIB_Module

I have copied NET-SNMP-TUTORIAL-MIB into net-snmp-5.4-src\mibs folder
nstAgentModuleObject.h and nstAgentModuleObject.c files into net-
snmp-5.4-src\agent\mibgroup folder.

I have installed MinGW - for compiling C files and Cygwin - for
running the shell scripts in the Windows environment.

When i run the following command, it gives the error.

../configure --with-mib-modules="nstAgentModuleObject"

config.log is shown below.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Net-SNMP configure 5.4, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure --with-mib-modules=nstAgentModuleObject

## --------- ##
## Platform. ##
## --------- ##

hostname = M2B-27-D-1260
uname -m = i686
uname -r = 1.5.24(0.156/4/2)
uname -s = CYGWIN_NT-5.1
uname -v = 2007-01-31 10:57

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /cygdrive/c/Perl/site/bin
PATH: /cygdrive/c/Perl/bin
PATH: /cygdrive/c/WINDOWS/system32
PATH: /cygdrive/c/WINDOWS
PATH: /cygdrive/c/WINDOWS/System32/Wbem
PATH: /cygdrive/c/Program Files/Support Tools/
PATH: /cygdrive/d/data/notes
PATH: /cygdrive/c/program files/notes
PATH: /cygdrive/d/Subversion/bin
PATH: /cygdrive/c/usr/bin
PATH: /cygdrive/d/Softwares/gcc-core-3.4.2/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2037: checking what to build and install
configure:2039: result: agent apps man local mibs
configure:2779: result: using default persistent mask 077
configure:2830: result: using default AgentX socket /var/agentx/master
configure:3031: result: using default "enterprise.net-snmp"
configure:3073: result: using default enterprise sysOID "NET-SNMP-
MIB::netSnmpAgentOIDs..."
configure:3115: result: using default notifications "NET-SNMP-
MIB::netSnmpNotifications"
configure:3279: result: using OS default send buffer size for server
sockets
configure:3305: result: using OS default recv buffer size for server
sockets
configure:3331: result: using OS default send buffer size for client
sockets
configure:3357: result: using OS default recv buffer size for client
sockets
configure:3452: checking if I need to feed myself to ksh
configure:3468: result: no
configure:3529: checking for gcc
configure:3555: result: gcc
configure:3799: checking for C compiler version
configure:3802: gcc --version &5
gcc.exe (GCC) 3.4.2 (mingw-special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There
is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

configure:3805: $? = 0
configure:3807: gcc -v &5
Reading specs from d:/Softwares/gcc-core-3.4.2/bin/../lib/gcc/
mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-
as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --
disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-
registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --
disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-
debug --enable-interpreter --enable-hash-synchronization --enable-
libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)
configure:3810: $? = 0
configure:3812: gcc -V &5
gcc.exe: `-V' option must have argument
configure:3815: $? = 1
configure:3838: checking for C compiler default output file name
configure:3841: gcc conftest.c >&5
gcc.exe: installation problem, cannot exec `as': No such file or
directory
configure:3844: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "Net-SNMP"
| #define PACKAGE_TARNAME "net-snmp"
| #define PACKAGE_VERSION "5.4"
| #define PACKAGE_STRING "Net-SNMP 5.4"
| #define PACKAGE_BUGREPORT "net-snmp-coders@lists.sourceforge.net"
| #define NETSNMP_CONFIGURE_OPTIONS "'--with-mib-
modules=nstAgentModuleObject' 'CC=gcc'"
| #define NETSNMP_ENABLE_SCAPI_AUTHPRIV 1
| #define NETSNMP_PERSISTENT_MASK 077
| #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
| #define NETSNMP_NO_DUMMY_VALUES 1
| #define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3883: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

AGENTLIBS=''
AGENT_INCLUDES=''
ALLOCA=''
AR=''
AS=''
AUTOCONF=''
AUTOHEADER=''
CC='gcc'
CCPATH=''
CFLAGS=''
CONFIGURE_OPTIONS='"'--with-mib-modules=nstAgentModuleObject'
'CC=gcc'"'
COPY_PERSISTENT_FILES=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXFLAGS=''
DEFS=''
DEVFLAGS=''
DLLIBS=''
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EMBEDPERLINSTALL=''
EMBEDPERLUNINSTALL=''
ENV_SEPARATOR=''
EXEEXT=''
EXTRACPPFLAGS=''
F77=''
FFLAGS=''
FIND=''
GNU_vpath=''
HAVE_DMALLOC_H=''
HELPER_INCLUDES=''
INSTALL_DATA=''
INSTALL_PREFIX=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBCRYPTO=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBTOOLFLAGS=''
LIBTOOL_DEPS=''
LINKCC=''
LN_S=''
LPSTAT_PATH=''
LTLIBOBJS=''
MAINSUBS=' agent apps man local mibs'
MIBGROUP_INCLUDES=''
NETSNMP_DEFAULT_MIBDIRS=''
NETSNMP_DEFAULT_MIBS=''
NON_GNU_VPATH=''
OBJDUMP=''
OBJEXT=''
OTHERAGENTLIBLOBJS=''
OTHERAGENTLIBOBJS=''
PACKAGE_BUGREPORT='net-snmp-coders@lists.sourceforge.net'
PACKAGE_NAME='Net-SNMP'
PACKAGE_STRING='Net-SNMP 5.4'
PACKAGE_TARNAME='net-snmp'
PACKAGE_VERSION='5.4'
PATH_SEPARATOR=':'
PERLARGS=''
PERLINSTALLTARGS=''
PERLLDOPTS=''
PERLPROG=''
PERLTARGS=''
PERLUNINSTALLTARGS=''
PERSISTENT_DIRECTORY=''
PSCMD=''
PSPROG=''
PYTHONARGS=''
PYTHONCLEANTARGS=''
PYTHONINSTALLTARGS=''
PYTHONTARGS=''
PYTHONUNINSTALLTARGS=''
RANLIB=''
RELEASEVERSION=''
SED=''
SENSORLIBS=''
SET_MAKE=''
SHELL='/bin/sh'
SNMPCONFPATH=''
SNMPD='snmpd$(EXEEXT)'
SNMPLIBPATH=''
SNMPLIB_INCLUDES=''
SNMPSHAREPATH=''
STRIP=''
TOP_INCLUDES=''
TRAPLIBS='$(TRAPDWITHAGENT)'
UCDPERSISTENT_DIRECTORY=''
UNAMEPROG=''
USETRAPLIBS='$(USEAGENTLIBS)'
VERSION=''
WHOAMI=''
WRAPLIBS=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_F77=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
default_mibs_install=''
dllcleans=''
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
installucdheaders=''
installucdlibs=''
krb5_config=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
other_agentobjs=''
other_lagentobjs=''
other_lobjs_list=''
other_objs_list=''
other_src_list=''
other_trapd_objects=''
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
security_hdr_list=''
security_lobj_list=''
security_obj_list=''
security_src_list=''
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target=''
target_alias=''
target_cpu=''
target_os=''
target_vendor=''
transport_hdr_list=''
transport_lobj_list=''
transport_obj_list=''
transport_src_list=''

## ------------- ##
## Output files. ##
## ------------- ##

MODULE_LIST=''
agent_module_list=''
agent_module_list_c=''
agent_module_list_deps=''
agent_module_list_lo=''
agent_module_list_o=''
agentgroup_list_lo=''
agentgroup_list_o=''
mib_module_list_c=''
mib_module_list_deps=''
mib_module_list_lo=''
mib_module_list_o=''
mibgroup_list_lo=''
mibgroup_list_o=''
module_list_c=''
module_list_deps=''
module_list_lo=''
module_list_o=''
module_rules=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
#define NETSNMP_CONFIGURE_OPTIONS "'--with-mib-
modules=nstAgentModuleObject' 'CC=gcc'"
#define NETSNMP_ENABLE_SCAPI_AUTHPRIV 1
#define NETSNMP_NO_DUMMY_VALUES 1
#define NETSNMP_PERSISTENT_MASK 077
#define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1
#define PACKAGE_BUGREPORT "net-snmp-coders@lists.sourceforge.net"
#define PACKAGE_NAME "Net-SNMP"
#define PACKAGE_STRING "Net-SNMP 5.4"
#define PACKAGE_TARNAME "net-snmp"
#define PACKAGE_VERSION "5.4"

configure: exit 77


Can somebody help me ?