Results 1 to 3 of 3

Thread: GCC error

  1. #1
    Join Date
    Oct 2011
    Beans
    18

    GCC error

    Having some difficulty installing Dionaea (honeypot) on an Ubuntu 12.04 (Precise) machine. The error that I am getting is a configure: error:. To be specific, the error states that C compiler cannot create executables.

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

    It was created by python configure 3.2, which was
    generated by GNU Autoconf 2.68. Invocation command line was


    Code:
    $ ./configure --enable-shared --prefix=/opt/dionaea --with-computed-gotos --enable-ipv6 LDFLAGS=Wl,-rpath=/opt/dionaea/lib/ -L/usr/l
    ib/x86_64-linux-gnu/
    
    ## --------- ##
    ## Platform. ##
    ## --------- ##
    
    hostname = jeremy-testlab
    uname -m = i686
    uname -r = 3.8.0-35-generic
    uname -s = Linux
    uname -v = #50~precise1-Ubuntu SMP Wed Dec 4 17:28:45 UTC 2013
    
    /usr/bin/uname -p = unknown
    /bin/uname -X     = unknown
    /bin/arch              = unknown
    /usr/bin/arch -k       = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo      = unknown
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown
    
    
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    
    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##
    
    configure:2770: checking for --enable-universalsdk
    configure:2811: result: no
    configure:2820: checking for --with-universal-archs
    configure:2832: result: 32-bit
    configure:2982: checking MACHDEP
    configure:3130: result: linux2
    configure:3141: checking machine type as reported by uname -m
    configure:3144: result: i686
    configure:3157: checking for --without-gcc
    configure:3180: result: no
    configure:3244: checking for gcc
    configure:3260: found /usr/bin/gcc
    configure:3271: result: gcc
    configure:3500: checking for C compiler version
    configure:3509: gcc --version >&5
    gcc (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1
    Copyright (C) 2013 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:3520: $? = 0
    configure:3509: gcc -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.8/lto-wrapper
    Target: i686-linux-gnu
    
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.1-2ubuntu1~12.04' --with-bugurl=file:///usr/share/doc/gcc-4.8/READM
    E.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-bui
    ld-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/us
    r/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-obje
    ct --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/
    java-1.5.0-gcj-4.8-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386 --with-jvm-jar-dir=/usr/lib/jv
    m-exports/java-1.5.0-gcj-4.8-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-
    targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64 --with-tune=generic --enable-checking
    =release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
    
    Thread model: posix
    gcc version 4.8.1 (Ubuntu 4.8.1-2ubuntu1~12.04) 
    configure:3520: $? = 0
    configure:3509: gcc -V >&5
    gcc: error: unrecognized command line option '-V'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3520: $? = 4
    configure:3509: gcc -qversion >&5
    gcc: error: unrecognized command line option '-qversion'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3520: $? = 4
    configure:3540: checking whether the C compiler works
    configure:3562: gcc   Wl,-rpath=/opt/dionaea/lib/ -L/usr/lib/x86_64-linux-gnu/ conftest.c  >&5
    gcc: error: Wl,-rpath=/opt/dionaea/lib/: No such file or directory
    configure:3566: $? = 1
    configure:3604: result: no
    configure: failed program was:
    
    | /* confdefs.h */
    | #define _GNU_SOURCE 1
    | #define _NETBSD_SOURCE 1
    | #define __BSD_VISIBLE 1
    | #define _BSD_TYPES 1
    | #define _DARWIN_C_SOURCE 1
    | #define _XOPEN_SOURCE 600
    | #define _XOPEN_SOURCE_EXTENDED 1
    | #define _POSIX_C_SOURCE 200112L
    | /* end confdefs.h.  */
    | 
    | int
    | main ()
    | {
    | 
    |   ;
    |   return 0;
    | }
    
    configure:3609: error: in `/opt/dionaea/Python-3.2.2':
    configure:3611: 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_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value='Wl,-rpath=/opt/dionaea/lib/ -L/usr/lib/x86_64-linux-gnu/'
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_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. ##
    ## ----------------- ##
    
    ABIFLAGS=''
    AR=''
    ARCH_RUN_32BIT=''
    ARFLAGS=''
    BASECFLAGS=''
    BLDLIBRARY=''
    BLDSHARED=''
    BUILDEXEEXT=''
    CC='gcc'
    CCSHARED=''
    CFLAGS=''
    CFLAGSFORSHARED=''
    CONFIGURE_MACOSX_DEPLOYMENT_TARGET=''
    CONFIG_ARGS=' '\''--enable-shared'\'' '\''--prefix=/opt/dionaea'\'' '\''--with-computed-gotos'\'' '\''--enable-ipv6'\'' '\''LDFLAGS=Wl
    ,-rpath=/opt/dionaea/lib/ -L/usr/lib/x86_64-linux-gnu/'\'''
    CPP=''
    CPPFLAGS=''
    CXX=''
    DEFS=''
    DISABLE_ASDLGEN=''
    DLINCLDIR=''
    DLLLIBRARY=''
    DYNLOADFILE=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    EXEEXT=''
    EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
    FRAMEWORKALTINSTALLFIRST=''
    FRAMEWORKALTINSTALLLAST=''
    FRAMEWORKINSTALLAPPSPREFIX=''
    FRAMEWORKINSTALLFIRST=''
    FRAMEWORKINSTALLLAST=''
    FRAMEWORKUNIXTOOLSPREFIX='/opt/dionaea'
    GNULD=''
    GREP=''
    HAS_HG=''
    HAS_PYTHON=''
    HAVE_GETHOSTBYNAME=''
    HAVE_GETHOSTBYNAME_R=''
    HAVE_GETHOSTBYNAME_R_3_ARG=''
    HAVE_GETHOSTBYNAME_R_5_ARG=''
    HAVE_GETHOSTBYNAME_R_6_ARG=''
    HGBRANCH=''
    HGTAG=''
    HGVERSION=''
    INSTALL_DATA=''
    INSTALL_PROGRAM=''
    INSTALL_SCRIPT=''
    INSTSONAME=''
    LDCXXSHARED=''
    LDFLAGS='Wl,-rpath=/opt/dionaea/lib/ -L/usr/lib/x86_64-linux-gnu/'
    LDLAST=''
    LDLIBRARY=''
    LDLIBRARYDIR=''
    LDSHARED=''
    LDVERSION=''
    LIBC=''
    LIBFFI_INCLUDEDIR=''
    LIBM=''
    LIBOBJS=''
    LIBRARY=''
    LIBS=''
    LIBTOOL_CRUFT=''
    LINKCC=''
    LINKFORSHARED=''
    LIPO_32BIT_FLAGS=''
    LN=''
    LTLIBOBJS=''
    MACHDEP='linux2'
    MACHDEP_OBJS=''
    MAINCC=''
    NO_AS_NEEDED=''
    OBJEXT=''
    OPT=''
    OTHER_LIBTOOL_OPT=''
    PACKAGE_BUGREPORT='http://bugs.python.org/'
    PACKAGE_NAME='python'
    PACKAGE_STRING='python 3.2'
    PACKAGE_TARNAME='python'
    PACKAGE_URL=''
    PACKAGE_VERSION='3.2'
    PATH_SEPARATOR=':'
    PKG_CONFIG=''
    PY3LIBRARY=''
    PYTHONFRAMEWORK=''
    PYTHONFRAMEWORKDIR='no-framework'
    PYTHONFRAMEWORKIDENTIFIER='org.python.python'
    PYTHONFRAMEWORKINSTALLDIR=''
    PYTHONFRAMEWORKPREFIX=''
    RANLIB=''
    RUNSHARED=''
    SGI_ABI=''
    SHELL='/bin/bash'
    SHLIBS=''
    SIGNAL_OBJS=''
    SO=''
    SOABI=''
    SOVERSION='1.0'
    SRCDIRS=''
    SVNVERSION=''
    THREADHEADERS=''
    THREADOBJ=''
    TRUE=''
    UNIVERSALSDK=''
    UNIVERSAL_ARCH_FLAGS=''
    USE_INLINE=''
    USE_SIGNAL_MODULE=''
    USE_THREAD_MODULE=''
    VERSION='3.2'
    ac_ct_CC='gcc'
    bindir='${exec_prefix}/bin'
    build_alias=''
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host_alias=''
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/opt/dionaea'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''
    
    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##
    
    /* confdefs.h */
    #define _GNU_SOURCE 1
    #define _NETBSD_SOURCE 1
    #define __BSD_VISIBLE 1
    #define _BSD_TYPES 1
    #define _DARWIN_C_SOURCE 1
    #define _XOPEN_SOURCE 600
    #define _XOPEN_SOURCE_EXTENDED 1
    #define _POSIX_C_SOURCE 200112L
    
    configure: exit 77
    Tried reinstalling gcc and that did not solve the issue.

    Thank you for the help in advance.
    Last edited by oldos2er; January 31st, 2014 at 12:52 AM. Reason: Added code tags.

  2. #2
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 15.04 Vivid Vervet

  3. #3
    Join Date
    Apr 2012
    Beans
    5,971

    Re: GCC error

    I may be missing something here - but why are you configuring with -L/usr/lib/x86_64-linux-gnu/ when you appear to be building on a 32-bit platform? is that intentional?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •