Re: [gtk-list] [BUG] glib's configure should support --with-threads=[posix]
- From: Sebastian Wilhelmi <wilhelmi ira uka de>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] [BUG] glib's configure should support --with-threads=[posix]
- Date: Sat, 12 Dec 1998 10:56:45 +0100
Hi,
> Packages: glib-1.1.5 and gtk+-1.1.5
>
> Description:
> One can build a thread-safe version of gtk+ by
> specifying the --with-threads=posix flag for the
> configure script. Since gtk+ depends on glib,
> glib also needs to be thread-safe.
>
> For example, glib uses the errno variable. In
> a multithreaded program, errno is actually a
> function call to get the per-thread error code.
> For example, on Digital Unix V4.0D,
> /usr/include/sys/errno.h has this:
> #ifdef _REENTRANT
> #define errno (*_errno())
> #else
> extern int errno;
> #endif /* _REENTRANT */
>
> So glib at least needs to be compiled with
> -D_REENTRANT to be thread-safe.
>
> Fix:
> Add the --with-threads=[posix] flag to glib's
> configure script. You should be able to just
> cut and paste the --with-threads stuff from
> gtk+'s configure script.
glib's thread safety support is well on its way, be patient.
Bye,
Sebastian
--
+--------------============####################============--------------+
| Sebastian Wilhelmi, Institute for Computer Design and Fault Tolerance, |
| University of Karlsruhe; Building 20.20, Room 263, D-76128 Karlsruhe |
| mail: wilhelmi@ira.uka.de; fax: +49 721 370455; fon: +49 721 6084353 |
+-----------------> http://goethe.ira.uka.de/~wilhelmi <-----------------+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]