On 16/08/2018 14:36, Radosław Korzeniewski wrote:

Hello,

2018-08-16 14:14 GMT+02:00 Radosław Korzeniewski <rados...@korzeniewski.net <mailto:rados...@korzeniewski.net>>:

    Hello,

    2018-08-15 22:25 GMT+02:00 Adolf Belka <adolf.be...@gmail.com
    <mailto:adolf.be...@gmail.com>>:

        Hi Kern,

        Just tried to install 9.2.1 and got an error during the make
        stage. Any idea what the problem might be?

        make[1]: Entering directory `/home/source/bacula-9.2.1/src/filed'
        Compiling filed.c
        Compiling authenticate.c
        Compiling backup.c
        Compiling crypto.c
        Compiling win_efs.c
        Compiling estimate.c
        Compiling fd_plugins.c
        Compiling accurate.c
        Compiling filed_conf.c
        Compiling heartbeat.c
        Compiling hello.c
        Compiling job.c
        Compiling fd_snapshot.c
        Compiling restore.c
        Compiling status.c
        Compiling verify.c
        Compiling verify_vol.c
        Compiling bacl.c
        Compiling bacl_linux.c
        Compiling bxattr.c
        Compiling bxattr_linux.c
        Linking bacula-fd ...
        /home/source/bacula-9.2.1/libtool --silent --tag=CXX
        --mode=link /usr/bin/g++   -L../lib -L../findlib -o bacula-fd
        filed.o authenticate.o backup.o crypto.o win_efs.o estimate.o
        fd_plugins.o accurate.o filed_conf.o heartbeat.o hello.o job.o
        fd_snapshot.o restore.o status.o verify.o verify_vol.o bacl.o
        bacl_linux.o bxattr.o bxattr_linux.o \
               -lacl            -lz -lbacfind -lbaccfg -lbac -lm
        -lpthread -ldl -ldl \
                    -llzo2
        /home/source/bacula-9.2.1/src/lib/.libs/libbac.so: undefined
        reference to `tls_bsock_shutdown(BSOCKCORE*)'
        collect2: error: ld returned 1 exit status
        make[1]: *** [bacula-fd] Error 1
        make[1]: Leaving directory `/home/source/bacula-9.2.1/src/filed'

    The tls_bsock_shutdown() is a part of libbac.so so if libbac build
    was successful it has to be there:

    $ objdump -x libbac.so |grep tls_bsock_shutdown
    00000000000484f0 g     F .text00000000000000a0            
    _Z18tls_bsock_shutdownP9BSOCKCORE

    Could you run a standard: make clean && make all? And check if
    your libbac.so build has a tls_bsock_shutdown() function like above?

    Thanks.


Could you check if it will compile with the following patch:

diff --git a/bacula/src/lib/tls.c b/bacula/src/lib/tls.c
index f607533bb..7d25ea354 100644
--- a/bacula/src/lib/tls.c
+++ b/bacula/src/lib/tls.c
@@ -751,7 +751,7 @@ TLS_CONTEXT *new_tls_context(const char *ca_certfile, const char *ca_certdir,
 }
 void free_tls_context(TLS_CONTEXT *ctx) { }

-void tls_bsock_shutdown(BSOCK *bsock) { }
+void tls_bsock_shutdown(BSOCKCORE *bsock) { }

 void free_tls_connection(TLS_CONNECTION *tls) { }

best regards
--
Radosław Korzeniewski
rados...@korzeniewski.net <mailto:rados...@korzeniewski.net>


Hi Radoslaw,

I did the patch and now the make works fine using --without-ssl in the confi9gure. Have done the make install and restarted the daemons and everything is running.

Thanks very much for your help on this.

Best regards,

Adolf Belka

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to