View Issue Details

IDProjectCategoryView StatusLast Update
0001141bareos-core[All Projects] Generalpublic2021-03-02 09:33
ReporterharryruhrAssigned To 
PriorityhighSeverityblockReproducibilityalways
Status newResolutionopen 
Platformamd64OSOpenBSDOS Version6.6
Product Version18.2.6 
Fixed in Version 
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.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

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_,
    ^

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