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

Anton Vodonosov avodonosov at yandex.ru
Thu Oct 4 08:24:10 UTC 2012


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




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