b20.1 (egcs-1.1.1): making winsup problem

Mumit Khan khan@xraylith.wisc.edu
Mon Feb 15 08:51:00 GMT 1999


On Mon, 15 Feb 1999, Stipe Tolj wrote:

> 
> Now I'm ready to go ahead in trying to get pthreads running. Geoffrey mentioned
> that the latest winsup snapshot supports a configure options caleld
> --enablethreadsafe to support at least experimental thread support.
> 
> Will this include and build the pthread package or will I have to compile it from
> the pthread-win32 package available at sourceware.cygnus.com?
> 
> The latest pthreads-snap-1999-01-23 claims within README to be unable to compile
> under Cygwin or Mingw. I have compiled successfully the older
> pthreads-snap-10-20, but when linking the example programs I get undefined
> references to _beginthreadex and _endthreadex, which obviously are not supported
> on Win9x systems.

There is now a workaround so that _begin/endthreadex is emulated with
CreateThread.

> 
> May you have a clue how to get basic pthread support for Cygwin, if possible?
> 

I don't know much about the pthreads-win32 project, but I do that the
current CVS version doesn't build correctly. I'm attaching a trivial patch
that you may want to try out. It builds, but I haven't done any testing on
it. I'm afraid I can't be of any more help than this.

> What do you mean with an object directory? In other words: Where is the
> difference in a source and object directory within this scope?

GNU configure allows building in a directory different than the source,
and more and more packages are actually specifying that you do so to avoid
certain problems (eg., egcs recommends this).

Let's say the source directory for package foo is /usr/local/src/foo. I
usually create a foo-build directory somewhere else and then run configure
from within this foo-build, ie., the build directory. 

Regards,
Mumit

ps: I can't post to cygwin-developers, so you could you post forward my
response if you think it's relevant?



More information about the Cygwin-developers mailing list