Ad Widget

Collapse

Zabbix Compilation Errors on make

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • simonjones
    Junior Member
    • Mar 2007
    • 3

    #1

    Zabbix Compilation Errors on make

    Hello,

    I seem to be having some difficulty when trying to run the make command. Our system is highly secure so maybe the make command is unable to find something. I'm just guessing here. any help would be greatly appreciated.
    Many Thanks!

    [root@schvoxmgt zabbix-1.1.6]# ./configure --enable-server --enable-agent --with-net-snmp --with-libcurl --with-mysql=/usr/local/mysql/ localhost
    configure: WARNING: you should use --build, --host, --target
    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... localhost
    checking host system type... localhost
    checking for localhost-gcc... no
    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... yes
    checking nlist.h presence... yes
    checking for nlist.h... yes
    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... yes
    checking ldap.h presence... yes
    checking for ldap.h... yes
    checking getopt.h usability... yes
    checking getopt.h presence... yes
    checking for getopt.h... yes
    checking procinfo.h usability... no
    checking procinfo.h presence... no
    checking for procinfo.h... no
    checking sys/dk.h usability... no
    checking sys/dk.h presence... no
    checking for sys/dk.h... no
    checking lber.h usability... yes
    checking lber.h presence... yes
    checking for lber.h... yes
    checking for an ANSI C-conforming const... yes
  • simonjones
    Junior Member
    • Mar 2007
    • 3

    #2
    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/stat... 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 Oracle support... no
    checking for MySQL support... yes
    checking for floor... no
    checking for floor in -lm... yes
    checking for compress in -lz... yes
    checking for PostgreSQL support... no
    checking for ZABBIX server database selection... ok
    checking for NET-SNMP support... checking for main in -lcrypto... yes
    yes
    checking for UCD-SNMP support... no
    checking for LDAP support... no
    checking for architecture... ok (localhost)
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating src/libs/Makefile
    config.status: creating src/libs/zbxlog/Makefile
    config.status: creating src/libs/zbxcrypto/Makefile
    config.status: creating src/libs/zbxpid/Makefile
    config.status: creating src/libs/zbxnet/Makefile
    config.status: creating src/libs/zbxconf/Makefile
    config.status: creating src/zabbix_sender/Makefile
    config.status: creating src/libs/zbxdbhigh/Makefile
    config.status: creating src/libs/zbxemail/Makefile
    config.status: creating src/libs/zbxsysinfo/Makefile
    config.status: creating src/libs/zbxsms/Makefile
    config.status: creating src/zabbix_server/pinger/Makefile
    config.status: creating src/zabbix_agent/Makefile
    config.status: creating src/zabbix_server/housekeeper/Makefile
    config.status: creating src/zabbix_server/alerter/Makefile
    config.status: creating src/zabbix_server/Makefile
    config.status: creating src/zabbix_server/trapper/Makefile
    config.status: creating src/zabbix_server/poller/Makefile
    config.status: creating src/zabbix_server/timer/Makefile
    config.status: creating src/zabbix_get/Makefile
    config.status: creating src/libs/zbxcommon/Makefile
    config.status: creating src/libs/zbxsysinfo/linux/Makefile
    config.status: creating src/libs/zbxsysinfo/aix/Makefile
    config.status: creating src/libs/zbxsysinfo/freebsd/Makefile
    config.status: creating src/libs/zbxsysinfo/hpux/Makefile
    config.status: creating src/libs/zbxsysinfo/openbsd/Makefile
    config.status: creating src/libs/zbxsysinfo/osx/Makefile
    config.status: creating src/libs/zbxsysinfo/solaris/Makefile
    config.status: creating src/libs/zbxsysinfo/osf/Makefile
    config.status: creating src/libs/zbxsysinfo/netbsd/Makefile
    config.status: creating src/libs/zbxsysinfo/unknown/Makefile
    config.status: creating include/config.h
    config.status: executing depfiles commands


    Configuration:

    Detected OS: localhost
    Install path: /usr/local
    Compilation arch: unknown

    Compiler: gcc
    Compiler flags: -g -O2
    Linker flags:
    Libraries: -lresolv -lnsl

    Enable server: yes
    With database: MySQL

    Enable agent: yes

    ************************************************** *********
    * Now run 'make' *
    * *
    * Thank you for using ZABBIX! *
    * <http://www.zabbix.com> *
    ************************************************** *********

    [root@schvoxmgt zabbix-1.1.6]# make
    Making all in src
    make[1]: Entering directory `/root/zabbix-1.1.6/src'
    Making all in libs
    make[2]: Entering directory `/root/zabbix-1.1.6/src/libs'
    Making all in zbxcommon
    make[3]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxcommon'
    make[4]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxcommon'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT base64.o -MD -MP -MF ".deps/base64.Tpo" -c -o base64.o base64.c; \
    then mv -f ".deps/base64.Tpo" ".deps/base64.Po"; else rm -f ".deps/base64.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT misc.o -MD -MP -MF ".deps/misc.Tpo" -c -o misc.o misc.c; \
    then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; else rm -f ".deps/misc.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT regexp.o -MD -MP -MF ".deps/regexp.Tpo" -c -o regexp.o regexp.c; \
    then mv -f ".deps/regexp.Tpo" ".deps/regexp.Po"; else rm -f ".deps/regexp.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT xml.o -MD -MP -MF ".deps/xml.Tpo" -c -o xml.o xml.c; \
    then mv -f ".deps/xml.Tpo" ".deps/xml.Po"; else rm -f ".deps/xml.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT comms.o -MD -MP -MF ".deps/comms.Tpo" -c -o comms.o comms.c; \
    then mv -f ".deps/comms.Tpo" ".deps/comms.Po"; else rm -f ".deps/comms.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT str.o -MD -MP -MF ".deps/str.Tpo" -c -o str.o str.c; \
    then mv -f ".deps/str.Tpo" ".deps/str.Po"; else rm -f ".deps/str.Tpo"; exit 1; fi
    rm -f libzbxcommon.a
    ar cru libzbxcommon.a base64.o misc.o regexp.o xml.o comms.o str.o
    ranlib libzbxcommon.a
    make[4]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxcommon'
    make[3]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxcommon'
    Making all in zbxlog
    make[3]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxlog'
    make[4]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxlog'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT log.o -MD -MP -MF ".deps/log.Tpo" -c -o log.o log.c; \
    then mv -f ".deps/log.Tpo" ".deps/log.Po"; else rm -f ".deps/log.Tpo"; exit 1; fi
    rm -f libzbxlog.a
    ar cru libzbxlog.a log.o
    ranlib libzbxlog.a
    make[4]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxlog'
    make[3]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxlog'
    Making all in zbxcrypto
    make[3]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxcrypto'
    make[4]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxcrypto'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT md5.o -MD -MP -MF ".deps/md5.Tpo" -c -o md5.o md5.c; \
    then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tpo"; exit 1; fi
    rm -f libzbxcrypto.a
    ar cru libzbxcrypto.a md5.o
    ranlib libzbxcrypto.a

    Comment

    • simonjones
      Junior Member
      • Mar 2007
      • 3

      #3
      make[4]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxcrypto'
      make[3]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxcrypto'
      Making all in zbxpid
      make[3]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxpid'
      make[4]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxpid'
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT pid.o -MD -MP -MF ".deps/pid.Tpo" -c -o pid.o pid.c; \
      then mv -f ".deps/pid.Tpo" ".deps/pid.Po"; else rm -f ".deps/pid.Tpo"; exit 1; fi
      rm -f libzbxpid.a
      ar cru libzbxpid.a pid.o
      ranlib libzbxpid.a
      make[4]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxpid'
      make[3]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxpid'
      Making all in zbxnet
      make[3]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxnet'
      make[4]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxnet'
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT security.o -MD -MP -MF ".deps/security.Tpo" -c -o security.o security.c; \
      then mv -f ".deps/security.Tpo" ".deps/security.Po"; else rm -f ".deps/security.Tpo"; exit 1; fi
      rm -f libzbxnet.a
      ar cru libzbxnet.a security.o
      ranlib libzbxnet.a
      make[4]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxnet'
      make[3]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxnet'
      Making all in zbxconf
      make[3]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxconf'
      make[4]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxconf'
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT cfg.o -MD -MP -MF ".deps/cfg.Tpo" -c -o cfg.o cfg.c; \
      then mv -f ".deps/cfg.Tpo" ".deps/cfg.Po"; else rm -f ".deps/cfg.Tpo"; exit 1; fi
      rm -f libzbxconf.a
      ar cru libzbxconf.a cfg.o
      ranlib libzbxconf.a
      make[4]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxconf'
      make[3]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxconf'
      Making all in zbxsysinfo
      make[3]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxsysinfo'
      Making all in unknown
      make[4]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxsysinfo/unknown'
      make[5]: Entering directory `/root/zabbix-1.1.6/src/libs/zbxsysinfo/unknown'
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -g -O2 -MT cpu.o -MD -MP -MF ".deps/cpu.Tpo" -c -o cpu.o cpu.c; \
      then mv -f ".deps/cpu.Tpo" ".deps/cpu.Po"; else rm -f ".deps/cpu.Tpo"; exit 1; fi
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -g -O2 -MT diskio.o -MD -MP -MF ".deps/diskio.Tpo" -c -o diskio.o diskio.c; \
      then mv -f ".deps/diskio.Tpo" ".deps/diskio.Po"; else rm -f ".deps/diskio.Tpo"; exit 1; fi
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -g -O2 -MT diskspace.o -MD -MP -MF ".deps/diskspace.Tpo" -c -o diskspace.o diskspace.c; \
      then mv -f ".deps/diskspace.Tpo" ".deps/diskspace.Po"; else rm -f ".deps/diskspace.Tpo"; exit 1; fi
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -g -O2 -MT inodes.o -MD -MP -MF ".deps/inodes.Tpo" -c -o inodes.o inodes.c; \
      then mv -f ".deps/inodes.Tpo" ".deps/inodes.Po"; else rm -f ".deps/inodes.Tpo"; exit 1; fi
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -g -O2 -MT kernel.o -MD -MP -MF ".deps/kernel.Tpo" -c -o kernel.o kernel.c; \
      then mv -f ".deps/kernel.Tpo" ".deps/kernel.Po"; else rm -f ".deps/kernel.Tpo"; exit 1; fi
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -g -O2 -MT memory.o -MD -MP -MF ".deps/memory.Tpo" -c -o memory.o memory.c; \
      then mv -f ".deps/memory.Tpo" ".deps/memory.Po"; else rm -f ".deps/memory.Tpo"; exit 1; fi
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -g -O2 -MT net.o -MD -MP -MF ".deps/net.Tpo" -c -o net.o net.c; \
      then mv -f ".deps/net.Tpo" ".deps/net.Po"; else rm -f ".deps/net.Tpo"; exit 1; fi
      net.c:46: error: redefinition of 'NET_IF_OUT'
      net.c:36: error: previous definition of 'NET_IF_OUT' was here
      make[5]: *** [net.o] Error 1
      make[5]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxsysinfo/unknown'
      make[4]: *** [all-recursive] Error 1
      make[4]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxsysinfo/unknown'
      make[3]: *** [all-recursive] Error 1
      make[3]: Leaving directory `/root/zabbix-1.1.6/src/libs/zbxsysinfo'
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory `/root/zabbix-1.1.6/src/libs'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/root/zabbix-1.1.6/src'
      make: *** [all-recursive] Error 1

      System info: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
      can provide more if needed.

      Comment

      Working...