C compiler cannot create executables
venkat easwar <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, Sorry, If I am posting a problem which got solved already; but my google searches did not help me to get the issue solved :( I am trying to compile net-snmp-5.4.3 in recent version of cygwin. I got gcc version of 4.5.0. I am getting the following error when I am trying to configure through "./configure --with-mib-modules="host agentx disman/event-mib examples/example" --with-ou t-mib-modules=snmpv3mib,mibII/vacm --with-out-mib-modules=host/hr_network --with-libs="-lw s2_32 -lssl" --disable-embedded-perl --without-perl-modules --disable-privacy --disa ble-md5 --without-openssl" checking for C compiler default output file name... configure: error: C compiler cannot create executables Attaching the config log. I previously got the configuration working on a machine installed with gcc 4.5.2. But I am not sure whether it is a gcc problem or not. GCC 4.5.0 is suppose to be a stable version, and all these things should not happen. A simple hello world program is getting compiled and giving expected output in my cygwin machine. Thanks for helping, VENKAT ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
config.log
(application/octet-stream, 10.4 KB)
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.3, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure --with-mib-modules=host agentx disman/event-mib examples/example --with-out-mib-modules=snmpv3mib,mibII/vacm --with-out-mib-modules=host/hr_network --with-libs=-lws2_32 -lssl --disable-embedded-perl --without-perl-modules --disable-privacy --disable-md5 --without-openssl ## --------- ## ## Platform. ## ## --------- ## hostname = dp0101 uname -m = i686 uname -r = 1.7.8(0.236/5/3) uname -s = CYGWIN_NT-5.1 uname -v = 2011-03-01 09:36 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /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/bin PATH: /cygdrive/c/WINDOWS/system32 PATH: /cygdrive/c/WINDOWS PATH: /cygdrive/c/WINDOWS/System32/Wbem PATH: /cygdrive/c/Program Files/Intel/DMIX ## ----------- ## ## Core tests. ## ## ----------- ## configure:2041: checking what to build and install configure:2043: result: agent apps man local mibs configure:2783: result: using default persistent mask 077 configure:2834: result: using default temporary file pattern /tmp/snmpdXXXXXX configure:2872: result: using default AgentX socket /var/agentx/master configure:3075: result: using default "enterprise.net-snmp" configure:3117: result: using default enterprise sysOID "NET-SNMP-MIB::netSnmpAgentOIDs..." configure:3159: result: using default notifications "NET-SNMP-MIB::netSnmpNotifications" configure:3323: result: using OS default send buffer size for server sockets configure:3349: result: using OS default recv buffer size for server sockets configure:3375: result: using OS default send buffer size for client sockets configure:3401: result: using OS default recv buffer size for client sockets configure:3496: checking if I need to feed myself to ksh configure:3512: result: no configure:3573: checking for gcc configure:3589: found /usr/bin/gcc configure:3599: result: gcc configure:3843: checking for C compiler version configure:3846: gcc --version </dev/null >&5 gcc (GCC) 4.5.0 Copyright (C) 2010 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:3849: $? = 0 configure:3851: gcc -v </dev/null >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.0/lto-wrapper.exe Target: i686-pc-cygwin Configured with: /gnu/gcc/releases/respins/4.5.0-1/gcc4-4.5.0-1/src/gcc-4.5.0/configure --srcdir=/gnu/gcc/releases/respins/4.5.0-1/gcc4-4.5.0-1/src/gcc-4.5.0 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc4 --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs --libexecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-lto --enable-java-awt=gtk --disable-symvers --enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads=posix --with-arch=i686 --with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind --with-ecj-jar=/usr/share/java/ecj.jar Thread model: posix gcc version 4.5.0 (GCC) configure:3854: $? = 0 configure:3856: gcc -V </dev/null >&5 gcc: '-V' option must have argument configure:3859: $? = 1 configure:3882: checking for C compiler default output file name configure:3885: gcc conftest.c -lws2_32 -lssl >&5 /usr/lib/gcc/i686-pc-cygwin/4.5.0/../../../../i686-pc-cygwin/bin/ld: cannot find -lssl collect2: ld returned 1 exit status configure:3888: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "Net-SNMP" | #define PACKAGE_TARNAME "net-snmp" | #define PACKAGE_VERSION "5.4.3" | #define PACKAGE_STRING "Net-SNMP 5.4.3" | #define PACKAGE_BUGREPORT "[email protected]" | #define NETSNMP_CONFIGURE_OPTIONS "'--with-mib-modules=host agentx disman/event-mib examples/example' '--with-out-mib-modules=snmpv3mib,mibII/vacm' '--with-out-mib-modules=host/hr_network' '--with-libs=-lws2_32 -lssl' '--disable-embedded-perl' '--without-perl-modules' '--disable-privacy' '--disable-md5' '--without-openssl'" | #define NETSNMP_DISABLE_MD5 1 | #define NETSNMP_PERSISTENT_MASK 077 | #define NETSNMP_TEMP_FILE_PATTERN "/tmp/snmpdXXXXXX" | #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:3927: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CC_set= ac_cv_env_CC_value= 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=host agentx disman/event-mib examples/example' '--with-out-mib-modules=snmpv3mib,mibII/vacm' '--with-out-mib-modules=host/hr_network' '--with-libs=-lws2_32 -lssl' '--disable-embedded-perl' '--without-perl-modules' '--disable-privacy' '--disable-md5' '--without-openssl'"' COPY_PERSISTENT_FILES='' CPP='' CPPFLAGS='' CXX='' CXXCPP='' CXXFLAGS='' DEFS='' DEVFLAGS='' DLLIBS='' DLLTOOL='' DSYMUTIL='' 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='' LAGENTLIBS='' LDFLAGS='' LIBOBJS='' LIBS='-lws2_32 -lssl' LIBTOOL='' LIBTOOLFLAGS='' LIBTOOL_DEPS='' LINKCC='' LMIBLIBS='' LNETSNMPLIBS='' LN_S='' LPSTAT_PATH='' LTLIBOBJS='' MAINSUBS=' agent apps man local mibs' MIBGROUP_INCLUDES='' NETSNMP_DEFAULT_MIBDIRS='' NETSNMP_DEFAULT_MIBS='' NMEDIT='' NON_GNU_VPATH='' OBJDUMP='' OBJEXT='' OTHERAGENTLIBLOBJS='' OTHERAGENTLIBOBJS='' PACKAGE_BUGREPORT='[email protected]' PACKAGE_NAME='Net-SNMP' PACKAGE_STRING='Net-SNMP 5.4.3' PACKAGE_TARNAME='net-snmp' PACKAGE_VERSION='5.4.3' PATH_SEPARATOR=':' PERLARGS='' PERLINSTALLTARGS='' PERLLDOPTS_FOR_APPS='' PERLLDOPTS_FOR_LIBS='' PERLPROG='' PERLTARGS='' PERLUNINSTALLTARGS='' PERSISTENT_DIRECTORY='' PSCMD='' PSPROG='' PYTHONARGS='' PYTHONCLEANTARGS='' PYTHONINSTALLTARGS='' PYTHONPROG='' PYTHONTARGS='' PYTHONUNINSTALLTARGS='' RANLIB='' RELEASEVERSION='' SED='' 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='' ac_ct_AR='' ac_ct_AS='' ac_ct_CC='gcc' ac_ct_CXX='' ac_ct_DLLTOOL='' ac_ct_DSYMUTIL='' ac_ct_F77='' ac_ct_NMEDIT='' 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=host agentx disman/event-mib examples/example' '--with-out-mib-modules=snmpv3mib,mibII/vacm' '--with-out-mib-modules=host/hr_network' '--with-libs=-lws2_32 -lssl' '--disable-embedded-perl' '--without-perl-modules' '--disable-privacy' '--disable-md5' '--without-openssl'" #define NETSNMP_DISABLE_MD5 1 #define NETSNMP_NO_DUMMY_VALUES 1 #define NETSNMP_PERSISTENT_MASK 077 #define NETSNMP_TEMP_FILE_PATTERN "/tmp/snmpdXXXXXX" #define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1 #define PACKAGE_BUGREPORT "[email protected]" #define PACKAGE_NAME "Net-SNMP" #define PACKAGE_STRING "Net-SNMP 5.4.3" #define PACKAGE_TARNAME "net-snmp" #define PACKAGE_VERSION "5.4.3" configure: exit 77