Ad Widget

Collapse

Compile error Zabbix 1.4.2 (pthread_self)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qix
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2006
    • 423

    #1

    Compile error Zabbix 1.4.2 (pthread_self)

    Hello all,

    I'm running into a comple error.
    Anybody tackled this before?

    Code:
    /usr/lib/libmysqlclient.a(yassl_int.o): In function `yaSSL::yassl_int_cpp_local2::GetSelf()':
    (.text+0x1ae3): undefined reference to `pthread_self'
    /usr/lib/libgssapi_krb5.a(rel_cred.o): In function `krb5_gss_release_cred':
    (.text+0x284): undefined reference to `pthread_self'
    /usr/lib/libgssapi_krb5.a(rel_cred.o): In function `krb5_gss_release_cred':
    (.text+0x2c7): undefined reference to `pthread_self'
    /usr/lib/libgssapi_krb5.a(rel_cred.o): In function `krb5_gss_release_cred':
    (.text+0x32a): undefined reference to `pthread_self'
    /usr/lib/libgssapi_krb5.a(gss_libinit.o): In function `gssint_lib_fini':
    (.text+0x3b9): undefined reference to `pthread_self'
    /usr/lib/libgssapi_krb5.a(gss_libinit.o):(.text+0x3d5): more undefined references to `pthread_self' follow
    collect2: ld returned 1 exit status
    make[3]: *** [zabbix_server] Error 1
    make[3]: Leaving directory `/usr/src/zabbix/zabbix-1.4.2/src/zabbix_server'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/usr/src/zabbix/zabbix-1.4.2/src/zabbix_server'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/usr/src/zabbix/zabbix-1.4.2/src'
    make: *** [install-recursive] Error 1
    I'm running Debian 4.0.
    Config runs without a hitch with the following params:
    Code:
    ./configure --enable-agent --enable-server --with-mysql --with-net-snmp --with-libcurl --enable-static --prefix=/opt/zabbix/zabbix-1.4.2/
    Any hints greatly appreciated!
    With kind regards,

    Raymond
  • qix
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2006
    • 423

    #2
    with a

    Code:
    ./configure --enable-agent --enable-static --prefix=/opt/zabbix/zabbix-1.4.2/
    The agent compiles just fine, although I haven't tested it yet.
    So the problem seems to be in the server.
    Last edited by qix; 22-10-2007, 15:09.
    With kind regards,

    Raymond

    Comment

    • qix
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2006
      • 423

      #3
      Code:
      ./configure --enable-server --with-mysql --with-snmp --with-libcurl --prefix=/opt/zabbix/zabbix-1.4.2/
      Compiles just fine as well.

      So it drills down to the Zabbix server in combination with '--enable-static'.

      Any solutions to this problem?

      I would like to be able to compile the code on my test system and than just copy the bins to my production servers.
      With kind regards,

      Raymond

      Comment

      • Niels
        Senior Member
        • May 2007
        • 239

        #4
        Did you solve this?

        I have a similar problem with 1.4/r5006:
        Code:
        /usr/lib/libmysqlclient.a(yassl_int.o): In function `yaSSL::yassl_int_cpp_local2::GetSelf()':
        (.text+0x1ae3): undefined reference to `pthread_self'
        /usr/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress':
        (.text+0x61): undefined reference to `uncompress'
        /usr/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
        (.text+0x10e): undefined reference to `compress'
        collect2: ld returned 1 exit status
        make[3]: *** [zabbix_server] Error 1
        make[3]: Leaving directory `/root/zabbix-1.4/src/zabbix_server'
        make[2]: *** [all-recursive] Error 1
        make[2]: Leaving directory `/root/zabbix-1.4/src/zabbix_server'
        make[1]: *** [all-recursive] Error 1
        make[1]: Leaving directory `/root/zabbix-1.4/src'
        make: *** [all-recursive] Error 1

        Comment

        • qix
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2006
          • 423

          #5
          Unfortunately, I have not.
          I still need to compile Zabbix on every server individually, with off course leaves a lot of room for errors when upgrading....
          Also, I don't know why Zabbix would need the Kerberos libraries, so it seems like I should not need to run into this error.

          I have no clue to what the error means, so I was kinda hoping Alexei or one of the other developers might know more about this.
          With kind regards,

          Raymond

          Comment

          • Niels
            Senior Member
            • May 2007
            • 239

            #6
            I'm sure Alexei knows what to do -- we just need to get his attention!

            I'll make a bugreport later today if nothing further happens. I'll google for similar errors.

            Edit: ZBX-177
            Last edited by Niels; 19-11-2007, 11:59.

            Comment

            • qix
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2006
              • 423

              #7
              Tried it with 1.4.4, no change.
              With kind regards,

              Raymond

              Comment

              Working...