View Issue Details

IDProjectCategoryView StatusLast Update
0001141bareos-coreGeneralpublic2023-07-18 15:48
Reporterharryruhr Assigned Tobruno-at-bareos  
PriorityhighSeverityblockReproducibilityalways
Status closedResolutionwon't fix 
Platformamd64OSOpenBSDOS Version6.6
Product Version18.2.6 
Summary0001141: Can't build on OpenBSD / against libressl
DescriptionThe build aborts with the following error:

/usr/ports/pobj/bareos-18.2.6/bareos-Release-18.2.6/core/src/lib/crypto_openssl.cc:425:24: error: use of undeclared identifier 'M_ASN1_OCTET_STRING_dup'; did you mean 'ASN1_OCTET_STRING_dup'?
      newpair->keyid = M_ASN1_OCTET_STRING_dup(keypair->keyid);
                       ^~~~~~~~~~~~~~~~~~~~~~~
                       ASN1_OCTET_STRING_dup
/usr/include/openssl/asn1.h:692:20: note: 'ASN1_OCTET_STRING_dup' declared here
ASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *a);
                   ^
Steps To Reproduce- Get the OpenBSD port from https://github.com/jasperla/openbsd-wip/tree/master/sysutils/bareos and try to build it.
Additional InformationThis error seems to occur in general, when building against libressl (instead of openssl), see also https://bugs.gentoo.org/692370
TagsNo tags attached.

Activities

renato.ramonda

renato.ramonda

2021-03-02 09:31

reporter   ~0004094

We have the same issue on OpenBSD 6.8 trying to compile bareos-fd 20.0 (we skipped a few versions, I have no doubt the problem would have been the same on 18.x).
renato.ramonda

renato.ramonda

2021-03-02 09:33

reporter   ~0004095

To expand: after patching a few minor things (names that are different between openssl and libressl) we are stuck on this:

/usr/ports/pobj/bareos-Release-20.0.0/bareos-Release-20.0.0/core/src/lib/tls_openssl.cc:67:5: error: use of undeclared identifier 'SSL_CTX_set_psk_client_callback'
    SSL_CTX_set_psk_client_callback(d_->openssl_ctx_,
    ^
/usr/ports/pobj/bareos-Release-20.0.0/bareos-Release-20.0.0/core/src/lib/tls_openssl.cc:85:5: error: use of undeclared identifier 'SSL_CTX_set_psk_server_callback'
    SSL_CTX_set_psk_server_callback(d_->openssl_ctx_,
    ^
bruno-at-bareos

bruno-at-bareos

2023-07-18 15:48

manager   ~0005207

Sorry to say, but Bareos will need openSSL to be build as indicated in source and documentation.

Issue History

Date Modified Username Field Change
2019-11-19 22:23 harryruhr New Issue
2021-03-02 09:31 renato.ramonda Note Added: 0004094
2021-03-02 09:33 renato.ramonda Note Added: 0004095
2023-07-18 15:48 bruno-at-bareos Assigned To => bruno-at-bareos
2023-07-18 15:48 bruno-at-bareos Status new => closed
2023-07-18 15:48 bruno-at-bareos Resolution open => won't fix
2023-07-18 15:48 bruno-at-bareos Note Added: 0005207