Ad Widget

Collapse

Compile Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ksmith
    Junior Member
    • Jul 2006
    • 6

    #1

    Compile Error

    I'm getting an error when try to make zabbix 1.1 on Centos 4. As far as I know i have all necessary packages installed (net-snmp, net-snmp-devel, openssl, openssl-devl, etc) but I get this after running make:

    /usr/lib/mysql/libmysqlclient.a(client.o)(.text+0x1515): In function `mysql_close_free_options':
    : undefined reference to `SSL_CTX_free'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x79): In function `vio_ssl_read':
    : undefined reference to `SSL_read'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x9a): In function `vio_ssl_read':
    : undefined reference to `SSL_get_error'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0xce): In function `vio_ssl_write':
    : undefined reference to `SSL_write'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x29f): In function `vio_ssl_close':
    : undefined reference to `SSL_shutdown'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x2af): In function `vio_ssl_close':
    : undefined reference to `SSL_free'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x3e4): In function `sslaccept':
    : undefined reference to `SSL_new'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x446): In function `sslaccept':
    : undefined reference to `SSL_clear'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x454): In function `sslaccept':
    : undefined reference to `SSL_get_session'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x463): In function `sslaccept':
    : undefined reference to `SSL_SESSION_set_timeout'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x477): In function `sslaccept':
    : undefined reference to `SSL_set_fd'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x485): In function `sslaccept':
    : undefined reference to `SSL_set_accept_state'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x493): In function `sslaccept':
    : undefined reference to `SSL_do_handshake'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x4ac): In function `sslaccept':
    : undefined reference to `SSL_free'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x529): In function `sslconnect':
    : undefined reference to `SSL_new'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x585): In function `sslconnect':
    : undefined reference to `SSL_clear'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x593): In function `sslconnect':
    : undefined reference to `SSL_get_session'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5a2): In function `sslconnect':
    : undefined reference to `SSL_SESSION_set_timeout'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5b6): In function `sslconnect':
    : undefined reference to `SSL_set_fd'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5c4): In function `sslconnect':
    : undefined reference to `SSL_set_connect_state'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5d2): In function `sslconnect':
    : undefined reference to `SSL_do_handshake'
    /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5eb): In function `sslconnect':
    : undefined reference to `SSL_free'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0xc6): In function `vio_set_cert_stuff':
    : undefined reference to `SSL_CTX_use_certificate_file'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0xe6): In function `vio_set_cert_stuff':
    : undefined reference to `SSL_CTX_use_PrivateKey_file'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0xf2): In function `vio_set_cert_stuff':
    : undefined reference to `SSL_CTX_check_private_key'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x11d): In function `vio_set_cert_stuff':
    : undefined reference to `SSL_CTX_use_PrivateKey_file'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x2df): In function `new_VioSSLConnectorFd':
    : undefined reference to `TLSv1_client_method'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x2ea): In function `new_VioSSLConnectorFd':
    : undefined reference to `SSL_CTX_new'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x306): In function `new_VioSSLConnectorFd':
    : undefined reference to `SSL_CTX_set_cipher_list'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x320): In function `new_VioSSLConnectorFd':
    : undefined reference to `SSL_CTX_set_verify'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x34d): In function `new_VioSSLConnectorFd':
    : undefined reference to `SSL_CTX_load_verify_locations'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x376): In function `new_VioSSLConnectorFd':
    : undefined reference to `SSL_CTX_ctrl'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x391): In function `new_VioSSLConnectorFd':
    : undefined reference to `SSL_CTX_set_default_verify_paths'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x3b7): In function `new_VioSSLConnectorFd':
    : undefined reference to `SSL_load_error_strings'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x3c8): In function `new_VioSSLConnectorFd':
    : undefined reference to `SSL_library_init'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x422): In function `new_VioSSLAcceptorFd':
    : undefined reference to `TLSv1_server_method'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x42d): In function `new_VioSSLAcceptorFd':
    : undefined reference to `SSL_CTX_new'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x449): In function `new_VioSSLAcceptorFd':
    : undefined reference to `SSL_CTX_set_cipher_list'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x46b): In function `new_VioSSLAcceptorFd':
    : undefined reference to `SSL_CTX_ctrl'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x485): In function `new_VioSSLAcceptorFd':
    : undefined reference to `SSL_CTX_set_verify'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x49e): In function `new_VioSSLAcceptorFd':
    : undefined reference to `SSL_CTX_set_session_id_context'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x4cb): In function `new_VioSSLAcceptorFd':
    : undefined reference to `SSL_CTX_load_verify_locations'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x4f4): In function `new_VioSSLAcceptorFd':
    : undefined reference to `SSL_CTX_ctrl'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x50f): In function `new_VioSSLAcceptorFd':
    : undefined reference to `SSL_CTX_set_default_verify_paths'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x535): In function `new_VioSSLAcceptorFd':
    : undefined reference to `SSL_load_error_strings'
    /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x546): In function `new_VioSSLAcceptorFd':
    : undefined reference to `SSL_library_init'
    /usr/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
    /usr/lib/libnetsnmp.so: undefined reference to `__syslog_chk@GLIBC_2.4'
    collect2: ld returned 1 exit status
    make[3]: *** [zabbix_server] Error 1
    make[3]: Leaving directory `/home/zabbix/zabbix-1.1/src/zabbix_server'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/zabbix/zabbix-1.1/src/zabbix_server'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/zabbix/zabbix-1.1/src'
    make: *** [all-recursive] Error 1

    Maybe an issue with both mysql and net-snmp? Thanks for your help.
  • erisan500
    Senior Member
    Zabbix Certified Specialist
    • Aug 2005
    • 285

    #2
    don't say 'etc', thats not describing what you really installed.

    Do you have mysql-devel installed?
    And i suppose "openssl-devl" is a typo ?

    Greetings
    EriSan
    Zabbix Certified Specialist

    Comment

    • ksmith
      Junior Member
      • Jul 2006
      • 6

      #3
      sorry, yes that is openssl-devel. I've installed the pacakges i listed plus mysql-server, mysql-client, mysql-devel,mysql-shared-standard. Anything else I'm missing?

      Comment

      • erisan500
        Senior Member
        Zabbix Certified Specialist
        • Aug 2005
        • 285

        #4
        Do you really need SSL? Try without first and see if you get that working.

        I never had the need (so far) for SSL, bit will give it a look soon.

        Greetings
        EriSan
        Zabbix Certified Specialist

        Comment

        • ksmith
          Junior Member
          • Jul 2006
          • 6

          #5
          I might later but for now I dont. Id just like to get a working build of Zabbix so I can compare it with Nagios. I never explicitly enabled ssl, how do i build Zabbix without it?

          Comment

          • en8scl
            Junior Member
            • Aug 2006
            • 2

            #6
            I have the same problem

            Anyone know a solution

            I have the same problem, here is a small extract from my errors:

            Code:
            /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x4ac): In function `sslaccept':
            : undefined reference to `SSL_free'
            /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x529): In function `sslconnect':
            : undefined reference to `SSL_new'
            /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x585): In function `sslconnect':
            : undefined reference to `SSL_clear'
            /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x593): In function `sslconnect':
            : undefined reference to `SSL_get_session'
            /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5a2): In function `sslconnect':
            : undefined reference to `SSL_SESSION_set_timeout'
            /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5b6): In function `sslconnect':
            : undefined reference to `SSL_set_fd'
            /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5c4): In function `sslconnect':
            : undefined reference to `SSL_set_connect_state'
            /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5d2): In function `sslconnect':
            : undefined reference to `SSL_do_handshake'
            /usr/lib/mysql/libmysqlclient.a(viossl.o)(.text+0x5eb): In function `sslconnect':
            : undefined reference to `SSL_free'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0xc6): In function `vio_set_cert_stuff':
            : undefined reference to `SSL_CTX_use_certificate_file'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0xe6): In function `vio_set_cert_stuff':
            : undefined reference to `SSL_CTX_use_PrivateKey_file'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0xf2): In function `vio_set_cert_stuff':
            : undefined reference to `SSL_CTX_check_private_key'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x11d): In function `vio_set_cert_stuff':
            : undefined reference to `SSL_CTX_use_PrivateKey_file'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x2df): In function `new_VioSSLConnectorFd':
            : undefined reference to `TLSv1_client_method'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x2ea): In function `new_VioSSLConnectorFd':
            : undefined reference to `SSL_CTX_new'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x306): In function `new_VioSSLConnectorFd':
            : undefined reference to `SSL_CTX_set_cipher_list'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x320): In function `new_VioSSLConnectorFd':
            : undefined reference to `SSL_CTX_set_verify'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x34d): In function `new_VioSSLConnectorFd':
            : undefined reference to `SSL_CTX_load_verify_locations'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x376): In function `new_VioSSLConnectorFd':
            : undefined reference to `SSL_CTX_ctrl'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x391): In function `new_VioSSLConnectorFd':
            : undefined reference to `SSL_CTX_set_default_verify_paths'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x3b7): In function `new_VioSSLConnectorFd':
            : undefined reference to `SSL_load_error_strings'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x3c8): In function `new_VioSSLConnectorFd':
            : undefined reference to `SSL_library_init'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x422): In function `new_VioSSLAcceptorFd':
            : undefined reference to `TLSv1_server_method'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x42d): In function `new_VioSSLAcceptorFd':
            : undefined reference to `SSL_CTX_new'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x449): In function `new_VioSSLAcceptorFd':
            : undefined reference to `SSL_CTX_set_cipher_list'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x46b): In function `new_VioSSLAcceptorFd':
            : undefined reference to `SSL_CTX_ctrl'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x485): In function `new_VioSSLAcceptorFd':
            : undefined reference to `SSL_CTX_set_verify'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x49e): In function `new_VioSSLAcceptorFd':
            : undefined reference to `SSL_CTX_set_session_id_context'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x4cb): In function `new_VioSSLAcceptorFd':
            : undefined reference to `SSL_CTX_load_verify_locations'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x4f4): In function `new_VioSSLAcceptorFd':
            : undefined reference to `SSL_CTX_ctrl'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x50f): In function `new_VioSSLAcceptorFd':
            : undefined reference to `SSL_CTX_set_default_verify_paths'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x535): In function `new_VioSSLAcceptorFd':
            : undefined reference to `SSL_load_error_strings'
            /usr/lib/mysql/libmysqlclient.a(viosslfactories.o)(.text+0x546): In function `new_VioSSLAcceptorFd':
            : undefined reference to `SSL_library_init'
            collect2: ld returned 1 exit status

            Comment

            • myxz
              Junior Member
              • Jun 2006
              • 8

              #7
              I was getting similar error when I was missing SSL header files. SSL is needed for SNMP if I am right. try to skip --with-net-snmp in ./configure statement.

              Comment

              • jojo
                Member
                • Jul 2006
                • 57

                #8
                which arguments are you passing to both ./configure and make?

                are you using --enable-static?

                Comment

                • myxz
                  Junior Member
                  • Jun 2006
                  • 8

                  #9
                  I am passing argments only to ./configure, after that I type "make" and hit enter, thats all, and no I am not using --enable-static.

                  Comment

                  • jojo
                    Member
                    • Jul 2006
                    • 57

                    #10
                    So are you guys still receiving errors or have you managed to fix them?

                    Comment

                    • en8scl
                      Junior Member
                      • Aug 2006
                      • 2

                      #11
                      Still having issue....

                      Hi Still have the same error.

                      I am doing the following:

                      ./configure --enable-server --with-mysql --enable-static

                      and then:

                      make install

                      and getting the error lines I posted above.

                      I too am on Centos 4 (4.2)

                      Regards
                      Last edited by en8scl; 31-08-2006, 00:15.

                      Comment

                      • Reepicheep
                        Junior Member
                        • Jul 2006
                        • 2

                        #12
                        I got this same error with zabbix 1.1.2 on ClarkConnect 4.0. ClarkConnect is based on CentOS.

                        I did get it working though by adding -lssl to the "LIBS =" line in src/zabbix_server/Makefile.

                        Comment

                        • BusteR81
                          Senior Member
                          • Apr 2007
                          • 150

                          #13
                          System OS: CentOS 4
                          installed netsnmp jabber libcurl mysql...all ./configure nicely but failed due to below error when "make install"


                          /usr/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
                          /usr/lib/libnetsnmp.so: undefined reference to `__syslog_chk@GLIBC_2.4'
                          collect2: ld returned 1 exit status
                          make[3]: *** [zabbix_server] Error 1
                          make[3]: Leaving directory `/home/zabbix/zabbix/src/zabbix_server'
                          make[2]: *** [install-recursive] Error 1
                          make[2]: Leaving directory `/home/zabbix/zabbix/src/zabbix_server'
                          make[1]: *** [install-recursive] Error 1
                          make[1]: Leaving directory `/home/zabbix/zabbix/src'
                          make: *** [install-recursive] Error 1

                          Pls help me..thx

                          Comment

                          • BusteR81
                            Senior Member
                            • Apr 2007
                            • 150

                            #14
                            Found solution to glibcs error for libnetsnmp.so

                            with regards to libnetsnmp.so @glibcs error that i posted

                            here is the solution:

                            find / | grep libnetsnmp.so

                            for my case: i located 2 files (libnetsnmp.so) at different locations and 1 of the 2 is linked correctly while the other is not.

                            do a "cp command" with -Rf to replace the "linked" libsnetsnmp.so over the other and..../configure zabbix again...

                            mine went through smoothly. i reckon when i install net-snmp-5.4, it only syslink 1 of the libnetsnmp.so files AND zabbix is looking at the wrong one hence causing the err.

                            Comment

                            Working...