Compiling on Mac OS X 10.4.5 (PPC). All dependencies are installed so far
as I know (configure runs without a hitch). Partway through the build
process I get an error:
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -
DHAVE_CONFIG_H -I../.. -DPOSIX -g -O2 -MT ssladapter.lo -MD -MP -
MF ".deps/ssladapter.Tpo" -c -o ssladapter.lo ssladapter.cc; \
then mv -f ".deps/ssladapter.Tpo" ".deps/ssladapter.Plo"; else rm -f
".deps/ssladapter.Tpo"; exit 1; fi
ssladapter.cc: In function 'long unsigned int id_function()':
ssladapter.cc:102: error: invalid static_cast from type
'_opaque_pthread_t*' to type 'long unsigned int'
make[3]: *** [ssladapter.lo] Error 1
Please let me know if I can provide any other information that would be
helpful.
Logged In: YES
user_id=920364
NetBSD has the same problem. This patch fixes it for me:
--- libjingle-0.3.0-orig/talk/base/openssladapter.cc
2006-03-16 22:43:25.000000000 +0100
+++ libjingle-0.3.0/talk/base/openssladapter.cc 2006-03-29
21:47:11.000000000 +0200
@@ -647,10 +647,10 @@
void* ext_str = NULL;
if (meth->it) {
- ext_str = ASN1_item_d2i(NULL,
&(extension->value->data), extension->value->length,
+ ext_str = ASN1_item_d2i(NULL, (const unsigned char
**)&(extension->value->data), extension->value->length,
ASN1_ITEM_ptr(meth->it));
} else {
- ext_str = meth->d2i(NULL,
&(extension->value->data), extension->value->length);
+ ext_str = meth->d2i(NULL, (const unsigned char
**)&(extension->value->data), extension->value->length);
}
STACK_OF(CONF_VALUE)* value = meth->i2v(meth,
ext_str, NULL);
Logged In: YES
user_id=920364
Oops... wrong patch. This is the one:
--- libjingle-0.3.0-orig/talk/base/ssladapter.cc 2006-03-16
22:43:25.000000000 +0100
+++ libjingle-0.3.0/talk/base/ssladapter.cc 2006-03-29
20:45:19.000000000 +0200
@@ -99,7 +99,7 @@
}
static unsigned long id_function() {
- return static_cast<unsigned long>(THREAD_ID);
+ return static_cast<unsigned long>((unsigned long)THREAD_ID);
}
struct CRYPTO_dynlock_value {