Hello, spice-gtk fails to build with LibreSSL: libtool: link: cc -o /usr/local/ports/deskutils/spice-gtk/work/spice-gtk-0.34/src/tmp-introspectM6aimR/.libs/SpiceClientGLib-2.0 -isystem /usr/local/include -I/usr/local/include -O2 -pipe -march=native -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -Wl,-rpath -Wl,/usr/local/lib -fstack-protector tmp-introspectM6aimR/usr/local/ports/deskutils/spice-gtk/work/spice-gtk-0.34/src/tmp-introspectM6aimR/SpiceClientGLib-2.0.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic -L/usr/local/lib -L. ./.libs/libspice-client-glib-2.0.so /usr/local/lib/libsasl2.so -lgmodule-2.0 -lgthread-2.0 -lopus -lgio-2.0 -ljpeg -lz -llz4 -lpixman-1 -lcrypto -lssl -lpulse-mainloop-glib -lpulse -lpthread -lgstaudio-1.0 -lgstapp-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl -pthread -Wl,-rpath -Wl,/usr/local/lib ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_set_read' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_get_data' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_set_write' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_set_ctrl' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_set_puts' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_free' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_meth_new' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_set_init' ./.libs/libspice-client-glib-2.0.so: undefined reference to `EVP_PKEY_get0_RSA' ./.libs/libspice-client-glib-2.0.so: undefined reference to `ASN1_STRING_get0_data' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_get_new_index' ./.libs/libspice-client-glib-2.0.so: undefined reference to `BIO_set_data' cc: error: linker command failed with exit code 1 (use -v to see invocation) I don't know if this is supported configuration. Fix is pretty simple so hopefully can be accepted. -- Pozdrawiam / with regards Paweł Pękala
diff --git spice-common spice-common --- spice-common +++ spice-common @@ -1 +1 @@ -Subproject commit 637621a9b99d2159b83272154b9d725cb7754e04 +Subproject commit 637621a9b99d2159b83272154b9d725cb7754e04-dirty diff --git src/bio-gio.c src/bio-gio.c index 9358fae..30aa73b 100644 --- src/bio-gio.c +++ src/bio-gio.c @@ -23,7 +23,7 @@ #include "spice-util.h" #include "bio-gio.h" -#if OPENSSL_VERSION_NUMBER < 0x10100000 +#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) static BIO_METHOD one_static_bio; static int BIO_meth_set_read(BIO_METHOD *biom, diff --git src/spice-channel.c src/spice-channel.c index 21f868d..1d66d05 100644 --- src/spice-channel.c +++ src/spice-channel.c @@ -55,7 +55,7 @@ static void spice_channel_reset_capabilities(SpiceChannel *channel); static void spice_channel_send_migration_handshake(SpiceChannel *channel); static gboolean channel_connect(SpiceChannel *channel, gboolean tls); -#if OPENSSL_VERSION_NUMBER < 0x10100000 +#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER) static RSA *EVP_PKEY_get0_RSA(EVP_PKEY *pkey) { if (pkey->type != EVP_PKEY_RSA) {
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel