Ad Widget

Collapse

configure and compile source code fails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dkhans2
    Junior Member
    • Feb 2011
    • 10

    #1

    configure and compile source code fails

    For those who are experienced with installing/configuring zabbix, please assist.

    In the attempt to configure and compile the source code on my AIX server I got a syntax error.
    The command I executed was:

    ./configure --enable-server --enable-agent --enable-static --with-ibm-db2 --with-net-snmp --with-jabber --with-libcurl # for IBM DB2 + Jabber + WEB monitoring

    ...
    ...
    checking execinfo.h usability... no
    checking execinfo.h presence... no
    checking for execinfo.h... no
    checking libperfstat.h usability... no
    checking libperfstat.h presence... yes
    configure: WARNING: libperfstat.h: present but cannot be compiled
    configure: WARNING: libperfstat.h: check for missing prerequisite headers?
    configure: WARNING: libperfstat.h: see the Autoconf documentation
    configure: WARNING: libperfstat.h: section "Present But Cannot Be Compiled"
    configure: WARNING: libperfstat.h: proceeding with the preprocessor's result
    configure: WARNING: libperfstat.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 libperfstat.h... yes
    checking sys/systemcfg.h usability... yes
    checking sys/systemcfg.h presence... yes
    ...
    ...
    checking for long long format... no
    checking for -rdynamic linking option... no
    ./configure[9266]: syntax error at line 10681 : `(' unexpected
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    which zabbix version is that ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • dkhans2
      Junior Member
      • Feb 2011
      • 10

      #3
      zabbix 1.8.4. I am now downloading the required software: PHP.
      There are numerous requisites needed for PHP on AIX and I don't know of any way but to manually click on each one of the filesets and select the specific required version (some are very old, as back in 2008).
      If there is an easier or faster way, i.e., some doc. that would state exactly all of the filesets I would appreciate if someone would point me in that area.

      zabbix is one of the monitoring products for AIX platform my management is interested in switching to and purchasing premium support. So far, initial experience with just trying to obtain all of the required software is not good.

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        php is not required for compiling, though.
        there are several zabbix users on aix, so maybe they can chime in on compilation experience as well
        Zabbix 3.0 Network Monitoring book

        Comment

        • dkhans2
          Junior Member
          • Feb 2011
          • 10

          #5
          Now your information on PHP not being required for compiling Zabbix is more discouraging as I thought perhaps if I had all of the required software loaded the compile would work.


          Why would I receive a syntax error on compiling the source? The only thing I can think of is the download of the tar file wasn't successful but it was; download was 100%.

          Other than your's, I hadn't received any reply from any Zabbix user.

          Comment

          • nelsonab
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2006
            • 1233

            #6
            Hmmm... it looks like there might be an issue with autoconf and your compiler on AIX. Which version of autoconf are you using? http://www.gnu.org/software/hello/ma...-Compiled.html has some information and seems to suggest that 2.64 and higher will begin the complaining process in earnest. Also by the reference to the mysterious 4th parameter it makes me wonder if this might not be a bug in the autoconf configuration script.

            What version of Autoconf are you running and what compiler and version are you using?

            I would suggest filing a bug for this. https://support.zabbix.com and then post back with the ticket number.
            RHCE, author of zbxapi
            Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
            Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

            Comment

            • dkhans2
              Junior Member
              • Feb 2011
              • 10

              #7
              autoconf on my server:

              autoconf-2.59-1
              autoconf213-2.13-1

              Comment

              • dkhans2
                Junior Member
                • Feb 2011
                • 10

                #8
                gcc-4.0.0-1
                libgcc-4.0.0-1
                gcc-c++-4.0.0-1

                Comment

                • nelsonab
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Sep 2006
                  • 1233

                  #9
                  What is with the two versions of autoconf?

                  I'm running Autoconf 2.65 on my Fedora box, try upgrading autoconf if you can first and see if that helps.
                  RHCE, author of zbxapi
                  Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
                  Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

                  Comment

                  • dkhans2
                    Junior Member
                    • Feb 2011
                    • 10

                    #10
                    Upgrading to autoconf-2.65-1 didn't help. I got the same syntax error from trying to compile:

                    ./configure[9266]: syntax error at line 10681 : `(' unexpected

                    Comment

                    • richlv
                      Senior Member
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Oct 2005
                      • 3112

                      #11
                      how about pasting that section of configure script ? (max 10 lines before & after)
                      Zabbix 3.0 Network Monitoring book

                      Comment

                      • dkhans2
                        Junior Member
                        • Feb 2011
                        • 10

                        #12
                        In starting from untarin'g zabbix-1.8.4.tar file again in a different directory, I got a different error. It appears some db2 library couldn't be found.
                        What is missing from my db2 V9.7 install? I was able to create and instance and a database and could do a "db2ilist".

                        Below is the error from a compile:

                        checking for file /proc/0/psinfo... yes
                        checking for file /proc/loadavg... no
                        checking for file /proc/net/dev... no
                        checking for long long format... no
                        checking for -rdynamic linking option... no
                        checking for IBM DB2 CLI libraries...
                        configure: error: IBM DB2 library not found

                        Comment

                        • dkhans2
                          Junior Member
                          • Feb 2011
                          • 10

                          #13
                          below is a cut and paste from the previous compile when it failed on a syntax error on line 10681. Highlighted in red is line 10681:



                          fi

                          else
                          _libiksemel_with=no
                          fi;

                          if test "x$_libiksemel_with" != x"no"; then
                          if test "$_libiksemel_with" = "yes"; then
                          PKG_CHECK_MODULES(IKSEMEL,iksemel,

                          JABBER_INCDIR=$IKSEMEL_CPPFLAGS JABBER_LIBDIR=$IKSEMEL_LIBS
                          JABBER_LIBS="-liksemel"
                          ,
                          found_iksemel="no"
                          found_jabber="no"
                          )
                          else
                          echo "$as_me:$LINENO: checking for iksemel support" >&5
                          echo $ECHO_N "checking for iksemel support... $ECHO_C" >&6

                          if test -f $_libiksemel_with/include/iksemel.h; then
                          JABBER_INCDIR=-I$_libiksemel_with/include

                          Comment

                          • richlv
                            Senior Member
                            Zabbix Certified Trainer
                            Zabbix Certified SpecialistZabbix Certified Professional
                            • Oct 2005
                            • 3112

                            #14
                            so, did yo compile from a released package or from svn the fist time ?
                            Zabbix 3.0 Network Monitoring book

                            Comment

                            Working...