Ad Widget

Collapse

Can't compile agent under SCO for 1.1beta5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cohagen
    Junior Member
    • Sep 2005
    • 11

    #1

    Can't compile agent under SCO for 1.1beta5

    Was able to get agent compiled with a few tweaks with 1.1alpha12 but no luck so far with 1.1beta5. Any help appreciated.

    SCO OpenServer 5.07
    Using GNU Dev Kit

    [node4] /u2/olaf/src/zabbix-1.1beta5-> ./configure --enable-agent
    checking for a BSD-compatible install... /usr/gnu/bin/ginstall -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... i386-pc-sco3.2v5.0.7
    checking host system type... i386-pc-sco3.2v5.0.7
    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... gcc
    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
    Last edited by cohagen; 20-01-2006, 02:05.
  • cohagen
    Junior Member
    • Sep 2005
    • 11

    #2
    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... no
    checking sys/vfs.h presence... no
    checking for sys/vfs.h... no
    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... no
    checking sys/sysctl.h presence... no
    checking for sys/sysctl.h... no
    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... no
    checking sys/procfs.h presence... no
    checking for sys/procfs.h... no
    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... yes
    checking sys/proc.h presence... yes
    checking for sys/proc.h... yes
    checking sys/var.h usability... yes

    Comment

    • cohagen
      Junior Member
      • Sep 2005
      • 11

      #3
      checking sys/var.h presence... yes
      checking for sys/var.h... yes
      checking resolv.h usability... no
      checking resolv.h presence... yes
      configure: WARNING: resolv.h: present but cannot be compiled
      configure: WARNING: resolv.h: check for missing prerequisite headers?
      configure: WARNING: resolv.h: see the Autoconf documentation
      configure: WARNING: resolv.h: section "Present But Cannot Be Compiled"
      configure: WARNING: resolv.h: proceeding with the preprocessor's result
      configure: WARNING: resolv.h: in the future, the compiler will take precedence
      configure: WARNING: ## ------------------------------------------ ##
      configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
      configure: WARNING: ## ------------------------------------------ ##
      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... yes
      configure: WARNING: sys/disk.h: present but cannot be compiled
      configure: WARNING: sys/disk.h: check for missing prerequisite headers?
      configure: WARNING: sys/disk.h: see the Autoconf documentation
      configure: WARNING: sys/disk.h: section "Present But Cannot Be Compiled"
      configure: WARNING: sys/disk.h: proceeding with the preprocessor's result
      configure: WARNING: sys/disk.h: in the future, the compiler will take precedence
      configure: WARNING: ## ------------------------------------------ ##
      configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
      configure: WARNING: ## ------------------------------------------ ##
      checking for sys/disk.h... yes
      checking nlist.h usability... yes
      checking nlist.h presence... yes
      checking for nlist.h... yes
      checking net/if.h usability... no
      checking net/if.h presence... yes
      configure: WARNING: net/if.h: present but cannot be compiled
      configure: WARNING: net/if.h: check for missing prerequisite headers?
      configure: WARNING: net/if.h: see the Autoconf documentation
      configure: WARNING: net/if.h: section "Present But Cannot Be Compiled"
      configure: WARNING: net/if.h: proceeding with the preprocessor's result
      configure: WARNING: net/if.h: in the future, the compiler will take precedence
      configure: WARNING: ## ------------------------------------------ ##
      configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
      configure: WARNING: ## ------------------------------------------ ##
      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... no
      checking linux/kernel.h presence... no
      checking for linux/kernel.h... no
      checking ldap.h usability... yes
      checking ldap.h presence... yes
      checking for ldap.h... yes
      checking for an ANSI C-conforming const... yes
      checking for pid_t... yes
      checking for main in -lsocket... yes
      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... no
      checking for /proc filesystem... no
      checking for file /proc/1/status... no
      checking for file /proc/0/psinfo... no
      checking for file /proc/loadavg... no
      checking for file /proc/net/dev... no
      checking for mem_unit in struct sysinfo... no
      checking for freeswap in struct sysinfo... no
      checking for function setpriority() in sys/resource.h... yes
      checking for function sysconf() in unistd.h... no
      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... no
      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()... yes
      checking for totalram in struct sysinfo... no
      checking for sharedram in struct sysinfo... no
      checking for bufferram in struct sysinfo... no
      checking for freeram in struct sysinfo... no
      checking for uptime in struct sysinfo... no
      checking for procs in struct sysinfo... no
      checking return type of signal handlers... void
      checking for getloadavg... no
      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 MySQL support... no
      checking for PostgreSQL support... no
      checking for NET-SNMP support... no
      checking for UCD-SNMP support... no
      checking for LDAP support... no
      configure: WARNING: ## ------------------------------------------------------ ##
      configure: WARNING: ## configure WARNING: ##
      configure: WARNING: ## No database selected! Use --with-XXX, where XXX ##
      configure: WARNING: ## is your preferred database type (mysql or pgsql) ##
      configure: WARNING: ## Server processes (zabbix_suckerd and zabbix_trapper) ##
      configure: WARNING: ## will not be created! ##
      configure: WARNING: ## ------------------------------------------------------ ##
      checking for architecture... ok (sco3.2v5.0.7)
      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/zabbix_server/pinger/Makefile
      config.status: creating src/zabbix_server/escalator/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: sco3.2v5.0.7
      Install path: /usr/local
      Compiler: gcc
      Compiler flags: -g -O2
      Linker flags: -lresolv -lnsl -lsocket
      Compilation arch: unknown

      Enable server: no
      With database: no

      Enable agent: yes

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

      [node4] /u2/olaf/src/zabbix-1.1beta5->
      [node4] /u2/olaf/src/zabbix-1.1beta5-> make
      Making all in src
      make[1]: Entering directory `/u2/olaf/src/zabbix-1.1beta5/src'
      Making all in libs
      make[2]: Entering directory `/u2/olaf/src/zabbix-1.1beta5/src/libs'
      Making all in zbxcommon
      make[3]: Entering directory `/u2/olaf/src/zabbix-1.1beta5/src/libs/zbxcommon'
      make[4]: Entering directory `/u2/olaf/src/zabbix-1.1beta5/src/libs/zbxcommon'
      source='base64.c' object='base64.o' libtool=no \
      DEPDIR=.deps depmode=gcc /bin/ksh ../../../depcomp \
      gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -c base64.c
      source='misc.c' object='misc.o' libtool=no \
      DEPDIR=.deps depmode=gcc /bin/ksh ../../../depcomp \
      gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -c misc.c
      In file included from ../../../include/sysinc.h:145,
      from ../../../include/common.h:23,
      from misc.c:1:
      /usr/include/sys/disk.h:97: field `dkparam' has incomplete type
      /usr/include/sys/disk.h:121: field `v_vdisk' has incomplete type
      /usr/include/sys/disk.h:173: field `p' has incomplete type
      /usr/include/sys/disk.h:223: field `dkbadtrks' has incomplete type
      /usr/include/sys/disk.h:289: field `lba_map' has incomplete type
      make[4]: *** [misc.o] Error 1
      make[4]: Leaving directory `/u2/olaf/src/zabbix-1.1beta5/src/libs/zbxcommon'
      make[3]: *** [all-recursive] Error 1
      make[3]: Leaving directory `/u2/olaf/src/zabbix-1.1beta5/src/libs/zbxcommon'
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory `/u2/olaf/src/zabbix-1.1beta5/src/libs'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/u2/olaf/src/zabbix-1.1beta5/src'
      make: *** [all-recursive] Error 1
      [node4] /u2/olaf/src/zabbix-1.1beta5->
      Last edited by cohagen; 20-01-2006, 02:05.

      Comment

      Working...