Ad Widget

Collapse

C compiler cannot create executalbles

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rogue
    Junior Member
    • Apr 2006
    • 3

    #1

    C compiler cannot create executalbles

    I am having problems getting Zabbix 1.1 beta9 installed on Ubuntu 5.1. Running MySQL. I am completely new to the linux environment other than some Unix classes that I took several years ago. So this may be a no brainer for the pros out there....

    Any help would be greatly appreciated!!

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

    It was created by configure, which was
    generated by GNU Autoconf 2.59. Invocation command line was

    $ ./configure --enable-server --with-mysql --with-net-snmp

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

    hostname = RESNETMON
    uname -m = i686
    uname -r = 2.6.12-10-386
    uname -s = Linux
    uname -v = #1 Sat Mar 11 16:13:17 UTC 2006

    /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/local/sbin
    PATH: /sbin
    PATH: /usr/sbin
    PATH: /bin
    PATH: /usr/bin
    PATH: /usr/bin/X11
    PATH: /usr/games


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

    configure:1372: checking for a BSD-compatible install
    configure:1427: result: /usr/bin/install -c
    configure:1438: checking whether build environment is sane
    configure:1481: result: yes
    configure:1546: checking for gawk
    configure:1562: found /usr/bin/gawk
    configure:1572: result: gawk
    configure:1582: checking whether make sets $(MAKE)
    configure:1606: result: no
    configure:1771: Configuring
    configure:1774: checking whether make sets $(MAKE)
    configure:1798: result: no
    configure:1813: checking build system type
    configure:1831: result: i686-pc-linux-gnulibc1
    configure:1839: checking host system type
    configure:1853: result: i686-pc-linux-gnulibc1
    configure:1908: checking for gcc
    configure:1924: found /usr/bin/gcc
    configure:1934: result: gcc
    configure:2178: checking for C compiler version
    configure:2181: gcc --version </dev/null >&5
    gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
    Copyright (C) 2005 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:2184: $? = 0
    configure:2186: gcc -v </dev/null >&5
    Using built-in specs.
    Target: i486-linux-gnu
    Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
    Thread model: posix
    gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
    configure:2189: $? = 0
    configure:2191: gcc -V </dev/null >&5
    gcc: '-V' option must have argument
    configure:2194: $? = 1
    configure:2217: checking for C compiler default output file name
    configure:2220: gcc conftest.c >&5
    /usr/bin/ld: crt1.o: No such file: No such file or directory
    collect2: ld returned 1 exit status
    configure:2223: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    |
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | #define PACKAGE "zabbix"
    | #define VERSION "1.1beta8"
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:2262: error: C compiler cannot create executables
    See `config.log' for more details.

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

    ac_cv_build=i686-pc-linux-gnulibc1
    ac_cv_build_alias=i686-pc-linux-gnulibc1
    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=
    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_host=i686-pc-linux-gnulibc1
    ac_cv_host_alias=i686-pc-linux-gnulibc1
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_prog_AWK=gawk
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_make_make_set=no

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

    ACLOCAL='${SHELL} /home/phamman/zabbix-1.1beta9/missing --run aclocal-1.9'
    AGENT_FALSE=''
    AGENT_TRUE=''
    AMDEPBACKSLASH=''
    AMDEP_FALSE=''
    AMDEP_TRUE=''
    AMTAR='${SHELL} /home/phamman/zabbix-1.1beta9/missing --run tar'
    ARCH=''
    AUTOCONF='${SHELL} /home/phamman/zabbix-1.1beta9/missing --run autoconf'
    AUTOHEADER='${SHELL} /home/phamman/zabbix-1.1beta9/missing --run autoheader'
    AUTOMAKE='${SHELL} /home/phamman/zabbix-1.1beta9/missing --run automake-1.9'
    AWK='gawk'
    CC='gcc'
    CCDEPMODE=''
    CFLAGS=''
    CPP=''
    CPPFLAGS=''
    CYGPATH_W='echo'
    DEFS=''
    DEPDIR=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    EXEEXT=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
    LDAP_INCLUDE=''
    LDAP_LFLAGS=''
    LDAP_LIBS=''
    LDFLAGS=''
    LIBOBJS=''
    LIBS=''
    LTLIBOBJS=''
    MAKEINFO='${SHELL} /home/phamman/zabbix-1.1beta9/missing --run makeinfo'
    MYSQL_INCLUDE=''
    MYSQL_LFLAGS=''
    MYSQL_LIBS=''
    OBJEXT=''
    PACKAGE='zabbix'
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME=''
    PACKAGE_STRING=''
    PACKAGE_TARNAME=''
    PACKAGE_VERSION=''
    PATH_SEPARATOR=':'
    PGSQL_INCLUDE=''
    PGSQL_LFLAGS=''
    PGSQL_LIBS=''
    RANLIB=''
    SERVER_FALSE=''
    SERVER_TRUE=''
    SET_MAKE='MAKE=make'
    SHELL='/bin/sh'
    SNMP_INCLUDE=''
    SNMP_LFLAGS=''
    SNMP_LIBS=''
    STRIP=''
    VERSION='1.1beta8'
    ac_ct_CC='gcc'
    ac_ct_STRIP=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__include=''
    am__leading_dot='.'
    am__quote=''
    am__tar='${AMTAR} chof - "$$tardir"'
    am__untar='${AMTAR} xf -'
    bindir='${exec_prefix}/bin'
    build='i686-pc-linux-gnulibc1'
    build_alias=''
    build_cpu='i686'
    build_os='linux-gnulibc1'
    build_vendor='pc'
    datadir='${prefix}/share'
    exec_prefix='NONE'
    host='i686-pc-linux-gnulibc1'
    host_alias=''
    host_cpu='i686'
    host_os='linux-gnulibc1'
    host_vendor='pc'
    includedir='${prefix}/include'
    infodir='${prefix}/info'
    install_sh='/home/phamman/zabbix-1.1beta9/install-sh'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localstatedir='${prefix}/var'
    mandir='${prefix}/man'
    mkdir_p='mkdir -p --'
    oldincludedir='/usr/include'
    prefix='NONE'
    program_transform_name='s,x,x,'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''

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

    #define PACKAGE "zabbix"
    #define PACKAGE_BUGREPORT ""
    #define PACKAGE_NAME ""
    #define PACKAGE_STRING ""
    #define PACKAGE_TARNAME ""
    #define PACKAGE_VERSION ""
    #define VERSION "1.1beta8"

    configure: exit 77
  • jhiatt
    Junior Member
    • Apr 2006
    • 3

    #2
    How did you install gcc? It's not installed by default on ubuntu. If you do a 'sudo apt-get install build-essential' you should get everything you need though.

    Plus php5, php5-mysql, libsnmp5-dev, etc...


    Jason

    Comment

    • rogue
      Junior Member
      • Apr 2006
      • 3

      #3
      I added gcc with the synaptic package manager.

      When I run the command you gave me I get the following...

      phamman@RESNETMON:~$ sudo apt-get install build-essenstial
      Reading package lists... Done
      Building dependency tree... Done
      E: Couldn't find package build-essenstial

      I also used the package manager to install PHP and MySQL.....

      Comment

      • jhiatt
        Junior Member
        • Apr 2006
        • 3

        #4
        It looks like you have an extra s in essential.

        Comment

        • rogue
          Junior Member
          • Apr 2006
          • 3

          #5
          Sorry about that, worked fine after I removed the extra 's'.

          Then I ran the following and received the following error....

          Once again forgive my ignorance of the products still trying to catch on to them....

          phamman@RESNETMON:~/zabbix-1.1beta9$ ./configure --enable-server --with-mysql --with-net-snmp # for MySQL
          checking for a BSD-compatible install... /usr/bin/install -c
          checking whether build environment is sane... yes
          checking for gawk... gawk
          checking whether make sets $(MAKE)... yes
          configure: Configuring
          checking whether make sets $(MAKE)... (cached) yes
          checking build system type... i686-pc-linux-gnu
          checking host system type... i686-pc-linux-gnu
          checking for gcc... gcc
          checking for C compiler default output file name... a.out
          checking whether the C compiler works... yes
          checking whether we are cross compiling... no
          checking for suffix of executables...
          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 ANSI C... none needed
          checking for style of include used by make... GNU
          checking dependency style of gcc... gcc3
          checking how to run the C preprocessor... gcc -E
          checking for egrep... 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 stdio.h usability... yes
          checking stdio.h presence... yes
          checking for stdio.h... yes
          checking for stdlib.h... (cached) yes
          checking for string.h... (cached) yes
          checking for unistd.h... (cached) yes
          checking netdb.h usability... yes
          checking netdb.h presence... yes
          checking for netdb.h... yes
          checking signal.h usability... yes
          checking signal.h presence... yes
          checking for signal.h... yes
          checking syslog.h usability... yes
          checking syslog.h presence... yes
          checking for syslog.h... yes
          checking time.h usability... yes
          checking time.h presence... yes
          checking for time.h... yes
          checking errno.h usability... yes
          checking errno.h presence... yes
          checking for errno.h... yes
          checking for sys/types.h... (cached) yes
          checking for sys/stat.h... (cached) yes
          checking netinet/in.h usability... yes
          checking netinet/in.h presence... yes
          checking for netinet/in.h... yes
          checking sys/socket.h usability... yes
          checking sys/socket.h presence... yes
          checking for sys/socket.h... yes
          checking dirent.h usability... yes
          checking dirent.h presence... yes
          checking for dirent.h... yes
          checking ctype.h usability... yes
          checking ctype.h presence... yes
          checking for ctype.h... yes
          checking mtent.h usability... no
          checking mtent.h presence... no
          checking for mtent.h... no
          checking fcntl.h usability... yes
          checking fcntl.h presence... yes
          checking for fcntl.h... yes
          checking sys/param.h usability... yes
          checking sys/param.h presence... yes
          checking for sys/param.h... yes
          checking sys/mount.h usability... yes
          checking sys/mount.h presence... yes
          checking for sys/mount.h... yes
          checking arpa/inet.h usability... yes
          checking arpa/inet.h presence... yes
          checking for arpa/inet.h... yes
          checking sys/vfs.h usability... yes
          checking sys/vfs.h presence... yes
          checking for sys/vfs.h... yes
          checking sys/pstat.h usability... no
          checking sys/pstat.h presence... no
          checking for sys/pstat.h... no
          checking sys/sysinfo.h usability... yes
          checking sys/sysinfo.h presence... yes
          checking for sys/sysinfo.h... yes
          checking sys/statvfs.h usability... yes
          checking sys/statvfs.h presence... yes
          checking for sys/statvfs.h... yes
          checking for sys/socket.h... (cached) yes
          checking sys/loadavg.h usability... no
          checking sys/loadavg.h presence... no
          checking for sys/loadavg.h... no
          checking for netinet/in.h... (cached) yes
          checking for arpa/inet.h... (cached) yes
          checking sys/swap.h usability... yes
          checking sys/swap.h presence... yes
          checking for sys/swap.h... yes
          checking sys/vmmeter.h usability... no
          checking sys/vmmeter.h presence... no
          checking for sys/vmmeter.h... no
          checking for strings.h... (cached) yes
          checking sys/sysctl.h usability... yes
          checking sys/sysctl.h presence... yes
          checking for sys/sysctl.h... yes
          checking vm/vm_param.h usability... no
          checking vm/vm_param.h presence... no
          checking for vm/vm_param.h... no
          checking sys/time.h usability... yes
          checking sys/time.h presence... yes
          checking for sys/time.h... yes
          checking kstat.h usability... no
          checking kstat.h presence... no
          checking for kstat.h... no
          checking sys/syscall.h usability... yes
          checking sys/syscall.h presence... yes
          checking for sys/syscall.h... yes
          checking sys/sysmacros.h usability... yes
          checking sys/sysmacros.h presence... yes
          checking for sys/sysmacros.h... yes
          checking sys/procfs.h usability... yes
          checking sys/procfs.h presence... yes
          checking for sys/procfs.h... yes
          checking for stdint.h... (cached) yes
          checking mach/host_info.h usability... no
          checking mach/host_info.h presence... no
          checking for mach/host_info.h... no
          checking mach/mach_host.h usability... no
          checking mach/mach_host.h presence... no
          checking for mach/mach_host.h... no
          checking knlist.h usability... no
          checking knlist.h presence... no
          checking for knlist.h... no
          checking pwd.h usability... yes
          checking pwd.h presence... yes
          checking for pwd.h... yes
          checking sys/proc.h usability... no
          checking sys/proc.h presence... no
          checking for sys/proc.h... no
          checking sys/var.h usability... no
          checking sys/var.h presence... no
          checking for sys/var.h... no
          checking resolv.h usability... yes
          checking resolv.h presence... yes
          checking for resolv.h... yes
          checking arpa/nameser.h usability... yes
          checking arpa/nameser.h presence... yes
          checking for arpa/nameser.h... yes
          checking assert.h usability... yes
          checking assert.h presence... yes
          checking for assert.h... yes
          checking sys/dkstat.h usability... no
          checking sys/dkstat.h presence... no
          checking for sys/dkstat.h... no
          checking sys/disk.h usability... no
          checking sys/disk.h presence... no
          checking for sys/disk.h... no
          checking nlist.h usability... no
          checking nlist.h presence... no
          checking for nlist.h... no
          checking net/if.h usability... yes
          checking net/if.h presence... yes
          checking for net/if.h... yes
          checking kvm.h usability... no
          checking kvm.h presence... no
          checking for kvm.h... no
          checking linux/kernel.h usability... yes
          checking linux/kernel.h presence... yes
          checking for linux/kernel.h... yes
          checking ldap.h usability... no
          checking ldap.h presence... no
          checking for ldap.h... no
          checking getopt.h usability... yes
          checking getopt.h presence... yes
          checking for getopt.h... yes
          checking for an ANSI C-conforming const... yes
          checking for pid_t... yes
          checking for main in -lsocket... no
          checking for main in -lkstat... no
          checking for main in -lnsl... yes
          checking for main in -lresolv... yes
          checking for main in -lkvm... no
          checking for socklen_t... yes
          checking for /proc filesystem... yes
          checking for file /proc/1/status... yes
          checking for file /proc/0/psinfo... no
          checking for file /proc/loadavg... yes
          checking for file /proc/net/dev... yes
          checking for mem_unit in struct sysinfo... yes
          checking for freeswap in struct sysinfo... yes
          checking for function setpriority() in sys/resource.h... yes
          checking for function sysconf() in unistd.h... yes
          checking for macro __va_copy() in stdarg.h... yes
          checking for vmtotal in struct sys/vmmeter.h... no
          checking for struct swaptable in sys/swap.h... no
          checking for totalswap in struct sysinfo... yes
          checking for function sysctl (KERN_BOOTTIME)... no
          checking for function sysctl (KERN_MAXFILES)... no
          checking for function sysctl (KERN_MAXPROC)... no
          checking for function seteuid()... yes
          checking for function setproctitle()... no
          checking for totalram in struct sysinfo... yes
          checking for sharedram in struct sysinfo... yes
          checking for bufferram in struct sysinfo... yes
          checking for freeram in struct sysinfo... yes
          checking for uptime in struct sysinfo... yes
          checking for procs in struct sysinfo... yes
          checking return type of signal handlers... void
          checking for getloadavg... yes
          checking for socket... yes
          checking for strtod... yes
          checking for snprintf... yes
          checking for vasprintf... yes
          checking for asprintf... yes
          checking for vsnprintf... yes
          checking for hstrerror... yes
          checking for atoll... yes
          checking for getopt_long... yes
          checking for MySQL support... no
          configure: error: Invalid MySQL directory - unable to find mysql.h

          Comment

          • elkor
            Senior Member
            • Jul 2005
            • 299

            #6
            looks like you're probably missing the mysql-dev packages. not sure how they are named on unbuntu.
            while you're at it you probably want to ensure you have snmp-dev as well or you'll bomb out there too
            I know you're new, I'm not trying to be obtuse.. I really just don't know the unbuntu naming scheme or I'd tell you exactly what to grab

            Comment

            Working...