[150] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

solved: problem w/X11, Guile, pthreads

daemon@ATHENA.MIT.EDU (William S. Gribble)
Tue Oct 24 23:08:36 1995

From: "William S. Gribble" <grib@cs.utexas.edu>
Date: Tue, 24 Oct 1995 21:53:21 -0500
To: pthreads@MIT.EDU


Last week, I posted a problem I was having with some rather opaque
interactions between X, Guile, Tk, and pthreads.   The symptom was
a segmentation fault during Tk initialization.

As it turns out, the seg fault was during a call to XAllocNamedColor,
and more to the point during the processing of the rgb color-name
database file.. you guessed it, stdio macros.  

I made a pass at rebuilding libX11 with pgcc, but gave up.. the 
Makefile is just too dense for me to hack.  Instead, I made a 
file called xsubs.c, into which I pasted the source for the 
routine in question, and put that file ahead of libX11 at link 
time.  It's ugly, but it got the pthreads stdio in for that 
routine, at least.  And, most importantly, it works!

b.g.



home help back first fref pref prev next nref lref last post