Ad Widget

Collapse

Zabbix Agent on HPUX 9.04

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eric_at_2037
    Junior Member
    • May 2008
    • 12

    #1

    Zabbix Agent on HPUX 9.04

    Hi,

    I’m trying to compile Zabbix Agent on HPUX 9.04.

    The ./configure end with no error, but the make install failed with some error

    I’ve try some compilation option without result.

    Code:
    uname –a
    HP-UX EAI A.09.04 E 9000/816 1981388242 8-user license
    Code:
    ./configure --enable-agent
    checking for a BSD-compatible install... ./install-sh -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    configure: Configuring  
    checking whether make sets $(MAKE)... (cached) yes
    checking build system type... hppa1.1-hp-hpux9.04
    checking host system type... hppa1.1-hp-hpux9.04
    checking for gcc... no
    checking for cc... cc
    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... no
    checking whether cc accepts -g... yes
    checking for cc option to accept ANSI C... -Ae
    checking for style of include used by make... GNU
    checking dependency style of cc -Ae... hp
    checking how to run the C preprocessor... cc -Ae -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... no
    [SIZE="7"](...)[/SIZE]
    checking for getopt_long... no
    checking for architecture... ok (hpux9.04)
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating create/Makefile
    config.status: creating create/schema/Makefile
    config.status: creating misc/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/zbxconf/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/libs/zbxjabber/Makefile
    config.status: creating src/libs/zbxcommon/Makefile
    config.status: creating src/libs/zbxsysinfo/common/Makefile
    config.status: creating src/libs/zbxsysinfo/simple/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 src/libs/zbxnix/Makefile
    config.status: creating src/libs/zbxplugin/Makefile
    config.status: creating src/libs/zbxsys/Makefile
    config.status: creating src/libs/zbxcomms/Makefile
    config.status: creating src/libs/zbxdb/Makefile
    config.status: creating src/zabbix_agent/Makefile
    config.status: creating src/zabbix_get/Makefile
    config.status: creating src/zabbix_sender/Makefile
    config.status: creating src/zabbix_server/Makefile
    config.status: creating src/zabbix_server/alerter/Makefile
    config.status: creating src/zabbix_server/discoverer/Makefile
    config.status: creating src/zabbix_server/housekeeper/Makefile
    config.status: creating src/zabbix_server/httppoller/Makefile
    config.status: creating src/zabbix_server/nodewatcher/Makefile
    config.status: creating src/zabbix_server/pinger/Makefile
    config.status: creating src/zabbix_server/poller/Makefile
    config.status: creating src/zabbix_server/timer/Makefile
    config.status: creating src/zabbix_server/trapper/Makefile
    config.status: creating src/zabbix_server/utils/Makefile
    config.status: creating src/zabbix_server/watchdog/Makefile
    config.status: creating upgrades/Makefile
    config.status: creating include/config.h
    config.status: include/config.h is unchanged
    config.status: executing depfiles commands
    
    
    Configuration:
    
      Detected OS:        hpux9.04
      Install path:       /usr/local
      Compilation arch:   hpux
    
      Compiler:           cc -Ae
      Compiler flags:     -g 
    
      Enable server:      no
    
      Enable agent:       yes
      Linker flags:        
      Libraries:          -lm 
    
      LDAP support:       no
    
    ***********************************************************
    *            Now run 'make install'                       *
    *                                                         *
    *            Thank you for using ZABBIX!                  *
    *              <http://www.zabbix.com>                    *
    ***********************************************************
    Code:
    make install
    Making install in create
    Making install in schema
    	cd ../.. && make  am--refresh
    	cd ../.. && make  am--refresh
    	cd .. && make  am--refresh
    	cd .. && make  am--refresh
    Making install in misc
    	cd .. && make  am--refresh
    	cd .. && make  am--refresh
    Making install in src
    Making install in libs
    Making install in zbxcrypto
    	cd ../../.. && make  am--refresh
    	cd ../../.. && make  am--refresh
    	source='md5.c' object='md5.o' libtool=no \
    	DEPDIR=.deps depmode=hp /bin/ksh ../../../depcomp \
    	cc -Ae -DHAVE_CONFIG_H -I. -I. -I../../../include      -g  -c md5.c
    *** Error code 1
    *** Error code 1
    *** Error code 1
    *** Error code 1
    mbol: "itemid".
    cc: "../../../include/common.h", line 649: error 1000: Unexpected symbol: "id".
    cc: "../../../include/common.h", line 652: error 1000: Unexpected symbol: "uint64_t".
    cc: "../../../include/common.h", line 659: error 1000: Unexpected symbol: "zbx_letoh_uint64".
    cc: "../../../include/common.h", line 660: error 1000: Unexpected symbol: "data".
    cc: "../../../include/common.h", line 663: error 1000: Unexpected symbol: "zbx_htole_uint64".
    cc: "../../../include/common.h", line 664: error 1000: Unexpected symbol: "data".
    cc: "../../../include/md5.h", line 70: error 1000: Unexpected symbol: "md5_word_t".
    cc: "../../../include/common.h", line 552: error 1506: Parameters allowed in function definition only.
    cc: "../../../include/common.h", line 649: error 1506: Parameters allowed in function definition only.
    cc: "../../../include/common.h", line 652: error 1573: Type of "value" is undefined.
    cc: "../../../include/common.h", line 659: warning 557: Missing declaration specifiers, "int" assumed.
    cc: "../../../include/common.h", line 663: warning 557: Missing declaration specifiers, "int" assumed.
    cc: "../../../include/md5.h", line 70: error 1573: Type of "count" is undefined.
    cc: "../../../include/md5.h", line 70: error 1578: Size of member is unknown.
    cc: "md5.c", line 316: error 1531: Invalid member of struct or union.
    cc: "md5.c", line 316: error 1531: Invalid member of struct or union.
    cc: "md5.c", line 328: error 1531: Invalid member of struct or union.
    cc: "md5.c", line 335: error 1531: Invalid member of struct or union.
    cc: "md5.c", line 335: error 1549: Modifiable lvalue required for assignment operator.
    cc: "md5.c", line 335: error 1603: Incompatible operands: assign operator.
    cc: "md5.c", line 336: error 1531: Invalid member of struct or union.
    cc: "md5.c", line 336: error 1549: Modifiable lvalue required for assignment operator.
    cc: "md5.c", line 336: error 1603: Incompatible operands: assign operator.
    cc: "md5.c", line 337: error 1531: Invalid member of struct or union.
    cc: "md5.c", line 337: error 1563: Expression in if must be scalar.
    cc: "md5.c", line 338: error 1531: Invalid member of struct or union.
    cc: "md5.c", line 338: error 1560: Lvalue required.
    cc: "md5.c", line 375: error 1531: Invalid member of struct or union.
    cc: "md5.c", line 375: error 1527: Incompatible types in cast.
    cc: "md5.c", line 377: error 1531: Invalid member of struct or union.
    cc: "md5.c", line 377: warning 563: Argument #3 is not the correct type.
    
    Stop.
    
    Stop.
    
    Stop.
    
    Stop.
    I must find a solution, if you have an idea
  • xs-
    Senior Member
    Zabbix Certified Specialist
    • Dec 2007
    • 393

    #2
    have you tried using gcc yet?

    Comment

    • eric_at_2037
      Junior Member
      • May 2008
      • 12

      #3
      Thank XS- for your answer.

      We haven’t gcc on our HPUX 9.03, this is very old server and any megabits are very precious. For example we must mount nfs partition for compiling Zabbix… (We don’t have the required space for the source).

      Our problem was fixed by our development team. They have taken three days to adapt the agent source code to our old architecture. (Problems with uint64, redefined as long long long, and structure definition is more restrictive with ANSI).

      This is an internal development; I will probably not allow to publish this code.

      Regards,

      Eric

      Comment

      Working...