Good Morning
First of all, thanks and congratulations for the new release Kern!
In this weekend I received some messages from friends of our brazilian
group in telegram that tried to compile Bacula 9 in Debian 9 stretch and
didn't work.
Today I've tried the same and got errors too.
I know that the last Debian version release is very recently and maybe
bacula is not homologued to run yet. Is this the problem?
##############################################################################
./configure \
--enable-smartalloc \
--with-mysql \
--with-db-user=bacula \
--with-db-password=bacula \
--with-db-port=3306 \
--with-readline=/usr/include/readline \
--sysconfdir=/etc/bacula \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--with-scriptdir=/etc/bacula/scripts \
--with-plugindir=/etc/bacula/plugins \
--with-pid-dir=/var/run \
--with-subsys-dir=/etc/bacula/working \
--with-working-dir=/etc/bacula/working \
--with-bsrdir=/etc/bacula/bootstrap \
--with-systemd \
--disable-conio \
--disable-nls \
--with-logdir=/var/log/bacula \
--with-dump-email=***@domain.com \
--with-job-email=***@domain.com
##############################################################################
Configuration on Mon Jul 10 07:45:26 -03 2017:
Host: x86_64-pc-linux-gnu -- debian 9.0
Bacula version: Bacula 9.0.0 (02 July 2017)
Source code location: .
Install binaries: /usr/sbin
Install libraries: /usr/lib
Install config files: /etc/bacula
Scripts directory: /etc/bacula/scripts
Archive directory: /tmp
Working directory: /etc/bacula/working
PID directory: /var/run
Subsys directory: /etc/bacula/working
Man directory: ${datarootdir}/man
Data directory: /usr/share
Plugin directory: /etc/bacula/plugins
C Compiler: gcc 6.3.0-18)
C++ Compiler: /usr/bin/g++ 6.3.0-18)
Compiler flags: -g -O2 -Wall -x c++ -fno-strict-aliasing
-fno-exceptions -fno-rtti
Linker flags:
Libraries: -lpthread -ldl -ldl
Statically Linked Tools: no
Statically Linked FD: no
Statically Linked SD: no
Statically Linked DIR: no
Statically Linked CONS: no
Database backends: MySQL
Database port: 3306
Database name: bacula
Database user: bacula
Database SSL options:
Job Output Email: ***@domain.com
Traceback Email: ***@domain.com
SMTP Host Address: localhost
Director Port: 9101
File daemon Port: 9102
Storage daemon Port: 9103
Director User:
Director Group:
Storage Daemon User:
Storage DaemonGroup:
File Daemon User:
File Daemon Group:
Large file support: yes
Bacula conio support: no -lreadline -lhistory
readline support: yes
TCP Wrappers support: no
TLS support: yes
Encryption support: yes
ZLIB support: yes
LZO support: yes
enable-smartalloc: yes
enable-lockmgr: no
bat support: no
client-only: no
build-dird: yes
build-stored: yes
Plugin support: yes
AFS support: no
ACL support: yes
XATTR support: yes
systemd support: yes /etc/systemd/system
Batch insert enabled: MySQL
##############################################################################
tls.c: In function 'bool tls_postconnect_verify_host(JCR*, TLS_CONNECTION*,
const char*)':
tls.c:351:33: 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:147,
from tls.c:40:
/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;
^~~~~~~~~~~~~~~~~
tls.c:358:65: error: invalid use of incomplete type 'X509_EXTENSION {aka
struct X509_extension_st}'
extstr = ASN1_item_d2i(NULL, &ext_value_data,
ext->value->length,
^~
In file included from /usr/include/openssl/ssl.h:50:0,
from ../bacula.h:147,
from tls.c:40:
/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;
^~~~~~~~~~~~~~~~~
tls.c:364:63: error: invalid use of incomplete type 'X509_EXTENSION {aka
struct X509_extension_st}'
extstr = method->d2i(NULL, &ext_value_data,
ext->value->length);
^~
In file included from /usr/include/openssl/ssl.h:50:0,
from ../bacula.h:147,
from tls.c:40:
/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: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:147,
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:147,
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:147,
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:147,
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:147,
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:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:168: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:468: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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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);
^
make[1]: *** [tls.lo] Error 1
make[1]: ** Esperando que outros processos terminem.
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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:169,
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:38:0,
from ../bacula.h:169,
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:38:0,
from ../bacula.h:169,
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]
}
^
make[1]: *** [crypto.lo] Error 1
make: *** [all] Error 1
##############################################################################
Best Regards
*Wanderlei HÃŒttel*
http://www.huttel.com.br
Hello Simone,
Thanks for jumping on the new release so soon. I am impressed. I
responded in the bug report, but copy it here for the others on the copy.
=== my response to the bug ===
It looks like I totally forgot to include all the new files from the Enterprise
version for tray-monitor. My schedule is a bit heavy for the next couple of
days, so I suggest that you temporarily leave the tray-monitor out of your
build. I am a bit surprised that in building our binaries (done by someone
else) this was not pointed out!
Once I copy over all the files and adjust the copyrights accordingly then build
and test it myself, I will release a new version. I will also post a note to
this bug report.
Thanks for reporting this, and sorry for the inconvenience.
==== end response from bug report ===
Best regards,
Kern
Hi Kern,
In fact, there are so many new features that I have not myself had a
chance to test them (e.g. the new Tray Monitor that includes client (user)
initiated backups â even from remote laptops.
I can't build the new tray monitor, it seems some files are missing from
http://bugs.bacula.org/view.php?id=2292
Regards,
--Simone
--
You cannot discover new oceans unless you have the courage to lose sight
of the shore (R. W. Emerson).
http://xkcd.com/229/
http://negativo17.org/
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bacula-devel