Ad Widget

Collapse

Problem compiling agent on solaris 2.6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KpitaoKverna
    Junior Member
    • Oct 2005
    • 12

    #1

    Problem compiling agent on solaris 2.6

    ERROR -----
    Making all in zabbix_agent
    gcc -g -O2 -o zabbix_agent zabbix_agent.o ../libs/zbxsysinfo/libzbxsysinfo.a ../libs/zbxsysinfo/solaris/libzbxsysinfo2.a ../libs/zbxlog/libzbxlog.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcommon/libzbxcommon.a -lkvm -lnsl -lkstat -lsocket -lresolv
    Undefined first referenced
    symbol in file
    getloadavg ../libs/zbxsysinfo/solaris/libzbxsysinfo2.a(cpu.o)
    ld: fatal: Symbol referencing errors. No output written to zabbix_agent
    -------

    Im working hard on this problem, some Undefined symbol errors are solved using -lresolv on the Makefile but still missing some lib for the getloadavg. (I searched for the symbol in the /usr/lib dir but I don't have success)

    Any ideas?

    Thanks in advice
    Felipe Duran
    Last edited by KpitaoKverna; 25-01-2006, 20:00.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    ZABBIX agent compiles fine without any issues on Solaris 8 and 9. You may consider using pre-compiled agents available from www.zabbix.com.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • KpitaoKverna
      Junior Member
      • Oct 2005
      • 12

      #3
      Thanks Alexei.

      Solaris 2.6 dont have libs defining getloadavg, so, this dont work. (Solaris 8 and 9 have this lib, no problem)

      But, I have some equipments that can be solaris 2.6 (For compatibility reasons and warranty)

      Probably I will compile the 1.1alpha11 on my 2.6 (This version work's for me) or find some other trick to solve this problem.

      Any clue, I'll post here.

      Hugs
      Felipe Duran
      Last edited by KpitaoKverna; 26-01-2006, 11:42.

      Comment

      • KpitaoKverna
        Junior Member
        • Oct 2005
        • 12

        #4
        Solved.

        What have to do.

        Copy /usr/lib/libc.a, libc.so and libc.so.1 from a Solaris 9 or 8 instalation to the /usr/lib/libcnew on the Solaris 2.6.

        On the Makefile for the zabbix_agent and agentd include the "-lc /usr/lib/libcnew/libc.a" on the LIBS= section.

        make and enjoy.

        Hugs
        Felipe Duran

        Comment

        • selin
          Junior Member
          • Aug 2005
          • 26

          #5
          Donate Precompiled Solaris 2.6 Agent?

          Originally posted by KpitaoKverna
          Solved.
          Would it be possible for you to compile the agent and reply to this message (or send to Alexei) a copy? We have a Solaris 2.6 server with no development tools installed.

          Comment

          • KpitaoKverna
            Junior Member
            • Oct 2005
            • 12

            #6
            No problem.

            Here is.
            zabbix_1.1beta5_SOL2.6_Sparc.tar.gz

            This file contains the libs and the binaries. (Look, if he calls for libcnew/libc.a tell me and I upload then)
            The file have 2.1M

            Hugs
            Felipe Duran

            PS: Sorry for the low speed of the download, but this is my home server.
            Last edited by KpitaoKverna; 26-01-2006, 22:16.

            Comment

            • bek
              Junior Member
              • Jun 2006
              • 1

              #7
              I am having problems w/ Solaris 2.6 as well. I can get zabbix_agentd to stablize if I use the above method and not do a load average check.

              occasionally I see a mesasge for /proc/loadavg not found.

              Also, just something to note, that the zabbix_agentd.log ends up getting owned by root and isn't able to to update unless I do a chown zabbix zabbix* in my tmp dir so it can write log files.

              I am using Zabbix 1.1...

              Any help appreciated.
              -Brian

              Comment

              • euroscott
                Junior Member
                • Feb 2007
                • 2

                #8
                problem with solaris 6

                I followed the procedure with
                Copy /usr/lib/libc.a, libc.so and libc.so.1 from a Solaris 9 or 8 instalation to the /usr/lib/libcnew on the Solaris 2.6.

                On the Makefile for the zabbix_agent and agentd include the "-lc /usr/lib/libcnew/libc.a" on the LIBS= section.

                When I started the zabbix_agentd , process started and down after

                003191:20070208:112132 zabbix_agentd started. ZABBIX 1.1.5.
                003192:20070208:112132 zabbix_agentd 3192 started
                003193:20070208:112132 zabbix_agentd 3193 started
                003194:20070208:112132 zabbix_agentd 3194 started
                003195:20070208:112132 zabbix_agentd 3195 started
                003196:20070208:112132 zabbix_agentd 3196 started
                003191:20070208:112200 One child process died. Exiting ...
                003193:20070208:112200 Got signal. Exiting ...
                003194:20070208:112200 Got signal. Exiting ...
                003195:20070208:112200 Got signal. Exiting ...
                003196:20070208:112200 Got signal. Exiting ...


                Someone help me ?

                thanks

                Comment

                Working...