Ad Widget

Collapse

configure and make errors(help needed)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jayshankar
    Member
    • Apr 2017
    • 31

    #1

    configure and make errors(help needed)

    Hi,

    I merged source code changes of 3.4.1 to 3.2 to make 3.2 upgraded to 3.4.1, Then i run
    1>./configure --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2

    The above command goes through fine.

    2>make fails with error
    ./configure: line 10288: syntax error near unexpected token `no'
    ./configure: line 10288: ` LIBEVENT_CHECK_CONFIG(no)'

    Thanks,
    Jayshankar
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please try install libevent libraries for development.
    That package name are libevent and libevent-devel on RHEL.

    libevent - an asynchronous event library
    Download libevent - an asynchronous event library for free. Libevent is hosted at https://github.com/libevent/libevent . Go there instead of here.

    Comment

    • Jayshankar
      Member
      • Apr 2017
      • 31

      #3
      configure and make errors(help needed)

      The libevent library is already installed.

      checking size of void *... 8
      ./configure: line 10288: syntax error near unexpected token `no'
      ./configure: line 10288: ` LIBEVENT_CHECK_CONFIG(no)'

      libevent-doc-2.0.22-1.fc25.noarch
      dmraid-events-1.0.0.rc16-30.fc24.x86_64
      device-mapper-event-1.02.136-3.fc25.x86_64
      libevent-devel-2.0.22-1.fc25.x86_64
      libtevent-0.9.31-1.fc25.x86_64
      device-mapper-event-libs-1.02.136-3.fc25.x86_64
      libevent-2.0.22-1.fc25.x86_64.

      I also tried commenting out line 10288 and then run configure. But still i get errors.
      checking size of void *... 8
      ./configure: line 10302: syntax error near unexpected token `no'
      ./configure: line 10302: `LIBPCRE_CHECK_CONFIG(no)'

      pcre-utf16-8.41-1.fc25.x86_64
      pcre2-10.23-9.fc25.x86_64
      pcre-static-8.41-1.fc25.x86_64
      pcre2-utf32-10.23-9.fc25.x86_64
      pcre2-static-10.23-9.fc25.x86_64
      pcre-devel-8.41-1.fc25.x86_64
      pcre-utf32-8.41-1.fc25.x86_64
      pcre2-devel-10.23-9.fc25.x86_64
      pcre-doc-8.41-1.fc25.noarch
      pcre-cpp-8.41-1.fc25.x86_64
      pcre2-tools-10.23-9.fc25.x86_64
      pcre-tools-8.41-1.fc25.x86_64
      pcre-8.41-1.fc25.x86_64
      pcre2-utf16-10.23-9.fc25.x86_64

      Thanks
      Jayshankar

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        I tried it with a standard package configuration Zabbix 3.4.2 on fc25.

        Preparing necessary packages:
        Some packages for building rpm is also included.
        Code:
        # dnf groupinstall "Development Tools"
        # dnf install rpm-build
        # dnf install  OpenIPMI-devel curl-devel gnutls-devel iksemel-devel java-devel libevent-devel libssh2-devel libxml2-devel mysql-devel net-snmp-devel openldap-devel pcre-devel postgresql-devel sqlite-devel unixODBC-devel
        Run configure:
        Code:
        $ ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
        No error was output.

        Comment

        • Jayshankar
          Member
          • Apr 2017
          • 31

          #5
          configure and make errors(help needed)

          I have merged 3.4.1 changes to 3.2 source code tree. I am still getting errors in
          ./configure.


          make fails with error
          ./configure: line 10288: syntax error near unexpected token `no'
          ./configure: line 10288: ` LIBEVENT_CHECK_CONFIG(no)'

          What to do next.

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #6
            I do not know what you merged and what you did.
            The merged content may be insufficient.

            Please check again whether merge is completed including not only C source but also configure related files.

            Comment

            • jan.garaj
              Senior Member
              Zabbix Certified Specialist
              • Jan 2010
              • 506

              #7
              Why did you merge 3.4 branch? I guess it's safer to checkout/export 3.4 branch unless you have your own Zabbix code customization.

              Also, try to check configure log for more details.
              Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
              My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

              Comment

              • Jayshankar
                Member
                • Apr 2017
                • 31

                #8
                configure and make errors(help needed)

                i have created a svn tree for 3.2 zabbix source code. I have to check in 3.4 source code into the same tree. While merging i get these problems. I am not much familiar with configure script.

                Can i get external help who can look into this problem

                Comment

                • Atsushi
                  Senior Member
                  • Aug 2013
                  • 2028

                  #9
                  If you checked out from official Subversion, I think that you need to execute the following command first.

                  Code:
                  $ ./bootstrap.sh
                  Wiki:
                  Join the friendly and open Zabbix community on our forums and social media platforms.


                  Also, it should have been installed, please check whether the pkgconfig package is installed.

                  Comment

                  • Jayshankar
                    Member
                    • Apr 2017
                    • 31

                    #10
                    configure and make errors(help needed)

                    Its not the official subversion. Its local svn tree. The source code version is 3.2.1. It needs to be upgraded to 3.4.1. I need to show the scripts to one who maintains the configure script.

                    Comment

                    • Atsushi
                      Senior Member
                      • Aug 2013
                      • 2028

                      #11
                      You can download the tar ball containing the required files from www.zabbix.com.
                      Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!


                      3.4.1 is old and has bugs, I recommend using 3.4.2.


                      Comment

                      Working...