When I run make everything is OK except I get an error compiling stored. My configure options are: CFLAGS="-g -Wall" \ ./configure \ --sbindir=/opt/bacula/bin \ --sysconfdir=/opt/bacula \ --with-scriptdir=/opt/bacula/scripts \ --with-pid-dir=/var/run \ --with-subsys-dir=/var/lock/subsys \ --enable-smartalloc \ --enable-gnome \ --enable-static-tools \ --with-mysql \ --with-working-dir=/opt/bacula/working \ [EMAIL PROTECTED] \ [EMAIL PROTECTED] \ --with-smtp-host=localhost
When I run make here are the errors. /usr/bin/g++ -static -L../lib -L../cats -L../findlib -o bscan bscan.o block.o device.o dev.o label.o ansi_label.o dv d.o ebcdic.o lock.o autochanger.o acquire.o mount.o record.o match_bsr.o parse_bsr.o butil.o read_record.o scan.o res erve.o stored_conf.o spool.o wait.o \ -lsql -L/usr/lib/mysql -lmysqlclient_r -lz -lacl -lz -lfind -lbac -lm -lpthread ../lib/libbac.a(bsys.o)(.text+0x115d): In function `drop(char*, char*)': /opt/bacula-2.2.6/src/lib/bsys.c:694: warning: Using 'initgroups' in statically linked applications requires at runti me the shared libraries from the glibc version used for linking ../lib/libbac.a(guid_to_name.o)(.text+0x2ca): In function `get_gidname': /opt/bacula-2.2.6/src/lib/guid_to_name.c:122: warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ../lib/libbac.a(bsys.o)(.text+0x10d3): In function `drop(char*, char*)': /opt/bacula-2.2.6/src/lib/bsys.c:687: warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/mysql/libmysqlclient_r.a(mf_pack.o)(.text+0x41e): In function `unpack_dirname': : warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/mysql/libmysqlclient_r.a(libmysql.o)(.text+0x89f): In function `read_user_name': : warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/mysql/libmysqlclient_r.a(mf_pack.o)(.text+0x42e): In function `unpack_dirname': : warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ../lib/libbac.a(bnet.o)(.text+0x5d3): In function `resolv_host': /opt/bacula-2.2.6/src/lib/bnet.c:424: warning: Using 'gethostbyname2' in statically linked applications requires at r untime the shared libraries from the glibc version used for linking /usr/lib/mysql/libmysqlclient_r.a(my_gethostbyname.o)(.text+0x30): In function `my_gethostbyname_r': : warning: Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from th e glibc version used for linking /usr/lib/mysql/libmysqlclient_r.a(libmysql.o)(.text+0x97): In function `mysql_server_init': : warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/mysql/libmysqlclient_r.a(client.o)(.text+0x125f): In function `mysql_get_ssl_cipher': : undefined reference to `SSL_get_current_cipher' /usr/lib/mysql/libmysqlclient_r.a(client.o)(.text+0x17ac): In function `mysql_close_free_options': : undefined reference to `SSL_CTX_free' /usr/lib/mysql/libmysqlclient_r.a(client.o)(.text+0x2ab7): In function `mysql_real_connect': : undefined reference to `SSL_get_peer_certificate' /usr/lib/mysql/libmysqlclient_r.a(client.o)(.text+0x2ac5): In function `mysql_real_connect': : undefined reference to `X509_get_subject_name' /usr/lib/mysql/libmysqlclient_r.a(client.o)(.text+0x2adf): In function `mysql_real_connect': : undefined reference to `X509_NAME_oneline' /usr/lib/mysql/libmysqlclient_r.a(client.o)(.text+0x2ae7): In function `mysql_real_connect': : undefined reference to `X509_free' /usr/lib/mysql/libmysqlclient_r.a(client.o)(.text+0x1268): In function `mysql_get_ssl_cipher': : undefined reference to `SSL_CIPHER_get_name' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x25): In function `report_errors': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x80): In function `vio_ssl_close': : undefined reference to `SSL_set_quiet_shutdown' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x88): In function `vio_ssl_close': : undefined reference to `SSL_shutdown' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0xcf): In function `vio_ssl_delete': : undefined reference to `SSL_free' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x157): In function `sslaccept': : undefined reference to `SSL_new' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x16b): In function `sslaccept': : undefined reference to `SSL_clear' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x173): In function `sslaccept': : undefined reference to `SSL_get_session' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x182): In function `sslaccept': : undefined reference to `SSL_SESSION_set_timeout' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x190): In function `sslaccept': : undefined reference to `SSL_set_fd' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x198): In function `sslaccept': : undefined reference to `SSL_accept' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x206): In function `sslaccept': : undefined reference to `SSL_free' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x279): In function `sslconnect': : undefined reference to `SSL_new' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x28d): In function `sslconnect': : undefined reference to `SSL_clear' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x295): In function `sslconnect': : undefined reference to `SSL_get_session' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x2a4): In function `sslconnect': : undefined reference to `SSL_SESSION_set_timeout' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x2b2): In function `sslconnect': : undefined reference to `SSL_set_fd' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x2ba): In function `sslconnect': : undefined reference to `SSL_connect' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x328): In function `sslconnect': : undefined reference to `SSL_free' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x46): In function `vio_ssl_read': : undefined reference to `SSL_read' /usr/lib/mysql/libmysqlclient_r.a(viossl.o)(.text+0x5b): In function `vio_ssl_write': : undefined reference to `SSL_write' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x25): In function `report_errors': : undefined reference to `ERR_get_error_line_data' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x51): In function `vio_verify_callback': : undefined reference to `X509_STORE_CTX_get_current_cert' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x59): In function `vio_verify_callback': : undefined reference to `X509_get_subject_name' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x6d): In function `vio_verify_callback': : undefined reference to `X509_NAME_oneline' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x8c): In function `vio_verify_callback': : undefined reference to `X509_STORE_CTX_get_error' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x94): In function `vio_verify_callback': : undefined reference to `X509_STORE_CTX_get_error_depth' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0xaf): In function `vio_verify_callback': : undefined reference to `X509_get_issuer_name' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0xc3): In function `vio_verify_callback': : undefined reference to `X509_NAME_oneline' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x126): In function `new_VioSSLFd': : undefined reference to `SSL_CTX_new' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x142): In function `new_VioSSLFd': : undefined reference to `SSL_CTX_set_cipher_list' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x162): In function `new_VioSSLFd': : undefined reference to `SSL_CTX_load_verify_locations' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x18a): In function `new_VioSSLFd': : undefined reference to `SSL_CTX_use_certificate_file' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x1ae): In function `new_VioSSLFd': : undefined reference to `SSL_CTX_use_PrivateKey_file' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x1be): In function `new_VioSSLFd': : undefined reference to `SSL_CTX_check_private_key' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x1cb): In function `new_VioSSLFd': : undefined reference to `DH_new' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x1ed): In function `new_VioSSLFd': : undefined reference to `BN_bin2bn' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x20c): In function `new_VioSSLFd': : undefined reference to `BN_bin2bn' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x222): In function `new_VioSSLFd': : undefined reference to `DH_free' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x242): In function `new_VioSSLFd': : undefined reference to `SSL_CTX_ctrl' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x24a): In function `new_VioSSLFd': : undefined reference to `DH_free' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x289): In function `new_VioSSLFd': : undefined reference to `SSL_CTX_free' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x2a7): In function `new_VioSSLFd': : undefined reference to `SSL_load_error_strings' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x2b8): In function `new_VioSSLFd': : undefined reference to `SSL_library_init' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x2bd): In function `new_VioSSLFd': : undefined reference to `OPENSSL_add_all_algorithms_noconf' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x2cc): In function `new_VioSSLFd': : undefined reference to `SSL_CTX_set_default_verify_paths' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x344): In function `new_VioSSLConnectorFd': : undefined reference to `TLSv1_client_method' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x37f): In function `new_VioSSLConnectorFd': : undefined reference to `SSL_CTX_set_verify' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x395): In function `new_VioSSLAcceptorFd': : undefined reference to `TLSv1_server_method' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x3e2): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_ctrl' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x3fc): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_set_verify' /usr/lib/mysql/libmysqlclient_r.a(viosslfactories.o)(.text+0x412): In function `new_VioSSLAcceptorFd': : undefined reference to `SSL_CTX_set_session_id_context' collect2: ld returned 1 exit status make[1]: *** [bscan] Error 1 make[1]: Leaving directory `/opt/bacula-2.2.6/src/stored' ====== Error in /opt/bacula-2.2.6/src/stored ====== Any ideas as to why? What am I missing. I am using mysql version 5.0.48 OS is CentOS 4.5 glibc version is 2.3.4 TIA Mike -- View this message in context: http://www.nabble.com/Error-in-compiling-Bacula-2.2.6-tf4889615.html#a13996010 Sent from the Bacula - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users