[Bug 228967] www/squid-devel Broken with LibreSSL 2.7

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jun 21 12:49:38 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228967

--- Comment #7 from Dean E. Weimer <dweimer at dweimer.net> ---
(In reply to w.schwarzenfeld from comment #6)

That worked for me as well with libressl, built in test environment. in process
of rebuilding actual running jail with libressl to try it in use.

It did fail when I tried to rebuild under opnessl though.

libtool: link: ( cd ".libs" && rm -f "libsslutil.la" && ln -s
"../libsslutil.la" "libsslutil.la" )
--- bio.lo ---
bio.cc:86:28: error: use of undeclared identifier 'useMethod'
    if (BIO *bio = BIO_new(useMethod)) {
                           ^
1 error generated.
*** [bio.lo] Error code 1


Added this to original patch:
squid-devel/files/patch-src_ssl_bio.cc

--- src/ssl/bio.cc.orig      2018-06-21 07:21:44.684311000 -0500
+++ src/ssl/bio.cc   2018-06-21 07:25:50.930483000 -0500
@@ -76,9 +76,11 @@
         BIO_meth_set_create(SquidMethods, squid_bio_create);
         BIO_meth_set_destroy(SquidMethods, squid_bio_destroy);
     }
-    const BIO_METHOD *useMethod = SquidMethods;
-#else
-    BIO_METHOD *useMethod = &SquidMethods;
+    #if defined(LIBRESSL_VERSION_NUMBER)
+        BIO_METHOD *useMethod = SquidMethods;
+    #else
+        const BIO_METHOD *useMethod = SquidMethods;
+    #endif
 #endif

     if (BIO *bio = BIO_new(useMethod)) {

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list