[kde-freebsd] Problem with security/qca-ossl and OpenSSL port
Matt Dawson
matt at chronos.org.uk
Sun Oct 19 21:44:19 CEST 2008
On Friday 17 October 2008 13:54:26 Matt Dawson wrote:
> Hi all,
> Having a few problems compiling this port with WITH_OPENSSL_PORT=true
> defined in my build. It's failing with:
> qca-ossl.cpp: In function 'X509_EXTENSION*
> opensslQCAPlugin::new_subject_key_id(X509*)':
> qca-ossl.cpp:330: warning: deprecated conversion from string constant to
> 'char*'
> qca-ossl.cpp: In member function 'virtual QCA::Provider::Context*
> opensslProvider::createContext(const QString&)':
> qca-ossl.cpp:6815: error: 'EVP_whirlpool' was not declared in this scope
> *** Error code 1
OK, sussed it. They're aware of the problem upstream, it's fixed in SVN and
the following patch fixes the port in this case:
diff -ruN ../../../FreeBSD_server/ports/security/qca-ossl/files/patch-qca-
ossl.cpp ./qca-ossl/files/patch-qca-ossl.cpp
--- ../../../FreeBSD_server/ports/security/qca-ossl/files/patch-qca-ossl.cpp
1970-01-01 01:00:00.000000000 +0100
+++ ./qca-ossl/files/patch-qca-ossl.cpp 2008-10-19 20:35:03.000000000 +0100
@@ -0,0 +1,39 @@
+--- qca-ossl.cpp.orig 2008-10-19 20:26:15.000000000 +0100
++++ qca-ossl.cpp 2008-10-19 20:30:53.000000000 +0100
+@@ -327,7 +327,7 @@
+ X509V3_CTX ctx;
+ X509V3_set_ctx_nodb(&ctx);
+ X509V3_set_ctx(&ctx, NULL, cert, NULL, NULL, 0);
+- X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx,
NID_subject_key_identifier, "hash");
++ X509_EXTENSION *ex = X509V3_EXT_conf_nid(NULL, &ctx,
NID_subject_key_identifier, (char *)"hash");
+ return ex;
+ }
+
+@@ -6597,12 +6597,13 @@
+ #ifdef SHA512_DIGEST_LENGTH
+ list += "sha512";
+ #endif
The patch also gets rid of the line 330 warning about types.
--
Matt Dawson
matt at chronos.org.uk
MTD15-RIPE
More information about the kde-freebsd
mailing list