On 04/26/2010 09:50 AM, AFAHOUNKO Danny wrote:
Hi folks,
i've installed spice on F12 64bit and it works like a charm.
i tried to build the spice client on F12 x86 bit but it still failed !!
-----latest error--------
[...]
make[3]: Leaving directory `/root/spice/client/x11/images'
make[2]: Leaving directory `/root/spice/client/x11/images'
make[2]: Entering directory `/root/spice/client/x11'
g++ -DHAVE_CONFIG_H -I. -I../.. -DCAIRO_CANVAS_ACCESS_TEST
-DCAIRO_CANVAS_CACHE -DCAIRO_CANVAS_CACH_IS_SHARED
-DCAIRO_CANVAS_NO_CHUNKS -DUSE_GLZ -DUSE_OGL -I. -I.. -I../../common
-I../../common/linux -I../../client -I/usr/include/alsa
-I/usr/include/ffmpeg-spice -I/usr/include/cairo-spice
-I/usr/include/pixman-spice-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -Wall -Wno-sign-compare -Werror
-Wno-deprecated-declarations -g -O3 -MT red_peer.o -MD -MP -MF
.deps/red_peer.Tpo -c -o red_peer.o `test -f '../../client/red_peer.cpp'
|| echo './'`../../client/red_peer.cpp
../../client/red_peer.cpp: In member function ‘void
RedPeer::connect_secure(const RedPeer::ConnectionOptions&, uint32_t)’:
../../client/red_peer.cpp:177: error: invalid conversion from ‘const
SSL_METHOD*’ to ‘SSL_METHOD*’
make[2]: *** [red_peer.o] Error 1
make[2]: Leaving directory `/root/spice/client/x11'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/spice/client/x11'
make: *** [install-recursive] Error 1
-------------------------
There is a way to build 32bit client rpm from source ?
or even if i could have a procedure to compile it.
The problem is probably different versions of the openssl library.
Try the attached patch. Does it help ?
HTH,
Uri.
>From 6333e034a3dbe00a9826cb5d802477dd78047221 Mon Sep 17 00:00:00 2001
From: Izik Eidus <iei...@redhat.com>
Date: Tue, 22 Dec 2009 06:52:14 +0200
Subject: [PATCH] spice: fix ssl compiling errors
(openssl api was changed, so lets have ifdef to compile in all cases)
Signed-off-by: Izik Eidus <iei...@redhat.com>
---
client/red_peer.cpp | 4 ++++
server/reds.c | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/client/red_peer.cpp b/client/red_peer.cpp
index e20d5ca..d086872 100644
--- a/client/red_peer.cpp
+++ b/client/red_peer.cpp
@@ -174,7 +174,11 @@ void RedPeer::connect_secure(const ConnectionOptions& options, uint32_t ip)
ASSERT(_ctx == NULL && _ssl == NULL && _peer != INVALID_SOCKET);
try {
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+ const SSL_METHOD *ssl_method = TLSv1_method();
+#else
SSL_METHOD *ssl_method = TLSv1_method();
+#endif
_ctx = SSL_CTX_new(ssl_method);
if (_ctx == NULL) {
diff --git a/server/reds.c b/server/reds.c
index 54225dc..38a6538 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3163,7 +3163,11 @@ static void openssl_thread_setup()
static void reds_init_ssl()
{
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+ const SSL_METHOD *ssl_method;
+#else
SSL_METHOD *ssl_method;
+#endif
int return_code;
long ssl_options = SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3;
--
1.6.6.1
------------------------------------------------------------------------------
_______________________________________________
Spice-space-devel mailing list
Spice-space-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spice-space-devel