On 10/28/2013 04:51 PM, Reindl Harald wrote:
src/server.c, look at the patch :-)
Indeed. The text version of a patch could be malformed because of the
formatting, I assumed changes will be applied manually...
Here is the correct patch attached. You can apply it as:
$ cd dbmail-3.1.7
$ patch -p1 < /path/to/dbmail-3.1.7-glib2.diff
The issue origin is in g_thread_init() call which has been marked as deprecated
starting form glib2.32
(https://developer.gnome.org/glib/stable/glib-Deprecated-Thread-APIs.html#g-thread-init)
and hence removed from dbmail sources.
g_thread_init has been deprecated since version 2.32 and should not be used in
newly-written code. This function is no longer necessary. The GLib threading
system is automatically initialized at the start of your program.
While 3.1.7 works like a charm with glib >= 2.32, earlier versions (consider
RHEL5 distro packages) do require g_thread_init() to be called.
--
Best regards,
Pavlo Lavrenenko,
PortaOne, Inc., Junior Software Developer
Tel: +1-866-SIP VOIP (+1 866 747 8647) ext. 7624
PortaOne - VoIP Solutions Company
Visit our Website: http://www.portaone.com
diff --git a/src/server.c b/src/server.c
index 4e5e082..09ea7be 100644
--- a/src/server.c
+++ b/src/server.c
@@ -223,6 +223,8 @@ static int server_setup(ServerConfig_T *conf)
if (! MATCH(conf->service_name,"IMAP"))
return 0;
+ if (! g_thread_supported())
+ g_thread_init(NULL);
// Asynchronous message queue for receiving messages
// from worker threads in the main thread.
//
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail