instalar bacula 7.4.7 no Debian 9

1,037 views
Skip to first unread message

Emanoel Iran

unread,
Jul 4, 2017, 2:43:28 PM7/4/17
to Bacula Backup-Pt-Br
Boa tarde!
Senhores

Estou enfrentando o seguinte ERRO abaixo, peço, ajuda.


VERSÃO DO DEBIAN
root@debian:/usr/src/bacula-7.4.7# cat /etc/debian_version
9.0

ACESSANDO PASTA
cd /usr/src

BAIXANDO O BACULA

FERRAMENTAS NECESSARIAS
apt install -y build-essential libreadline6-dev zlib1g-dev liblzo2-dev mt-st mtx postfix libacl1-dev libssl-dev libmysql++-dev mysql-server

ACESSANDO PASTA
cd /usr/src/bacula*

CONFIGURANDO
./configure --with-readline=/usr/include/readline --disable-conio --bindir=/usr/bin --sbindir=/usr/sbin --with-scriptdir=/usr/bacula/scripts --with-working-dir=/var/lib/bacula/ --with-logdir=/var/log --enable-smartalloc --with-mysql --with-archivedir=/mnt/backup --with-job-email=lbie...@gmail.com --with-hostname=192.168.9.55

INSTALANDO
make -j8 && make install && make install-autostart

ERRO!!!!!
Makefile:183: recipe for target 'crypto.lo' failed
make[1]: *** [crypto.lo] Error 1
make[1]: ** Esperando que outros processos terminem.
make[1]: Leaving directory '/usr/src/bacula-7.4.7/src/lib'


  ====== Error in /usr/src/bacula-7.4.7/src/lib ======


Makefile:148: recipe for target 'all' failed
make: *** [all] Error 1

Jefferson P. S. Emerick

unread,
Jul 4, 2017, 3:38:30 PM7/4/17
to bacula-ba...@googlegroups.com
Boa tarde. tenta instalar esse pacote: libcrypto++-dev

--
Grato,
Jefferson P. S. Emerick

2017-07-04 15:43 GMT-03:00 Emanoel Iran <lbie...@gmail.com>:
Boa tarde!
Senhores

Estou enfrentando o seguinte ERRO abaixo, peço, ajuda.


VERSÃO DO DEBIAN
root@debian:/usr/src/bacula-7.4.7# cat /etc/debian_version
9.0

ACESSANDO PASTA
cd /usr/src

BAIXANDO O BACULA

FERRAMENTAS NECESSARIAS
apt install -y build-essential libreadline6-dev zlib1g-dev liblzo2-dev mt-st mtx postfix libacl1-dev libssl-dev libmysql++-dev mysql-server

ACESSANDO PASTA
cd /usr/src/bacula*

CONFIGURANDO
./configure --with-readline=/usr/include/readline --disable-conio --bindir=/usr/bin --sbindir=/usr/sbin --with-scriptdir=/usr/bacula/scripts --with-working-dir=/var/lib/bacula/ --with-logdir=/var/log --enable-smartalloc --with-mysql --with-archivedir=/mnt/backup --with-job-email=lbie2006@gmail.com --with-hostname=192.168.9.55

INSTALANDO
make -j8 && make install && make install-autostart

ERRO!!!!!
Makefile:183: recipe for target 'crypto.lo' failed
make[1]: *** [crypto.lo] Error 1
make[1]: ** Esperando que outros processos terminem.
make[1]: Leaving directory '/usr/src/bacula-7.4.7/src/lib'


  ====== Error in /usr/src/bacula-7.4.7/src/lib ======


Makefile:148: recipe for target 'all' failed
make: *** [all] Error 1

--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-pt-br+unsub...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-backup-pt-br@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.
Para ver essa discussão na Web, acesse https://groups.google.com/d/msgid/bacula-backup-pt-br/e19916ce-0e6d-4f6a-bdf5-d7cd0dba1376%40googlegroups.com.
Para mais opções, acesse https://groups.google.com/d/optout.

Emanoel Iran

unread,
Jul 4, 2017, 3:49:21 PM7/4/17
to Bacula Backup-Pt-Br
Boa tarde!

INSTALEI
apt install -y libcrypto++-dev

E EXECUTEI
make -j8 && make install && make install-autostart

e continua o erro

