Hi Xavier and Sean
and all you unknown folks,
I have seen postings from Xavier to announce POSIX threads in his Linux
Threads lib revision 0.4 in comp.os.Linux.announce. Sean's FAQ pointed out
that this two newsgroups might be the best to ask for support. So I am
hoping that you folks might fulfill an old wish from me.
I am using Linux-2.0.21 in combination with the debian distribution on an
Tyan PPRO200 dual processor board and my own distribution of X11R6.1. So far
everything ist fine. But until the last version of Xavier's pthread library
(I have not checked out this current version) this library was not able to
work together with the pthread support of X11R6 and up. The same problems
happens to the Linux libc.
Since many years I am an user of Solaris2 Sparc-stations and nearly every os
release was able the compile X11R6 with threaded support for the that
platform.
Do you know of a Linux POSIX thread patch for the libX11 source tree ?
This patch would make the work around pthreads very useful for all Linux-MP
users. Most if not all of them would like to use a version of a multi
threaded X (IMHO). And X11R6 is prepared for pthreads by the folks from the
mit and x.org.
As far as I could see, the problem depends on two missing structure
definitions in xc/lib/X11/Xthread.h and xc/lib/X11/locking.c.
The gcc compiler told me that there are in xc/lib/X11/Xthread.h some wrong
definitions for xmutex_init() and xcondition_int().
They seems to be incompatible with the official Linux libc versions. And as
ar as I understand Xaviers's lib, that lib is just a 100% compatible but
more efficient designed clone of the Linux libc POSIX-threads.
So his lib ends up in the same problem while compiling locking.c for libX11
the last time when I have tried to compile a threaded X11R6.1 distribution.
Do you know how to make xmutex_init() and xcondition_int() working, in a way
that they do not interact with pthread_muteattr_default and
pthread_condattr_default ?
From my point of view (I am not a good C programmer) there could be a
solution for this problem if someone patches the code to install the
structures pthread_mutexattr_t and pthread_condattr_t as working function
parameter. And all the problems seems to be concentrated in one header and
one source file.
Maybe there need to be some more structures depending on pthread_mutex_attr
or pthread_cond_attr at least. But I was not able tho analyze more of the
internal code structures.
Are you a X11 ore C guru, wizard or specialist and are be able to solve the
problems in locking.c ?
I would like to help as good as I can. Do you have access to the X11 source
code ?
I would spend several cans of virtual beers to such a folk. Without any
joke: Such a fix would me 25$ be worth to pay. But not much more, because I
am not swimming in my money :-) Just a way to say thank you.
--
Freundliche Gr?e,
Best regards,
Michael Hhne
==================================== Michael Hhne
= ____ = Lt. technische Vertriebsuntersttzung
= /---- / / / / /___/ / = EUnet Deutschland GmbH
= /____ /___/ / / /___ / = Emil-Figge-Str. 80
=== === D-44227 Dortmund Germany
=== Connecting Europe since 1982 === Tel.: +49/231/972-1071 Fax.: -1122
#include <disclaimer.h>