Re: linux w/o pthread
- From: Owen Taylor <otaylor redhat com>
- To: "pixel" <pixel epita fr>
- Cc: <gtk-list redhat com>
- Subject: Re: linux w/o pthread
- Date: 02 May 1999 21:54:56 -0400
"pixel" <pixel@epita.fr> writes:
> Hi Lords,
>
> I have a linux system here without pthread. When I compile
> glib (with the --without-thread flag on ./configure), it
> give me a compile-time error (something in gmain.c, line
> 715 : poll_waiting is undefined here if you compile without
> the thread support. So, two questions :
Yes, there is a bug in 1.2.2 like this. However, unless
I am quite mistaken, only --disable-threads has this
problem. If you use --without-threads instead, things
should be fine. (--enable-threads removes all threading
support, --without-threads leaves in threading support,
but does not build a thread imlementation)
> 1) can someone reproduce this on his system (simply a matter
> of giving the correct flag to configure).
>
> 2) if this is a bug (as I think), what is the proper way to
> do this ? I think the better thing to do is to enclose the
> lines 715 to 720 in a classic #ifdef/#endif. The nearer #ifdef
> here should be _THREAD_SAFE, or something like that.
It's been fixed in CVS for a while. We should have a
release out in the next few days. For now, just build
--without-threads instead.
In fact, GLIB _should_, if you don't have threading
on your system, automatically choose --without-threads
if you run configure without any extra options. I
don't know why this isn't working for you.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]