root@debian:/usr/src/bacula-7.4.7# make -j8 && make install && make install-autostart
==>Entering directory /usr/src/bacula-7.4.7/src
make[1]: Entering directory '/usr/src/bacula-7.4.7/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/usr/src/bacula-7.4.7/src'
==>Entering directory /usr/src/bacula-7.4.7/scripts
make[1]: Entering directory '/usr/src/bacula-7.4.7/scripts'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/usr/src/bacula-7.4.7/scripts'
==>Entering directory /usr/src/bacula-7.4.7/src/lib
make[1]: Entering directory '/usr/src/bacula-7.4.7/src/lib'
Compiling mem_pool.c
Compiling openssl.c
Compiling message.c
Compiling crypto.c
Compiling plugins.c
Compiling queue.c
Compiling bregex.c
Compiling priv.c
plugins.c: In function 'bool load_plugins(void*, void*, const char*, const char*, bool (*)(Plugin*))':
plugins.c:123:12: warning: 'int readdir_r(DIR*, dirent*, dirent**)' is deprecated [-Wdeprecated-declarations]
       if ((readdir_r(dp, entry, &result) != 0) || (result == NULL)) {
            ^~~~~~~~~
In file included from /usr/include/features.h:364:0,
                 from /usr/include/stdint.h:25,
                 from /usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h:9,
                 from ../bacula.h:61,
                 from plugins.c:25:
/usr/include/dirent.h:189:12: note: declared here
 extern int __REDIRECT (readdir_r,
            ^
plugins.c:123:40: warning: 'int readdir_r(DIR*, dirent*, dirent**)' is deprecated [-Wdeprecated-declarations]
       if ((readdir_r(dp, entry, &result) != 0) || (result == NULL)) {
                                        ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/stdint.h:25,
                 from /usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h:9,
                 from ../bacula.h:61,
                 from plugins.c:25:
/usr/include/dirent.h:189:12: note: declared here
 extern int __REDIRECT (readdir_r,
            ^
openssl.c:140:13: warning: 'void openssl_update_static_mutex(int, int, const char*, int)' defined but not used [-Wunused-function]
 static void openssl_update_static_mutex (int mode, int i, const char *file, int line)
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
openssl.c:125:13: warning: 'void openssl_destroy_dynamic_mutex(CRYPTO_dynlock_value*, const char*, int)' defined but not used [-Wunused-function]
 static void openssl_destroy_dynamic_mutex(struct CRYPTO_dynlock_value *dynlock, const char *file, int line)
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
openssl.c:116:13: warning: 'void openssl_update_dynamic_mutex(int, CRYPTO_dynlock_value*, const char*, int)' defined but not used [-Wunused-function]
 static void openssl_update_dynamic_mutex(int mode, struct CRYPTO_dynlock_value *dynlock, const char *file, int line)
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
openssl.c:101:37: warning: 'CRYPTO_dynlock_value* openssl_create_dynamic_mutex(const char*, int)' defined but not used [-Wunused-function]
 static struct CRYPTO_dynlock_value *openssl_create_dynamic_mutex (const char *file, int line)
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
openssl.c:87:22: warning: 'long unsigned int get_openssl_thread_id()' defined but not used [-Wunused-function]
 static unsigned long get_openssl_thread_id(void)
                      ^~~~~~~~~~~~~~~~~~~~~
crypto.c:196:1: error: expected constructor, destructor, or type conversion before 'IMPLEMENT_STACK_OF'
 IMPLEMENT_STACK_OF(RecipientInfo)
 ^~~~~~~~~~~~~~~~~~
crypto.c:273:15: error: field 'ctx' has incomplete type 'EVP_MD_CTX {aka evp_md_ctx_st}'
    EVP_MD_CTX ctx;
               ^~~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/comp.h:16,
                 from /usr/include/openssl/ssl.h:47,
                 from ../bacula.h:148,
                 from crypto.c:37:
/usr/include/openssl/ossl_typ.h:92:16: note: forward declaration of 'EVP_MD_CTX {aka struct evp_md_ctx_st}'
 typedef struct evp_md_ctx_st EVP_MD_CTX;
                ^~~~~~~~~~~~~
crypto.c:291:19: error: field 'ctx' has incomplete type 'EVP_CIPHER_CTX {aka evp_cipher_ctx_st}'
    EVP_CIPHER_CTX ctx;
                   ^~~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/comp.h:16,
                 from /usr/include/openssl/ssl.h:47,
                 from ../bacula.h:148,
                 from crypto.c:37:
/usr/include/openssl/ossl_typ.h:90:16: note: forward declaration of 'EVP_CIPHER_CTX {aka struct evp_cipher_ctx_st}'
 typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
                ^~~~~~~~~~~~~~~~~
crypto.c: In function 'ASN1_OCTET_STRING* openssl_cert_keyid(X509*)':
crypto.c:332:24: error: invalid use of incomplete type 'X509_EXTENSION {aka struct X509_extension_st}'
    ext_value_data = ext->value->data;
                        ^~
In file included from /usr/include/openssl/ssl.h:50:0,
                 from ../bacula.h:148,
                 from crypto.c:37:
/usr/include/openssl/x509.h:79:16: note: forward declaration of 'X509_EXTENSION {aka struct X509_extension_st}'
 typedef struct X509_extension_st X509_EXTENSION;
                ^~~~~~~~~~~~~~~~~
crypto.c:339:77: error: invalid use of incomplete type 'X509_EXTENSION {aka struct X509_extension_st}'
       keyid = (ASN1_OCTET_STRING *) ASN1_item_d2i(NULL, &ext_value_data, ext->value->length,
                                                                             ^~
In file included from /usr/include/openssl/ssl.h:50:0,
                 from ../bacula.h:148,
                 from crypto.c:37:
/usr/include/openssl/x509.h:79:16: note: forward declaration of 'X509_EXTENSION {aka struct X509_extension_st}'
 typedef struct X509_extension_st X509_EXTENSION;
                ^~~~~~~~~~~~~~~~~
crypto.c:345:75: error: invalid use of incomplete type 'X509_EXTENSION {aka struct X509_extension_st}'
       keyid = (ASN1_OCTET_STRING *) method->d2i(NULL, &ext_value_data, ext->value->length);
                                                                           ^~
In file included from /usr/include/openssl/ssl.h:50:0,
                 from ../bacula.h:148,
                 from crypto.c:37:
/usr/include/openssl/x509.h:79:16: note: forward declaration of 'X509_EXTENSION {aka struct X509_extension_st}'
 typedef struct X509_extension_st X509_EXTENSION;
                ^~~~~~~~~~~~~~~~~
In file included from ../lib/lib.h:28:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
crypto.c: In function 'X509_KEYPAIR* crypto_keypair_new()':
crypto.c:365:56: error: invalid application of 'sizeof' to incomplete type 'X509_KEYPAIR {aka X509_Keypair}'
    keypair = (X509_KEYPAIR *)malloc(sizeof(X509_KEYPAIR));
                                                        ^
../lib/smartall.h:66:55: note: in definition of macro 'malloc'
 #define malloc(x)      sm_malloc(__FILE__, __LINE__, (x))
                                                       ^
crypto.c:368:11: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    keypair->keyid = NULL;
           ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:369:11: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    keypair->pubkey = NULL;
           ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:370:11: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    keypair->privkey = NULL;
           ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c: In function 'X509_KEYPAIR* crypto_keypair_dup(X509_KEYPAIR*)':
crypto.c:393:15: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (keypair->pubkey) {
               ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:394:27: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       CRYPTO_add(&(keypair->pubkey->references), 1, CRYPTO_LOCK_EVP_PKEY);
                           ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:394:53: error: 'CRYPTO_LOCK_EVP_PKEY' was not declared in this scope
       CRYPTO_add(&(keypair->pubkey->references), 1, CRYPTO_LOCK_EVP_PKEY);
                                                     ^~~~~~~~~~~~~~~~~~~~
crypto.c:394:73: error: 'CRYPTO_add' was not declared in this scope
       CRYPTO_add(&(keypair->pubkey->references), 1, CRYPTO_LOCK_EVP_PKEY);
                                                                         ^
crypto.c:395:14: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       newpair->pubkey = keypair->pubkey;
              ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:395:32: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       newpair->pubkey = keypair->pubkey;
                                ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:399:15: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (keypair->privkey) {
               ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:400:27: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       CRYPTO_add(&(keypair->privkey->references), 1, CRYPTO_LOCK_EVP_PKEY);
                           ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:400:54: error: 'CRYPTO_LOCK_EVP_PKEY' was not declared in this scope
       CRYPTO_add(&(keypair->privkey->references), 1, CRYPTO_LOCK_EVP_PKEY);
                                                      ^~~~~~~~~~~~~~~~~~~~
crypto.c:400:74: error: 'CRYPTO_add' was not declared in this scope
       CRYPTO_add(&(keypair->privkey->references), 1, CRYPTO_LOCK_EVP_PKEY);
                                                                          ^
crypto.c:401:14: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       newpair->privkey = keypair->privkey;
              ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:401:33: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       newpair->privkey = keypair->privkey;
                                 ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:405:15: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (keypair->keyid) {
               ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:406:14: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       newpair->keyid = M_ASN1_OCTET_STRING_dup(keypair->keyid);
              ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:406:55: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       newpair->keyid = M_ASN1_OCTET_STRING_dup(keypair->keyid);
                                                       ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:406:62: error: 'M_ASN1_OCTET_STRING_dup' was not declared in this scope
       newpair->keyid = M_ASN1_OCTET_STRING_dup(keypair->keyid);
                                                              ^
crypto.c:407:19: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       if (!newpair->keyid) {
                   ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c: In function 'int crypto_keypair_load_cert(X509_KEYPAIR*, const char*)':
crypto.c:442:17: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (!(keypair->pubkey = X509_get_pubkey(cert))) {
                 ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:448:16: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if ((keypair->keyid = openssl_cert_keyid(cert)) == NULL) {
                ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:455:29: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (EVP_PKEY_type(keypair->pubkey->type) != EVP_PKEY_RSA) {
                             ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
In file included from ../bacula.h:169:0,
                 from crypto.c:37:
crypto.c:457:77: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
              _("Unsupported key type provided: %d\n"), EVP_PKEY_type(keypair->pubkey->type));
                                                                             ^
../baconfig.h:448:93: note: in definition of macro 'Jmsg1'
 #define Jmsg1(jcr, typ, lvl, msg, a1)         j_msg(__FILE__, __LINE__, jcr, typ, lvl, msg, a1)
                                                                                             ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:466:15: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (keypair->pubkey) {
               ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:467:28: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       EVP_PKEY_free(keypair->pubkey);
                            ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c: In function 'int crypto_keypair_load_key(X509_KEYPAIR*, const char*, int (*)(char*, int, const void*), const void*)':
crypto.c:555:11: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    keypair->privkey = PEM_read_bio_PrivateKey(bio, NULL, crypto_pem_callback_dispatch, &ctx);
           ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:557:16: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (!keypair->privkey) {
                ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c: In function 'void crypto_keypair_free(X509_KEYPAIR*)':
crypto.c:570:15: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (keypair->pubkey) {
               ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:571:28: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       EVP_PKEY_free(keypair->pubkey);
                            ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:573:15: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (keypair->privkey) {
               ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:574:28: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       EVP_PKEY_free(keypair->privkey);
                            ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:576:15: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (keypair->keyid) {
               ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:577:39: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       M_ASN1_OCTET_STRING_free(keypair->keyid);
                                       ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:577:46: error: 'M_ASN1_OCTET_STRING_free' was not declared in this scope
       M_ASN1_OCTET_STRING_free(keypair->keyid);
                                              ^
crypto.c: In function 'void crypto_digest_free(DIGEST*)':
crypto.c:675:34: error: 'EVP_MD_CTX_cleanup' was not declared in this scope
   EVP_MD_CTX_cleanup(&digest->ctx);
                                  ^
crypto.c: In function 'crypto_error_t crypto_sign_get_digest(SIGNATURE*, X509_KEYPAIR*, crypto_digest_t&, DIGEST**)':
crypto.c:204:52: error: expected primary-expression before ',' token
 #define sk_SignerInfo_num(st) SKM_sk_num(SignerInfo, (st))
                                                    ^
crypto.c:725:20: note: in expansion of macro 'sk_SignerInfo_num'
    for (i = 0; i < sk_SignerInfo_num(signers); i++) {
                    ^~~~~~~~~~~~~~~~~
crypto.c:204:58: error: 'SKM_sk_num' was not declared in this scope
 #define sk_SignerInfo_num(st) SKM_sk_num(SignerInfo, (st))
                                                          ^
crypto.c:725:20: note: in expansion of macro 'sk_SignerInfo_num'
    for (i = 0; i < sk_SignerInfo_num(signers); i++) {
                    ^~~~~~~~~~~~~~~~~
crypto.c:205:59: error: expected primary-expression before ',' token
 #define sk_SignerInfo_value(st, i) SKM_sk_value(SignerInfo, (st), (i))
                                                           ^
crypto.c:726:12: note: in expansion of macro 'sk_SignerInfo_value'
       si = sk_SignerInfo_value(signers, i);
            ^~~~~~~~~~~~~~~~~~~
crypto.c:205:70: error: 'SKM_sk_value' was not declared in this scope
 #define sk_SignerInfo_value(st, i) SKM_sk_value(SignerInfo, (st), (i))
                                                                      ^
crypto.c:726:12: note: in expansion of macro 'sk_SignerInfo_value'
       si = sk_SignerInfo_value(signers, i);
            ^~~~~~~~~~~~~~~~~~~
crypto.c:727:42: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       if (M_ASN1_OCTET_STRING_cmp(keypair->keyid, si->subjectKeyIdentifier) == 0) {
                                          ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:727:75: error: 'M_ASN1_OCTET_STRING_cmp' was not declared in this scope
       if (M_ASN1_OCTET_STRING_cmp(keypair->keyid, si->subjectKeyIdentifier) == 0) {
                                                                           ^
crypto.c: In function 'crypto_error_t crypto_sign_verify(SIGNATURE*, X509_KEYPAIR*, DIGEST*)':
crypto.c:204:52: error: expected primary-expression before ',' token
 #define sk_SignerInfo_num(st) SKM_sk_num(SignerInfo, (st))
                                                    ^
crypto.c:795:20: note: in expansion of macro 'sk_SignerInfo_num'
    for (i = 0; i < sk_SignerInfo_num(signers); i++) {
                    ^~~~~~~~~~~~~~~~~
crypto.c:204:58: error: 'SKM_sk_num' was not declared in this scope
 #define sk_SignerInfo_num(st) SKM_sk_num(SignerInfo, (st))
                                                          ^
crypto.c:795:20: note: in expansion of macro 'sk_SignerInfo_num'
    for (i = 0; i < sk_SignerInfo_num(signers); i++) {
                    ^~~~~~~~~~~~~~~~~
crypto.c:205:59: error: expected primary-expression before ',' token
 #define sk_SignerInfo_value(st, i) SKM_sk_value(SignerInfo, (st), (i))
                                                           ^
crypto.c:796:12: note: in expansion of macro 'sk_SignerInfo_value'
       si = sk_SignerInfo_value(signers, i);
            ^~~~~~~~~~~~~~~~~~~
crypto.c:205:70: error: 'SKM_sk_value' was not declared in this scope
 #define sk_SignerInfo_value(st, i) SKM_sk_value(SignerInfo, (st), (i))
                                                                      ^
crypto.c:796:12: note: in expansion of macro 'sk_SignerInfo_value'
       si = sk_SignerInfo_value(signers, i);
            ^~~~~~~~~~~~~~~~~~~
crypto.c:797:42: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       if (M_ASN1_OCTET_STRING_cmp(keypair->keyid, si->subjectKeyIdentifier) == 0) {
                                          ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:797:75: error: 'M_ASN1_OCTET_STRING_cmp' was not declared in this scope
       if (M_ASN1_OCTET_STRING_cmp(keypair->keyid, si->subjectKeyIdentifier) == 0) {
                                                                           ^
crypto.c:799:53: error: 'M_ASN1_STRING_length' was not declared in this scope
          sigLen = M_ASN1_STRING_length(si->signature);
                                                     ^
crypto.c:800:52: error: 'M_ASN1_STRING_data' was not declared in this scope
          sigData = M_ASN1_STRING_data(si->signature);
                                                    ^
crypto.c:802:69: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
          ok = EVP_VerifyFinal(&digest->ctx, sigData, sigLen, keypair->pubkey);
                                                                     ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c: In function 'int crypto_sign_add_signer(SIGNATURE*, DIGEST*, X509_KEYPAIR*)':
crypto.c:864:53: error: 'M_ASN1_OCTET_STRING_free' was not declared in this scope
    M_ASN1_OCTET_STRING_free(si->subjectKeyIdentifier);
                                                     ^
crypto.c:865:62: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    si->subjectKeyIdentifier = M_ASN1_OCTET_STRING_dup(keypair->keyid);
                                                              ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:865:69: error: 'M_ASN1_OCTET_STRING_dup' was not declared in this scope
    si->subjectKeyIdentifier = M_ASN1_OCTET_STRING_dup(keypair->keyid);
                                                                     ^
In file included from crypto.c:39:0:
crypto.c:868:32: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    assert(EVP_PKEY_type(keypair->pubkey->type) == EVP_PKEY_RSA);
                                ^
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:873:31: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    len = EVP_PKEY_size(keypair->privkey);
                               ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:875:55: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
    if (!EVP_SignFinal(&digest->ctx, buf, &len, keypair->privkey)) {
                                                       ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:881:56: error: 'M_ASN1_OCTET_STRING_set' was not declared in this scope
    if (!M_ASN1_OCTET_STRING_set(si->signature, buf, len)) {
                                                        ^
crypto.c:208:59: error: expected primary-expression before ',' token
 #define sk_SignerInfo_push(st, val) SKM_sk_push(SignerInfo, (st), (val))
                                                           ^
crypto.c:890:4: note: in expansion of macro 'sk_SignerInfo_push'
    sk_SignerInfo_push(sig->sigData->signerInfo, si);
    ^~~~~~~~~~~~~~~~~~
crypto.c:208:72: error: 'SKM_sk_push' was not declared in this scope
 #define sk_SignerInfo_push(st, val) SKM_sk_push(SignerInfo, (st), (val))
                                                                        ^
crypto.c:890:4: note: in expansion of macro 'sk_SignerInfo_push'
    sk_SignerInfo_push(sig->sigData->signerInfo, si);
    ^~~~~~~~~~~~~~~~~~
crypto.c: In function 'CRYPTO_SESSION* crypto_session_new(crypto_cipher_t, alist*)':
crypto.c:1058:66: error: 'M_ASN1_OCTET_STRING_set' was not declared in this scope
       if (!M_ASN1_OCTET_STRING_set(cs->cryptoData->iv, iv, iv_len)) {
                                                                  ^
crypto.c:1087:56: error: 'M_ASN1_OCTET_STRING_free' was not declared in this scope
       M_ASN1_OCTET_STRING_free(ri->subjectKeyIdentifier);
                                                        ^
crypto.c:1088:65: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       ri->subjectKeyIdentifier = M_ASN1_OCTET_STRING_dup(keypair->keyid);
                                                                 ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:1088:72: error: 'M_ASN1_OCTET_STRING_dup' was not declared in this scope
       ri->subjectKeyIdentifier = M_ASN1_OCTET_STRING_dup(keypair->keyid);
                                                                        ^
In file included from crypto.c:39:0:
crypto.c:1091:21: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       assert(keypair->pubkey && EVP_PKEY_type(keypair->pubkey->type) == EVP_PKEY_RSA);
                     ^
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
In file included from crypto.c:39:0:
crypto.c:1091:54: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       assert(keypair->pubkey && EVP_PKEY_type(keypair->pubkey->type) == EVP_PKEY_RSA);
                                                      ^
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
In file included from ../lib/lib.h:28:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
crypto.c:1095:59: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       ekey = (unsigned char *)malloc(EVP_PKEY_size(keypair->pubkey));
                                                           ^
../lib/smartall.h:66:55: note: in definition of macro 'malloc'
 #define malloc(x)      sm_malloc(__FILE__, __LINE__, (x))
                                                       ^
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:1097:91: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       if ((ekey_len = EVP_PKEY_encrypt(ekey, cs->session_key, cs->session_key_len, keypair->pubkey)) <= 0) {
                                                                                           ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:1106:68: error: 'M_ASN1_OCTET_STRING_set' was not declared in this scope
       if (!M_ASN1_OCTET_STRING_set(ri->encryptedKey, ekey, ekey_len)) {
                                                                    ^
crypto.c:238:65: error: expected primary-expression before ',' token
 #define sk_RecipientInfo_push(st, val) SKM_sk_push(RecipientInfo, (st), (val))
                                                                 ^
crypto.c:1118:7: note: in expansion of macro 'sk_RecipientInfo_push'
       sk_RecipientInfo_push(cs->cryptoData->recipientInfo, ri);
       ^~~~~~~~~~~~~~~~~~~~~
crypto.c:238:78: error: 'SKM_sk_push' was not declared in this scope
 #define sk_RecipientInfo_push(st, val) SKM_sk_push(RecipientInfo, (st), (val))
                                                                              ^
crypto.c:1118:7: note: in expansion of macro 'sk_RecipientInfo_push'
       sk_RecipientInfo_push(cs->cryptoData->recipientInfo, ri);
       ^~~~~~~~~~~~~~~~~~~~~
crypto.c: In function 'crypto_error_t crypto_session_decode(const u_int8_t*, u_int32_t, alist*, CRYPTO_SESSION**)':
crypto.c:1196:18: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
       if (keypair->privkey == NULL) {
                  ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:234:58: error: expected primary-expression before ',' token
 #define sk_RecipientInfo_num(st) SKM_sk_num(RecipientInfo, (st))
                                                          ^
crypto.c:1200:23: note: in expansion of macro 'sk_RecipientInfo_num'
       for (i = 0; i < sk_RecipientInfo_num(recipients); i++) {
                       ^~~~~~~~~~~~~~~~~~~~
crypto.c:234:64: error: 'SKM_sk_num' was not declared in this scope
 #define sk_RecipientInfo_num(st) SKM_sk_num(RecipientInfo, (st))
                                                                ^
crypto.c:1200:23: note: in expansion of macro 'sk_RecipientInfo_num'
       for (i = 0; i < sk_RecipientInfo_num(recipients); i++) {
                       ^~~~~~~~~~~~~~~~~~~~
crypto.c:235:65: error: expected primary-expression before ',' token
 #define sk_RecipientInfo_value(st, i) SKM_sk_value(RecipientInfo, (st), (i))
                                                                 ^
crypto.c:1201:15: note: in expansion of macro 'sk_RecipientInfo_value'
          ri = sk_RecipientInfo_value(recipients, i);
               ^~~~~~~~~~~~~~~~~~~~~~
crypto.c:235:76: error: 'SKM_sk_value' was not declared in this scope
 #define sk_RecipientInfo_value(st, i) SKM_sk_value(RecipientInfo, (st), (i))
                                                                            ^
crypto.c:1201:15: note: in expansion of macro 'sk_RecipientInfo_value'
          ri = sk_RecipientInfo_value(recipients, i);
               ^~~~~~~~~~~~~~~~~~~~~~
crypto.c:1204:45: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
          if (M_ASN1_OCTET_STRING_cmp(keypair->keyid, ri->subjectKeyIdentifier) == 0) {
                                             ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:1204:78: error: 'M_ASN1_OCTET_STRING_cmp' was not declared in this scope
          if (M_ASN1_OCTET_STRING_cmp(keypair->keyid, ri->subjectKeyIdentifier) == 0) {
                                                                              ^
In file included from crypto.c:39:0:
crypto.c:1208:41: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
             assert(EVP_PKEY_type(keypair->privkey->type) == EVP_PKEY_RSA);
                                         ^
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
In file included from ../lib/lib.h:28:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
crypto.c:1219:76: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
             cs->session_key = (unsigned char *)malloc(EVP_PKEY_size(keypair->privkey));
                                                                            ^
../lib/smartall.h:66:55: note: in definition of macro 'malloc'
 #define malloc(x)      sm_malloc(__FILE__, __LINE__, (x))
                                                       ^
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c:1220:104: error: 'M_ASN1_STRING_data' was not declared in this scope
             cs->session_key_len = EVP_PKEY_decrypt(cs->session_key, M_ASN1_STRING_data(ri->encryptedKey),
                                                                                                        ^
crypto.c:1221:72: error: 'M_ASN1_STRING_length' was not declared in this scope
                                   M_ASN1_STRING_length(ri->encryptedKey), keypair->privkey);
                                                                        ^
crypto.c:1221:82: error: invalid use of incomplete type 'X509_KEYPAIR {aka struct X509_Keypair}'
                                   M_ASN1_STRING_length(ri->encryptedKey), keypair->privkey);
                                                                                  ^~
In file included from ../lib/lib.h:36:0,
                 from ../bacula.h:170,
                 from crypto.c:37:
../lib/crypto.h:42:16: note: forward declaration of 'X509_KEYPAIR {aka struct X509_Keypair}'
 typedef struct X509_Keypair X509_KEYPAIR;
                ^~~~~~~~~~~~
crypto.c: In function 'CIPHER_CONTEXT* crypto_cipher_new(CRYPTO_SESSION*, bool, u_int32_t*)':
crypto.c:1303:75: error: 'M_ASN1_STRING_length' was not declared in this scope
    if (EVP_CIPHER_iv_length(ec) != M_ASN1_STRING_length(cs->cryptoData->iv)) {
                                                                           ^
crypto.c:1309:111: error: 'M_ASN1_STRING_data' was not declared in this scope
    if (!EVP_CipherInit_ex(&cipher_ctx->ctx, NULL, NULL, cs->session_key, M_ASN1_STRING_data(cs->cryptoData->iv), -1)) {
                                                                                                               ^
crypto.c: In function 'bool crypto_digest_update(DIGEST*, const u_int8_t*, u_int32_t)':
crypto.c:650:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
crypto.c: In function 'bool crypto_digest_finalize(DIGEST*, u_int8_t*, u_int32_t*)':
crypto.c:668:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
crypto.c: In function 'bool crypto_cipher_update(CIPHER_CONTEXT*, const u_int8_t*, u_int32_t, const u_int8_t*, u_int32_t*)':
crypto.c:1336:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
crypto.c: In function 'bool crypto_cipher_finalize(CIPHER_CONTEXT*, u_int8_t*, u_int32_t*)':
crypto.c:1354:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
./configure --with-readline=/usr/include/readline --disable-conio --bindir=/usr/bin --sbindir=/usr/sbin --with-scriptdir=/usr/bacula/scripts --with-working-dir=/var/lib/bacula/ --with-logdir=/var/log --enable-smartalloc --with-mysql --with-archivedir=/mnt/backup --with-job-email=lbie...@gmail.com --with-hostname=192.168.9.55

INSTALANDO
make -j8 && make install && make install-autostart

ERRO!!!!!
Makefile:183: recipe for target 'crypto.lo' failed
make[1]: *** [crypto.lo] Error 1
make[1]: ** Esperando que outros processos terminem.
make[1]: Leaving directory '/usr/src/bacula-7.4.7/src/lib'


  ====== Error in /usr/src/bacula-7.4.7/src/lib ======


Makefile:148: recipe for target 'all' failed
make: *** [all] Error 1

--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-pt-br+unsub...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-ba...@googlegroups.com.

Jefferson P. S. Emerick

unread,
Jul 4, 2017, 3:53:43 PM7/4/17
to bacula-ba...@googlegroups.com
depois q instalar o pacote, rode o configure novamente, depois tente o make.

--
Grato,
Jefferson P. S. Emerick

Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-pt-br+unsubscribe...@googlegroups.com.

--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-pt-br+unsub...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-backup-pt-br@googlegroups.com.

Emanoel Iran

unread,
Jul 4, 2017, 4:09:00 PM7/4/17
to Bacula Backup-Pt-Br
Boa tarde!

Criei uma nova maquina (virtual) instalei do zero o debian 9 e fiz todos os procedimentos:    - e continua o mesmo erro!!!

apt update

apt upgrade

VERSÃO DO DEBIAN
root@debian:/usr/src/bacula-7.4.7# cat /etc/debian_version
9.0

ACESSANDO PASTA
cd /usr/src

BAIXANDO O BACULA

FERRAMENTAS NECESSARIAS
apt install -y build-essential libreadline6-dev zlib1g-dev liblzo2-dev mt-st mtx postfix libacl1-dev libssl-dev libmysql++-dev mysql-server libcrypto++-dev

ACESSANDO PASTA
cd /usr/src/bacula*

CONFIGURANDO
./configure --with-readline=/usr/include/readline --disable-conio --bindir=/usr/bin --sbindir=/usr/sbin --with-scriptdir=/usr/bacula/scripts --with-working-dir=/var/lib/bacula/ --with-logdir=/var/log --enable-smartalloc --with-mysql --with-archivedir=/mnt/backup --with-job-email=lbie...@gmail.com --with-hostname=192.168.9.55

INSTALANDO
make -j8 && make install && make install-autostart
...

Wanderlei Huttel

unread,
Jul 4, 2017, 4:31:38 PM7/4/17
to bacula-ba...@googlegroups.com
Olá Emanoel

Também realizei uns testes com Debian 9.0 e tive o mesmo problema.
Como o Debian 9.0 é muito recente, acredito não estar homologado para rodar o Bacula, é mais aconselhável utilizar uma versão estável do Debian.

Atenciosamente 

Wanderlei Hüttel

2017-07-04 17:08 GMT-03:00 Emanoel Iran <lbie...@gmail.com>:
Boa tarde!

Criei uma nova maquina (virtual) instalei do zero o debian 9 e fiz todos os procedimentos:    - e continua o mesmo erro!!!

apt update

apt upgrade

VERSÃO DO DEBIAN
root@debian:/usr/src/bacula-7.4.7# cat /etc/debian_version
9.0

ACESSANDO PASTA
cd /usr/src

BAIXANDO O BACULA

FERRAMENTAS NECESSARIAS
apt install -y build-essential libreadline6-dev zlib1g-dev liblzo2-dev mt-st mtx postfix libacl1-dev libssl-dev libmysql++-dev mysql-server libcrypto++-dev

ACESSANDO PASTA
cd /usr/src/bacula*

CONFIGURANDO
./configure --with-readline=/usr/include/readline --disable-conio --bindir=/usr/bin --sbindir=/usr/sbin --with-scriptdir=/usr/bacula/scripts --with-working-dir=/var/lib/bacula/ --with-logdir=/var/log --enable-smartalloc --with-mysql --with-archivedir=/mnt/backup --with-job-email=lbie2006@gmail.com --with-hostname=192.168.9.55

--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-pt-br+unsub...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-backup-pt-br@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.

Jefferson P. S. Emerick

unread,
Jul 4, 2017, 4:49:54 PM7/4/17
to bacula-ba...@googlegroups.com
É parece que funções em c foram deprecadas..

plugins.c:123:12: warning: 'int readdir_r(DIR*, dirent*, dirent**)' is deprecated [-Wdeprecated-declarations]

--
Grato,
Jefferson P. S. Emerick

Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-pt-br+unsubscribe...@googlegroups.com.

Para postar nesse grupo, envie um e-mail para bacula-backup-pt-br@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.

--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-pt-br+unsub...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-backup-pt-br@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.

Judson Borges

unread,
May 9, 2019, 9:44:16 AM5/9/19
to Bacula Backup-Pt-Br
Resolveu esse problema meu caro? Estou com o mesmo problema tentando instalar a versão 9.0.3 no Debian 9.5

Wanderlei Huttel

unread,
May 9, 2019, 9:54:49 AM5/9/19
to bacula-ba...@googlegroups.com
Olá Judson

Provavelmente está faltando alguma dependência "libssl-dev"
Qualquer coisa dá uma olhadas nesses tutoriais:

http://www.bacula.com.br/comandos-de-compilacao/  
https://github.com/wanderleihuttel/bacula-utils/blob/master/tutorial/tutorial_de_instalacao_do_bacula_debian9.txt  

Atenciosamente 

Wanderlei Hüttel


--
Você recebeu essa mensagem porque está inscrito no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie um e-mail para bacula-backup-p...@googlegroups.com.
Para postar nesse grupo, envie um e-mail para bacula-ba...@googlegroups.com.

Judson Borges

unread,
May 9, 2019, 10:42:47 AM5/9/19
to bacula-ba...@googlegroups.com
Olá Wanderlei,

Esta biblioteca está instalado, mas estou na dúvida se o bacula precisa da versão do libssl-dev que está na lista de vulnerabilidade informada pelo meu Openvas.

Você recebeu essa mensagem porque está inscrito em um tema no grupo "Bacula Backup-Pt-Br" dos Grupos do Google.
Para cancelar inscrição nesse tema, acesse https://groups.google.com/d/topic/bacula-backup-pt-br/5KYTnp8Jm5E/unsubscribe.
Para cancelar inscrição nesse grupo e todos os seus temas, envie um e-mail para bacula-backup-p...@googlegroups.com.

Para postar nesse grupo, envie um e-mail para bacula-ba...@googlegroups.com.
Acesse esse grupo em https://groups.google.com/group/bacula-backup-pt-br.

Para mais opções, acesse https://groups.google.com/d/optout.


--
__________________________________________________________________________________

Judson Andrade Borges
Tecnólogo em Redes de Computadores
Especialista em Gestão de Tecnologia da Informação

Wanderlei Huttel

unread,
May 9, 2019, 10:46:13 AM5/9/19
to bacula-ba...@googlegroups.com
Olá Judson

Tem que ser a dev, pois é ela que o Bacula utiliza para compilar!



Atenciosamente 

Wanderlei Hüttel

Judson Borges

unread,
May 9, 2019, 10:49:44 AM5/9/19
to bacula-ba...@googlegroups.com
Wanderlei,

Estou ciente, mas debugando eu percebi que o bacula usa o "libssl.so.1.0.0" e o que eu tenho instalado é o "libssl.so.1.1.0", uma vez que o anterior foi removido por problemas de vulnerabilidade, mas pelo visto vou ter que arriscar ficar com uma brecha de segurança para ter o bacula funcionando.


Para mais opções, acesse https://groups.google.com/d/optout.

Wanderlei Huttel

unread,
May 9, 2019, 11:58:44 AM5/9/19
to bacula-ba...@googlegroups.com
Olá Judson

Mas você está usando a versão 9.4.3 do Bacula?



Atenciosamente 

Wanderlei Hüttel

Judson Borges

unread,
May 9, 2019, 1:25:46 PM5/9/19
to bacula-ba...@googlegroups.com
Olá Wanderlei,

Estou com um cliente Debian 9.5 tentando instalar o bacula client nas versões 7.4 e 9.0.8, as duas versões deram o mesmo problema. Meu Director é na versão 9.0.8. 


Para mais opções, acesse https://groups.google.com/d/optout.

Wanderlei Huttel

unread,
May 9, 2019, 2:26:24 PM5/9/19
to bacula-ba...@googlegroups.com
Olá Judson

Pois é, nas versões mais novas do Debian já é pra vir o OpenSSL 1.1, então precisa  utilizar a a versão mais recente do Bacula, que no caso é a 9.4.3 e não uma versão antiga.


Atenciosamente 

Wanderlei Hüttel

Judson Borges

unread,
May 9, 2019, 2:44:23 PM5/9/19
to bacula-ba...@googlegroups.com
Boa tarde Wanderlei,

Só não estava querendo recompilar o Director, mas pelo jeito, vou ter que começar uma odisseia.


Para mais opções, acesse https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages