Ad Widget

Collapse

freebsd 4.7 agent compilation issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghislain
    Senior Member
    • Jun 2005
    • 160

    #1

    freebsd 4.7 agent compilation issue

    Hello there,

    i try to compile agent fro freebsd 4.7 (version 1.4.2) but i fail here:

    version: 4.7-RELEASE-p28 FreeBSD 4.7-RELEASE-p28
    ./configure --enable-agent --disable-server --without-jabber --without-ucd-snmp --without-net-snmp --without-pgsql --without-mysql


    Code:
      core1:/root/zabbix-1.4.2%(root)> make
    Making all in create
    Making all in schema
    Making all in misc
    Making all in src
    Making all in libs
    Making all in zbxcrypto
    Making all in zbxcommon
    Making all in zbxlog
    source='log.c' object='log.o' libtool=no  DEPDIR=.deps depmode=gcc /usr/local/bin/bash ../../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../../../include      -g -O2 -c log.c
    log.c: In function `zabbix_open_log':
    log.c:121: syntax error before `;'
    log.c:127: syntax error before `;'
    *** Error code 1
    
    Stop in /root/zabbix-1.4.2/src/libs/zbxlog.
    *** Error code 1
    
    Stop in /root/zabbix-1.4.2/src/libs.
    *** Error code 1
    
    Stop in /root/zabbix-1.4.2/src.
    *** Error code 1
    
    Stop in /root/zabbix-1.4.2.
    Any ideas ?

    regards,
    Ghslain.
    Regards,
    Ghislain.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    It seems your GCC is broken, really. Try to use a different version of the compiler.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • ghislain
      Senior Member
      • Jun 2005
      • 160

      #3
      the 1.4.1 works like a charm but i cannot compile the 1.4.2. Does the agents have been changed a lot between the two versions on unix ?

      regards,
      Ghislain.
      Regards,
      Ghislain.

      Comment

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

        #4
        Originally posted by ghislain
        the 1.4.1 works like a charm but i cannot compile the 1.4.2. Does the agents have been changed a lot between the two versions on unix ?
        We cannot help you if you won't provide more details...
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • Eugene
          Member
          • Feb 2006
          • 57

          #5
          I hope, this patch can solve you problem.
          Attached Files

          Comment

          • ghislain
            Senior Member
            • Jun 2005
            • 160

            #6
            Originally posted by Eugene
            I hope, this patch can solve you problem.
            i tried it but i still have the same issue:

            Code:
            cd ../../.. && make  am--refresh
            source='log.c' object='log.o' libtool=no  DEPDIR=.deps depmode=gcc /usr/local/bin/bash ../../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../../../include      -g -O2 -c log.c
            cd ../../.. && make  am--refresh
            log.c: In function `zabbix_open_log':
            log.c:121: syntax error before `;'
            log.c:127: syntax error before `;'
            *** Error code 1
            1 error
            Regards,
            Ghislain.

            Comment

            • Eugene
              Member
              • Feb 2006
              • 57

              #7
              Originally posted by ghislain
              i tried it but i still have the same issue:
              Keep in mind, what you must recreate configuration script and reconfigure sources.

              After software configuration, line with "HAVE___VA_ARGS__" must be comented in "include/config.h"

              P.S.
              to recreate configuration script, type:
              Code:
              > aclocal -I m4
              > autoconf
              > autoheader
              > automake

              Comment

              • ghislain
                Senior Member
                • Jun 2005
                • 160

                #8
                Code:
                   102  15:25   rm -Rf zabbix-1.4.2
                   103  15:25   tar -zxf zabbix-1.4.2.tar.gz
                   104  15:25   cd zabbix-1.4.2
                   105  15:26   patch < ../patch.txt
                   107  15:26   aclocal14 -I m4
                   108  15:26   autoconf
                   109  15:26   autoconf259
                   112  15:26   autoheader259
                   113  15:26   automake14
                result:

                Code:
                Hmm...  Looks like a unified diff to me...
                The text leading up to this was:
                --------------------------
                |Index: configure.in
                |===================================================================
                |--- configure.in       (revision 4639)
                |+++ configure.in       (working copy)
                --------------------------
                Patching file configure.in using Plan A...
                Hunk #1 succeeded at 435.
                done
                
                ...
                
                (aqadmin)> automake14
                automake: configure.in: required file `./mkinstalldirs' not found
                automake: src/libs/zbxsysinfo/Makefile.am: not supported: source file `@ARCH@/@[email protected]' is in subdirectory
                src/zabbix_server/Makefile.am:29: invalid unused variable name: `JABBER_LDADD'
                
                ...
                
                (aqadmin)> ./configure --enable-agent --disable-server --enable-static
                ...snip...
                checking for atoll... no
                checking for getopt_long... no
                ./configure: line 7792: syntax error near unexpected token `IKSEMEL,iksemel,'
                ./configure: line 7792: `               PKG_CHECK_MODULES(IKSEMEL,iksemel,'
                
                (aqadmin)> grep 'HAVE___VA_ARGS__' include/config.h
                /* #define HAVE___VA_ARGS__ 1 */
                i am not a dev so i done the way i was thinking it would have to be done to work. The 1.4.1 works but even with the patch the 1.4.2 does not compile.
                Regards,
                Ghislain.

                Comment

                • Eugene
                  Member
                  • Feb 2006
                  • 57

                  #9
                  you can use this script.

                  Usage:
                  a) place script 'recreate', 'zabbix-1.4.2.tar.gz' and vaargs.patch in to the one folder
                  b) run 'recreate' script and you must see 'SUCCEED' finaly message
                  c) go to the 'zabbix-1.4.2', configure and compile
                  Attached Files

                  Comment

                  • ghislain
                    Senior Member
                    • Jun 2005
                    • 160

                    #10
                    sh ./recreat core1:/usr/local/.aqadmin/home%(root)> sh ./recreate.sh
                    1. Cleaning...
                    2. Untaring...
                    3. Patching...
                    Hmm... Looks like a unified diff to me...
                    The text leading up to this was:
                    --------------------------
                    |Index: configure.in
                    |================================================= ==================
                    |--- configure.in (revision 4639)
                    |+++ configure.in (working copy)
                    --------------------------
                    Patching file configure.in using Plan A...
                    Hunk #1 succeeded at 435.
                    done
                    4. Pre-making...
                    a) aclocal14
                    b) autoconf259
                    c) autoheader259
                    d) automake14
                    automake: configure.in: installing `./mkinstalldirs'
                    automake: src/libs/zbxsysinfo/Makefile.am: not supported: source file `@ARCH@/@[email protected]' is in subdirectory
                    src/zabbix_server/Makefile.am:29: invalid unused variable name: `JABBER_LDADD'
                    FAIL



                    it fails
                    ps: i had to change the binary name as they are nammed this way on my freebsd box.
                    Regards,
                    Ghislain.

                    Comment

                    • Eugene
                      Member
                      • Feb 2006
                      • 57

                      #11
                      Originally posted by ghislain
                      it fails
                      ps: i had to change the binary name as they are nammed this way on my freebsd box.
                      oh no... you'e have old version of automake...

                      So, in this case, you can try this path directly for configuration script.

                      P.S. this is a temporaly solution
                      Attached Files

                      Comment

                      • ghislain
                        Senior Member
                        • Jun 2005
                        • 160

                        #12
                        it still does not compile

                        Code:
                         (root)> make
                        Making all in create
                        Making all in schema
                        Making all in misc
                        Making all in src
                        Making all in libs
                        Making all in zbxcrypto
                        Making all in zbxcommon
                        Making all in zbxlog
                        source='log.c' object='log.o' libtool=no  DEPDIR=.deps depmode=gcc /usr/local/bin/bash ../../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../../../include      -g -O2 -c log.c
                        log.c: In function `zabbix_open_log':
                        log.c:121: syntax error before `;'
                        log.c:127: syntax error before `;'
                        *** Error code 1
                        
                        Stop in /usr/local/.aqadmin/home/zabbix-1.4.2/src/libs/zbxlog.
                        *** Error code 1

                        note i had not the same error as the AIX user. so perhaps this is not the same issue.
                        Regards,
                        Ghislain.

                        Comment

                        • bee
                          Senior Member
                          • Jun 2007
                          • 133

                          #13
                          Originally posted by Eugene
                          P.S.
                          to recreate configuration script, type:
                          Code:
                          > aclocal -I m4
                          > autoconf
                          > autoheader
                          > automake
                          Hi Eugene,
                          Mine stop on:
                          a) aclocal
                          aclocal: not found
                          FAIL

                          Please advice, seem my box doesn't have aclocal binary. I don't have idea what aclocal is. And if you don't mind hope you can explain it to me and describe how to get it?
                          Sorry if this question is not more like unix essential, but i'll appreciate it.
                          Thanks,
                          BEE

                          Comment

                          • bee
                            Senior Member
                            • Jun 2007
                            • 133

                            #14
                            Originally posted by Alexei
                            It seems your GCC is broken, really. Try to use a different version of the compiler.
                            Hi Alexei,
                            What is your recomendation of GCC version for better zabbix compilation?
                            Please advice.
                            Thanks,
                            BEE

                            Comment

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

                              #15
                              I made a workaround yesterday. Please try to use the latest 1.4.x code from www.zabbix.com/developers.php.
                              Alexei Vladishev
                              Creator of Zabbix, Product manager
                              New York | Tokyo | Riga
                              My Twitter

                              Comment

                              Working...