Re: glib & threading




Tony Cooper <gb@bentleydc.apana.org.au> writes:

> Can someone please tell me what libraries I might need to enable posix
> threading?
> When I configure glib It identifies that im using posix threading and
> then
> says I'm missing libraries.
> I've tried all possible thread implementations with no success.
> I currently use glib/gtk 1.1.5 no problems and have had this problem
> ever
> since I tried to upgrade to 1.1.8 or higher.

 ./configure --disable-threads

will definitely work. Threads are not required for the 
operation of GTK+/GLib. The configure is supposed to fall
back properly if it doesn't find threads, but apparently 
on Slackware boxes it does something like finds
thread headers, but not thread libraries and dies
with an error message.

> I use a slackware box with libc5.
> This isn't a glibc thing I hope??

Well, sort of. Basically, if you want threading on Linux,
you want glibc. glibc integrates so much better with
LinuxThreads, that I wouldn't even consider trying to
use threads with libc5.

That being said, people did have some success using libc5
with LinuxThreads and even with older MIT (?) userland
pthreads. And (in theory) it should be possible to
get GLib and threads to work with one of these packages.

> Can anyone suggest what to install/upgrade to get posix or some other
> thread implementation going to make glib and hence gtk 1.1.15 work.
> I was going to attach the output of the relevant section of configure
> but
> as I'm new to this mail list and am unsure about volume, have kept this
> as brief as possible.

Generally, attaching configure output and config.log is
a good idea. (If you don't want to waste bandwidth
on the mailing list, mail it to gtk-bugs@gtk.org). In
this case, it really isn't necessary, since we have
other similar bug reports.

Regards,
                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]