Hi Kern, Thanks for your reply and yes you are correct in that this is
not a bug in the source code, but rather a bug in the packages that the
installers made for the openSuSE's distro. They had installed the wrong
developers package for the openssl package. Wasn't hard to fix once I
got on the right track...
    
     Marc..

P.S. Hopefully someone will take note of the difficulty I pointed out in
logging in to the Mantis bugtracking website if one has forgotten one's
user ID...

On 5/4/19 3:44 AM, Kern Sibbald wrote:
> Hello Marc,
>
> Unless you are trying to build without Crypto, which I have not tried,
> as far as I can tell, this has been tested, and it is not a bug.  Both
> HAVE_s are
> defined in my config.h file.
>
> I suspect that you simply need to load some openssl development package.
>
> Best regards,
> Kern
>
> On 5/3/19 10:52 PM, Marc Chamberlin via Bacula-devel wrote:
>> This is just ducky, I cannot log in to the Mantis bug tracking to report
>> this bug, because I don't remember either my user id nor my password. (I
>> haven't done this very often, but have reported a bug in the  past
>> sometime ago.  Even though the database recognizes my email address and
>> reports it as already known, I cannot reset my password because in order
>> to do so I need to enter my user id. I don't know my user id either and
>> there is no way on the website to ask for it or have the server send it
>> to me first. YARG!
>>
>> So can some kind person enter the following bug report. Make is failing
>> to compile the file crypto.c for version 9.4.3 because by default
>> apparently the defines for HAVE_CRYPTO and/or HAVE_OPENSSL are not
>> defined and therefore fail to include a header file openssl-compat.h -
>>
>> code from the beginning of crypto.c -
>>
>> #ifdef HAVE_CRYPTO /* Is encryption enabled? */
>> #ifdef HAVE_OPENSSL /* How about OpenSSL? */
>>
>> #include "openssl-compat.h"
>>
>> ...
>>
>> but these same ifdef macros fail to exclude code that is dependent on
>> that header file. (this was not well tested prior to release!) So when I
>> ran make, I got the following errors-
>>
>>
>> make[1]: Entering directory '/home/marc/bacula/bacula-9.4.3/src/lib'
>> Compiling crypto.c
>> crypto.c: In function 'ASN1_OCTET_STRING* openssl_cert_keyid(X509*)':
>> crypto.c:334:55: error: 'ASN1_STRING_get0_data' was not declared in this
>> scope
>>     ext_value_data = ASN1_STRING_get0_data(asn1_ext_val);
>>                                                        ^
>> crypto.c: In function 'X509_KEYPAIR* crypto_keypair_dup(X509_KEYPAIR*)':
>> crypto.c:392:44: error: 'EVP_PKEY_up_ref' was not declared in this scope
>>        ret = EVP_PKEY_up_ref(keypair->pubkey);
>>                                             ^
>> crypto.c:400:45: error: 'EVP_PKEY_up_ref' was not declared in this scope
>>        ret = EVP_PKEY_up_ref(keypair->privkey);
>>                                              ^
>> crypto.c: In function 'DIGEST* crypto_digest_new(JCR*, crypto_digest_t)':
>> crypto.c:601:33: error: 'EVP_MD_CTX_new' was not declared in this scope
>>     digest->ctx = EVP_MD_CTX_new();
>>                                  ^
>> crypto.c:604:32: error: 'EVP_MD_CTX_reset' was not declared in this scope
>>     EVP_MD_CTX_reset(digest->ctx);
>>                                 ^
>> crypto.c: In function 'void crypto_digest_free(DIGEST*)':
>> crypto.c:681:30: error: 'EVP_MD_CTX_free' was not declared in this scope
>>    EVP_MD_CTX_free(digest->ctx);
>>                               ^
>> crypto.c: In function 'crypto_error_t crypto_sign_verify(SIGNATURE*,
>> X509_KEYPAIR*, DIGEST*)':
>> crypto.c:802:55: error: 'ASN1_STRING_get0_data' was not declared in this
>> scope
>>           sigData = ASN1_STRING_get0_data(si->signature);
>>                                                        ^
>> crypto.c: In function 'crypto_error_t crypto_session_decode(const
>> u_int8_t*, u_int32_t, alist*, CRYPTO_SESSION**)':
>> crypto.c:1214:107: error: 'ASN1_STRING_get0_data' was not declared in
>> this scope
>>              cs->session_key_len = EVP_PKEY_decrypt(cs->session_key,
>> ASN1_STRING_get0_data(ri->encryptedKey),
>>                                                                              
>>                              
>> ^
>> crypto.c: In function 'CIPHER_CONTEXT*
>> crypto_cipher_new(CRYPTO_SESSION*, bool, u_int32_t*)':
>> crypto.c:1281:40: error: 'EVP_CIPHER_CTX_reset' was not declared in this
>> scope
>>     EVP_CIPHER_CTX_reset(cipher_ctx->ctx);
>>                                         ^
>> crypto.c:1309:113: error: 'ASN1_STRING_get0_data' was not declared in
>> this scope
>>     if (!EVP_CipherInit_ex(cipher_ctx->ctx, NULL, NULL, cs->session_key,
>> ASN1_STRING_get0_data(cs->cryptoData->iv), -1)) {
>>                                                                              
>>                                    
>> ^
>> Makefile:182: recipe for target 'crypto.lo' failed
>> make[1]: *** [crypto.lo] Error 1
>> make[1]: Leaving directory '/home/marc/bacula/bacula-9.4.3/src/lib'
>>
>>
>>   ====== Error in /home/marc/bacula/bacula-9.4.3/src/lib ======
>>
>>
>> Makefile:148: recipe for target 'all' failed
>> make: *** [all] Error 1
>>
>>
>>    Thanks,   Marc...
>>
>>

-- 
<b>Computers: the final frontier. These are the voyages of the user Marc.<br> 
His mission: to explore strange new hardware. To seek out new software and new 
applications.<br> 
To boldly go where no Marc has gone before!<br></b>



_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to