[cl-plus-ssl-devel] Fix build on OpenBSD

Anton Vodonosov avodonosov at yandex.ru
Sun Oct 7 10:39:38 UTC 2012


Thanks, the patch is committed.

06.10.2012, 11:01, "Timo Myyrä" <timo.myyra at iki.fi>:
> Anton Vodonosov <avodonosov at yandex.ru> writes:
>
>>  Hi.
>>
>>  Are you sure the old versions - "libssl3.so" "libssl.so.16.0" "libssl.so.15.1" -
>>  may be removed? Or maybe we should keep them in the list of libraries too?
>>
>>  30.09.2012, 20:00, "Timo Myyrä" <timo.myyra at iki.fi>:
>>>  Hi,
>>>
>>>  OpenBSD needs to load libcrypto before loading libssl.
>>>  Here's a patch for this. Also bumped the library versions to match
>>>  what OpenBSD uses.
>>>
>>>  --- /home/zmyrgel/quicklisp/dists/quicklisp/software/cl+ssl-20120703-git/reload.lisp
>>>     Wed Sep 19 19:17:03 2012
>>>  +++ reload.lisp Sat Sep 29 15:18:26 2012
>>>  @@ -17,10 +17,17 @@
>>>
>>>   (in-package :cl+ssl)
>>>
>>>  +;; OpenBSD needs to load libcrypto before libssl
>>>  +#+openbsd
>>>  +(progn
>>>  +  (cffi:define-foreign-library libcrypto
>>>  +    (:openbsd "libcrypto.so.20.1"))
>>>  +  (cffi:use-foreign-library libcrypto))
>>>  +
>>>   (cffi:define-foreign-library libssl
>>>     (:windows "libssl32.dll")
>>>     (:darwin "libssl.dylib")
>>>  -  (:openbsd (:or "libssl3.so" "libssl.so.16.0" "libssl.so.15.1"))
>>>  +  (:openbsd (:or "libssl.so.18.0" "libssl.so.17.1" "libssl.so.16.0))
>>>     (:solaris (:or "/lib/64/libssl.so"
>>>                    "libssl.so.0.9.8" "libssl.so" "libssl.so.4"))
>>>     (:unix (:or "libssl.so.1.0.0" "libssl.so.0.9.8" "libssl.so" "libssl.so.4"))
>>>
>>>  _______________________________________________
>>>  cl-plus-ssl-devel mailing list
>>>  cl-plus-ssl-devel at common-lisp.net
>>>  http://lists.common-lisp.net/cgi-bin/mailman/listinfo/cl-plus-ssl-devel
>
> You are right, better keep some backwards support too.
> Here's better patch to keep old versions included.
> The libssl3 library doesn't seem to correct in any case.
>
> The correct library versions can be found on OpenBSD's CVS:
> http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libssl/ssl/shlib_version
> http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libssl/crypto/shlib_version
>
> I think its safe to skip library version changes which aren't tagged for any
> release number. These happen between releases.
>
> ---
> /home/zmyrgel/quicklisp/dists/quicklisp/software/cl+ssl-20120703-git/reload.lisp
> Wed Sep 19 19:17:03 2012
> +++ reload.lisp Sat Oct  6 08:33:56 2012
> @@ -17,10 +17,20 @@
>
>  (in-package :cl+ssl)
>
> +;; OpenBSD needs to load libcrypto before libssl
> +#+openbsd
> +(progn
> +  (cffi:define-foreign-library libcrypto
> +    (:openbsd (:or "libcrypto.so.20.1"
> +                   "libcrypto.so.19.0"
> +                   "libcrypto.so.18.0")))
> +  (cffi:use-foreign-library libcrypto))
> +
>  (cffi:define-foreign-library libssl
>    (:windows "libssl32.dll")
>    (:darwin "libssl.dylib")
> -  (:openbsd (:or "libssl3.so" "libssl.so.16.0" "libssl.so.15.1"))
> +  (:openbsd (:or "libssl.so.18.0" "libssl.so.17.1"
> +                 "libssl.so.16.0" "libssl.so.15.1"))
>    (:solaris (:or "/lib/64/libssl.so"
>                   "libssl.so.0.9.8" "libssl.so" "libssl.so.4"))
>    (:unix (:or "libssl.so.1.0.0" "libssl.so.0.9.8" "libssl.so" "libssl.so.4"))




More information about the cl-plus-ssl-devel mailing list