Ad Widget

Collapse

1.3.3 compilation problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PeterN
    Junior Member
    • Feb 2007
    • 24

    #1

    1.3.3 compilation problems

    Hi,
    I am trying to compile 1.3.3
    I have already corrected /src/libs/zbxdb/db.c (adding semicolon at the end of line)
    but now I am getting:
    db.c: In function zbx_db_connect:
    db.c:138: error: CONFIG_DBHOST undeclared (first use in this function)

    Any ideas ?

    My configure options:
    sudo ./configure --enable-agent --enable-server --with-net-snmp --with-pgsql=/var/lib/postgres/ --with-jabber --with-libcurl

    Regards
    Peter
  • vadim
    Junior Member
    • Mar 2007
    • 22

    #2
    Try to insert this string into db.c:
    #include "db.h"
    into the beginning of the file, for example after string
    #include "zbxdb.h"

    If this not help, can you show us end of make's out

    regard,
    vadim
    Last edited by vadim; 05-03-2007, 15:03.

    Comment

    • PeterN
      Junior Member
      • Feb 2007
      • 24

      #3
      That helped (I tried to hardcode '127.0.0.1' before and that helped to)
      but now:

      ../../src/libs/zbxdb/libzbxdb.a(libzbxdb_a-db.o): In function `zbx_db_vselect':
      db.c.text+0xaa): undefined reference to `PQexec'
      db.c.text+0xc6): undefined reference to `PQresultStatus'
      db.c.text+0xd5): undefined reference to `PQntuples'
      db.c.text+0x14f): undefined reference to `PQresultErrorMessage'

      Comment

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

        #4
        Thanks for reporting this. I just re-tested PostgreSQL compile on our test system and I see these problems. Will be fixed soon.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • PeterN
          Junior Member
          • Feb 2007
          • 24

          #5
          Ok, thanks.
          Is there any "quick and dirty" patch that I could apply now to make it compile ?
          Regards
          Peter

          Comment

          • vadim
            Junior Member
            • Mar 2007
            • 22

            #6
            2 PeterN:

            Try to compile once again, do:
            make clean ; make && make install
            thats must help you
            All this works for me

            Regards, Vadim
            Last edited by vadim; 06-03-2007, 07:44.

            Comment

            • PeterN
              Junior Member
              • Feb 2007
              • 24

              #7
              Ok,
              It seams that configure parameters changed between 1.1.6 and 1.3.3.

              This one worked for 1.3.3:
              ./configure --enable-agent --enable-server --with-net-snmp --with-pgsql --with-jabber --with-libcurl

              In 1.1.6 I had to specify path tu postgres libraries by --with-pgsq=/path_to_libraries

              It caused problems with 1.3.3

              Comment

              • vadim
                Junior Member
                • Mar 2007
                • 22

                #8
                to PeterN

                Can you compile agent separately from server in 1.3.3?
                When i try to build agent only building stops in sender directory with:
                no rule to make...

                What do you think about it?

                Comment

                • medic
                  Member
                  • Feb 2007
                  • 58

                  #9
                  had the same "problem", but the agent had already been compiled.
                  It works fine for me, and agent_sender isn't used by any scripts here..

                  Comment

                  • vadim
                    Junior Member
                    • Mar 2007
                    • 22

                    #10
                    Do you have build agent without server?
                    I cant build it both because i have not DB on that host.
                    Which ./configure options you use for it?

                    Comment

                    • PeterN
                      Junior Member
                      • Feb 2007
                      • 24

                      #11
                      Yep,
                      I have the same message.
                      No rule to make target `../libs/zbxcomms/libzbxcomms.a', needed by `zabbix_sender'

                      Comment

                      • medic
                        Member
                        • Feb 2007
                        • 58

                        #12
                        i just used ./configure --enable-agent

                        the agent is "dumb" it doesn't know anything about databases nor Jabber ..

                        Comment

                        • marcele
                          Junior Member
                          • Mar 2007
                          • 5

                          #13
                          Originally posted by PeterN
                          Yep,
                          I have the same message.
                          No rule to make target `../libs/zbxcomms/libzbxcomms.a', needed by `zabbix_sender'
                          I get this error also .. how do you fix it ?

                          Comment

                          • PeterN
                            Junior Member
                            • Feb 2007
                            • 24

                            #14
                            I did not.
                            I just compiled everything.

                            Comment

                            • vadim
                              Junior Member
                              • Mar 2007
                              • 22

                              #15
                              w32agent errors

                              Who can tell me why in version 1.3.3 w32 agent dont start on windows 2000 server?
                              When try commands:
                              zabbix_agentd.exe install
                              zabbix_agentd.exe standalone
                              zabbix_agentd.exe start
                              i see only one:
                              Unable to resolve symbol 'GetPerformanceInfo' and process exits.
                              Who else have same problem?

                              Comment

                              Working...