>> I got exactly the same errors in the build:
>> 
>> .../gmime/.libs/libgmime-2.6.so: undefined reference to `g_mutex_init'
>> .../gmime/.libs/libgmime-2.6.so: undefined reference to `g_mutex_clear’

Okay.  I’ve gotten further with this issue.  These functions appear to have 
been introduced into a later version of glibc than the one the Redhat 6 uses 
(glibc 2.12).  Gmime didn’t call these functions until gmime 2.6.16.  Gmime 
2.6.15 called other functions for g_mutex initialization.

So, I’ve built with gmime 2.6.15 for now (which appears to be thread-safe 
except is a few versions behind the latest one. 


On Jan 28, 2014, at 2:44 PM, Reindl Harald <[email protected]> wrote:

> 
> 
> Am 28.01.2014 20:40, schrieb KT Walrus:
>>> http://access.thelounge.net/harry/gmime-2.6.19-1.fc19.20140115.rh.src.rpm
>> 
>> I got exactly the same errors in the build:
>> 
>> .../gmime/.libs/libgmime-2.6.so: undefined reference to `g_mutex_init'
>> .../gmime/.libs/libgmime-2.6.so: undefined reference to `g_mutex_clear’
>> 
>> A quick Google search seems to indicate that these were introduced in glibc 
>> after the version that Redhat 6 uses.  Looking at the gmime source for 2.5.3 
>> and 2.6.19, it looks like gmime didn’t use mutexes in the older version so I 
>> removed the g_mutex calls in the 2.6.19 source and it built fine.
> 
>> I removed the g_mutex calls in the 2.6.19 source and it built fine
> 
> don't do such things - Debian also thought they can patch
> around in the OpenSSL sources leading to one of the biggest
> security problems of the last decade
> 
>> Does dbmail need gmime to be re-entrant/thread safe?
> 
> thread safe for sure - dbmail-imapd is multi-threaded and there
> where bugs in the past (not gmime related) where sometimes under
> mixed load message parts from a different user appeared, that is
> what happens in the worst case
> 
> _______________________________________________
> DBmail mailing list
> [email protected]
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to