Ad Widget

Collapse

Solaris 9 x86 agent compile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psynusoid
    Junior Member
    • Dec 2005
    • 7

    #1

    Solaris 9 x86 agent compile

    Has anyone managed to compile the agent for solaris 9 x86.
    I'm getting autoconf errors from a
    ./configure --enable-agent
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    What errors?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • psynusoid
      Junior Member
      • Dec 2005
      • 7

      #3
      Right, its pretty much as follows....

      Several of these prior
      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: ## ------------------------------------------ ##
      And after

      I've included the output of env, ./configure --enable-agent and also make after the errors.

      The solaris install is a full standard install, without OEM and I've included a list of packages which have come from the SunFreeware.com site
      Attached Files

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        These are WARNINGS!
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • psynusoid
          Junior Member
          • Dec 2005
          • 7

          #5
          Ooops, missed off a bit from the make log, forgot to log stderr

          Making all in src
          make[1]: Entering directory `/export/home/build/zabbix-1.1beta4/src'
          Making all in libs
          make[2]: Entering directory `/export/home/build/zabbix-1.1beta4/src/libs'
          Making all in zbxcommon
          make[3]: Entering directory `/export/home/build/zabbix-1.1beta4/src/libs/zbxcommon'
          make[4]: Entering directory `/export/home/build/zabbix-1.1beta4/src/libs/zbxcommon'
          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
          In file included from /usr/include/sys/reg.h:13,
          from /usr/include/sys/pcb.h:11,
          from /usr/include/sys/klwp.h:16,
          from /usr/include/sys/thread.h:13,
          from /usr/include/sys/proc.h:20,
          from ../../../include/sysinc.h:127,
          from ../../../include/common.h:23,
          from misc.c:1:
          /usr/include/ia32/sys/reg.h:300: error: parse error before "upad128_t"
          /usr/include/ia32/sys/reg.h:302: error: parse error before '}' token
          /usr/include/ia32/sys/reg.h:309: error: field `kfpu_fx' has incomplete type
          /usr/include/ia32/sys/reg.h:331: error: parse error before "upad128_t"
          /usr/include/ia32/sys/reg.h:338: error: parse error before '}' token
          /usr/include/ia32/sys/reg.h:339: error: parse error before '}' token
          /usr/include/ia32/sys/reg.h:376: error: parse error before "fpregset_t"
          In file included from /usr/include/sys/klwp.h:19,
          from /usr/include/sys/thread.h:13,
          from /usr/include/sys/proc.h:20,
          from ../../../include/sysinc.h:127,
          from ../../../include/common.h:23,
          from misc.c:1:
          /usr/include/sys/ucontext.h:69: error: parse error before "mcontext_t"
          /usr/include/sys/ucontext.h:71: error: parse error before '}' token
          In file included from ../../../include/sysinc.h:133,
          from ../../../include/common.h:23,
          from misc.c:1:
          /usr/include/sys/procfs.h:125: error: parse error before "fpregset_t"
          /usr/include/sys/procfs.h:158: error: parse error before "lwpstatus_t"
          make[4]: *** [misc.o] Error 1
          make[4]: Leaving directory `/export/home/build/zabbix-1.1beta4/src/libs/zbxcommon'
          make[3]: *** [all-recursive] Error 1
          make[3]: Leaving directory `/export/home/build/zabbix-1.1beta4/src/libs/zbxcommon'
          make[2]: *** [all-recursive] Error 1
          make[2]: Leaving directory `/export/home/build/zabbix-1.1beta4/src/libs'
          make[1]: *** [all-recursive] Error 1
          make[1]: Leaving directory `/export/home/build/zabbix-1.1beta4/src'
          make: *** [all-recursive] Error 1

          Comment

          • psynusoid
            Junior Member
            • Dec 2005
            • 7

            #6
            Hav just dug this up on the web, am off to recompile gcc, or fix my headers!

            I'm getting /usr/include/ia32/sys/reg.h:300: error: parse error before "upad128_t" when I compile IPF, why?
            The problem is that the Solaris headers changed across updates of Solaris 9 and you are using a GCC from before the change on an updated system. (i.e. a GCC built for Solaris 9 <= 12/03 on Solaris 9 >= 4/04).

            You can either rebuild GCC for your version of the system (it works, even using a GCC built for the previous version), or see apply a fix to your headers: http://groups.yahoo.com/group/solarisx86/message/6617.

            Comment

            • psynusoid
              Junior Member
              • Dec 2005
              • 7

              #7
              Success

              Ok, headers on gcc rebuilt and we have a working compile.
              now to package it and I'll be set.

              Comment

              • psynusoid
                Junior Member
                • Dec 2005
                • 7

                #8
                Just in case anyone else encounters the same thing...

                To update the headers on gcc from the sunfreeware.com site solaris 9 x86
                edit
                /usr/local/lib/gcc/i386-pc-solaris2.9/3.4.2/install-tools/mkheaders.conf
                and add SHELL=/bin/sh to the first line

                then run
                /usr/local/libexec/gcc/i386-pc-solaris2.9/3.4.2/install-tools/mkheaders

                Comment

                Working...