Re: Proposal: complete thread support for glib.



Hi, Jeff 

> I'm playing with it now.  For some reason configure finds
> pthread_attr_setstacksize when it does not exist, on my system.
> (Linux/Alpha, kernel 2.2.10, RedHat 5.2)
> 
> config.log output:
> 
> configure:4958: checking size of pthread_t
> configure:4978: gcc -o conftest -O -Wall  -D_REENTRANT   conftest.c -lpthread 1 >&5
> configure:4970: warning: return-type defaults to `int'
> configure: In function `main':
> configure:4973: warning: int format, different type arg (arg 3)
> configure:5000: checking for pthread_attr_setstacksize
> configure:5009: gcc -c -O -Wall  -D_REENTRANT  conftest.c 1>&5
> configure: In function `main':
> configure:5005: warning: implicit declaration of function `pthread_attr_setstack
> size'
> 
> and...
> 
> [jgarzik@dog glib]$ grep SETSTACKSIZE *.h
> acconfig.h:#undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
> config.h:#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
> 
> Maybe you need to change the test from a TRY_COMPILE sort of test to a
> TRY_LINK sort of test.

Ah, yes, I did it. I actually thought it worked, because I assumed, that I
have no such function, but I do. I'm running glibc-2.1 and that does have 
pthread_attr_setstacksize. 

Bye,
Sebastian
-- 
Sebastian Wilhelmi                   |            här ovanför alla molnen
mailto:wilhelmi@ira.uka.de           |      är himmlen så förunerligt blå
http://goethe.ira.uka.de/~wilhelmi   |



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