dbus must be compiled with -D_REENTRANT option to make errno thread-safety

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Nov 26 03:46:41 PST 2010


On Thu, 25 Nov 2010 at 22:58:23 +0300, Pavel Strashkin wrote:
> To fix that issue and make errno thread-safety you
> must compile dbus with -D_REENTRANT option (CFLAGS).

What platform is this on? If you #include <errno.h>, recent versions of glibc
(where "recent" means the last several years) have a thread-safe errno.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475101 (recent removal of
the policy requirement to use -D_REENTRANT for libraries in Debian) suggests
that it's only needed for LinuxThreads (obsolete, superseded by NTPL),
OSF/1 and Solaris.

Regards,
    Simon


More information about the dbus mailing list