Ad Widget

Collapse

Problem with compilation zabbix agent 2.0.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • birgof
    Junior Member
    • Nov 2012
    • 3

    #1

    Problem with compilation zabbix agent 2.0.3

    Hi for everybody,

    please anybody who know how to solve this problem. I tried to compile new version of Zabbix 2.0.3 (server, agent, etc), everything worked fine ./configure worked well. Only to the time when i have to compile agent. I gave this error:

    Code:
    /usr/kerberos/lib64/librt.a(clock_gettime.o): In function `clock_gettime':
    (.text+0x197): undefined reference to `_dl_cpuclock_offset'
    collect2: ld returned 1 exit status
    make[2]: *** [zabbix_agent] Error 1
    make[2]: Leaving directory `/root/zabbix20/zabbix-2.0.3/src/zabbix_agent'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/root/zabbix20/zabbix-2.0.3/src'
    make: *** [all-recursive] Error 1
    server linux CentOS 5.8
    kernel 2.6.18-308.1.1.el5 #1 SMP Wed Mar 7 04:16:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

    I run on this server previous versions of Zabbix from 1.6 to last 1.8.10.

    Thanks for answers and regards, Petr
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    What does your full configure command look like (with all parameters)?

    Comment

    • birgof
      Junior Member
      • Nov 2012
      • 3

      #3
      Originally posted by heaje
      What does your full configure command look like (with all parameters)?
      Here's my configure command, w/o problems.

      Code:
      ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl
      it ends with

      Code:
      ***********************************************************
      *            Now run 'make install'                       *
      *                                                         *
      *            Thank you for using Zabbix!                  *
      *              <http://www.zabbix.com>                    *
      ***********************************************************

      Comment

      • heaje
        Senior Member
        Zabbix Certified Specialist
        • Sep 2009
        • 325

        #4
        Only to the time when i have to compile agent.
        ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl
        The configure command you gave does more than compile the agent. It compiles the server binary as well. The first approach I would take is to start shortening your configure command. Find out the exact compile option that is causing the issue. That would at least give you a place to start on where to look for the problem.

        Since the error is happening in a kerberos library, I would assume the problem occurs during the server binary compilation. First place I would start there is to make sure you're server is 100% updated using "yum update".

        If that doesn't resolve it, I would start looking into which package on your server provides the librt.a library. See if you can find a different version (newer or older) that you can install that works fine on your system.

        Comment

        • birgof
          Junior Member
          • Nov 2012
          • 3

          #5
          You were right, i tried to start a short configure command and the problem parameter is

          Code:
          --with-libcurl
          My server have last updates from CentOS mirrors and i think it isn't a right problem. But thanks for hint about librt.a library, it could be a problem. I try to find another version, and then i hope so, that it will be more succesfull.

          Thanks and regards

          Comment

          Working...