public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* posix threads
@ 1998-10-15 14:17 Alexander V. Sulima
  1998-10-16 17:16 ` Stipe Tolj
  0 siblings, 1 reply; 23+ messages in thread
From: Alexander V. Sulima @ 1998-10-15 14:17 UTC (permalink / raw)
  To: gnu-win32

Hi!

Whether there is such library? (like linuxthreads)

--
WBR,
/sancho
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads
  1998-10-15 14:17 posix threads Alexander V. Sulima
@ 1998-10-16 17:16 ` Stipe Tolj
  1998-10-18 20:57   ` Mumit Khan
  0 siblings, 1 reply; 23+ messages in thread
From: Stipe Tolj @ 1998-10-16 17:16 UTC (permalink / raw)
  To: sancho; +Cc: gnu-win32

> Whether there is such library? (like linuxthreads)

cygwin32 does not support MIT's pthread package since it required a
thread-safe environment and Win95 defenetly is not. This is how many people
told me, while I was porting some relational database systems using
mutli-threading.

Regards,
Stipe

--
Stipe Tolj <tolj@uni-duesseldorf.de>
Cygwin32 Porting Project
Department of Economical Computer Science
University of Cologne, Germany
http://www-public.rz.uni-duesseldorf.de/~tolj




-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads
  1998-10-16 17:16 ` Stipe Tolj
@ 1998-10-18 20:57   ` Mumit Khan
  1998-10-19 15:56     ` Geoffrey Noer
                       ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Mumit Khan @ 1998-10-18 20:57 UTC (permalink / raw)
  To: Stipe Tolj; +Cc: gnu-win32

Stipe Tolj <tolj@uni-duesseldorf.de> writes:
> cygwin32 does not support MIT's pthread package since it required a
> thread-safe environment and Win95 defenetly is not. This is how many people
> told me, while I was porting some relational database systems using
> mutli-threading.

You've been misinformed. Win95 (by which I assume you mean MS runtime) is 
certainly thread-capable; it's cygwin32 layer that's not thread-safe.

For those looking at a cross-platform threading package might want to look
at omniORB ( http://www.orl.co.uk/omniORB/omniORB.html ).

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads
  1998-10-18 20:57   ` Mumit Khan
@ 1998-10-19 15:56     ` Geoffrey Noer
  1998-10-21  3:52       ` Stipe Tolj
  1998-10-19 23:57     ` Alex P. Madarasz, Jr.
  1998-10-21  4:07     ` posix threads Stipe Tolj
  2 siblings, 1 reply; 23+ messages in thread
From: Geoffrey Noer @ 1998-10-19 15:56 UTC (permalink / raw)
  To: Mumit Khan; +Cc: Stipe Tolj, gnu-win32

On Sun, Oct 18, 1998 at 10:57:31PM -0500, Mumit Khan wrote:
[...]
> You've been misinformed. Win95 (by which I assume you mean MS runtime) is 
> certainly thread-capable; it's cygwin32 layer that's not thread-safe.

Note that Cygwin will be thread-safe pretty soon, although not in time
for b20.

-- 
Geoffrey Noer
noer@cygnus.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads
  1998-10-18 20:57   ` Mumit Khan
  1998-10-19 15:56     ` Geoffrey Noer
@ 1998-10-19 23:57     ` Alex P. Madarasz, Jr.
  1998-10-25  6:39       ` Alex P. Madarasz, Jr.
  1998-10-21  4:07     ` posix threads Stipe Tolj
  2 siblings, 1 reply; 23+ messages in thread
From: Alex P. Madarasz, Jr. @ 1998-10-19 23:57 UTC (permalink / raw)
  To: gnu-win32

Mumit Khan wrote on 18 Oct 98, 22:57 :
>
> Stipe Tolj <tolj@uni-duesseldorf.de> writes:
> > cygwin32 does not support MIT's pthread package since it required a
> > thread-safe environment and Win95 defenetly is not. This is how many
> > people told me, while I was porting some relational database systems
> > using mutli-threading.
> 
> You've been misinformed. Win95 (by which I assume you mean MS runtime) is
> certainly thread-capable; it's cygwin32 layer that's not thread-safe.
> 
> For those looking at a cross-platform threading package might want to look
> at omniORB ( http://www.orl.co.uk/omniORB/omniORB.html ).

For those who can't find a reference to the thread classes amongst all the ORB 
stuff, read bullet 3 of :

   < http://www.orl.co.uk/omniORB/omniORBTechnical.html >

"
The omniORB2 runtime is fully multithreaded. It uses native platform thread 
support encapsulated with a small class library, omnithread, to abstract away 
from differences in native thread APIs.
"

Also, for a possible alternative, see Steve Baker's ThreadBare :

   < http://web2.airmail.net/sjbaker1/tb/index.html >

-- 
Alex P. Madarasz, Jr.  --  madarasz@erols.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads
  1998-10-19 15:56     ` Geoffrey Noer
@ 1998-10-21  3:52       ` Stipe Tolj
  0 siblings, 0 replies; 23+ messages in thread
From: Stipe Tolj @ 1998-10-21  3:52 UTC (permalink / raw)
  To: Geoffrey Noer; +Cc: Mumit Khan, gnu-win32

> [...]
> > You've been misinformed. Win95 (by which I assume you mean MS runtime) is
> > certainly thread-capable; it's cygwin32 layer that's not thread-safe.
>
> Note that Cygwin will be thread-safe pretty soon, although not in time
> for b20.

:((

Is it realy that a big deal to perform, and acctualy what has to be done?!

Regards,
Stipe

--
Stipe Tolj <tolj@uni-duesseldorf.de>
Cygwin32 Porting Project
Department of Economical Computer Science
University of Cologne, Germany
http://www-public.rz.uni-duesseldorf.de/~tolj



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads
  1998-10-18 20:57   ` Mumit Khan
  1998-10-19 15:56     ` Geoffrey Noer
  1998-10-19 23:57     ` Alex P. Madarasz, Jr.
@ 1998-10-21  4:07     ` Stipe Tolj
  2 siblings, 0 replies; 23+ messages in thread
From: Stipe Tolj @ 1998-10-21  4:07 UTC (permalink / raw)
  To: Mumit Khan; +Cc: gnu-win32

> Stipe Tolj <tolj@uni-duesseldorf.de> writes:
> > cygwin32 does not support MIT's pthread package since it required a
> > thread-safe environment and Win95 defenetly is not. This is how many people
> > told me, while I was porting some relational database systems using
> > mutli-threading.
>
> You've been misinformed. Win95 (by which I assume you mean MS runtime) is
> certainly thread-capable; it's cygwin32 layer that's not thread-safe.

Sorry Mumit, that's what I wanted to point out.

Regards,
Stipe

--
Stipe Tolj <tolj@uni-duesseldorf.de>
Cygwin32 Porting Project
Department of Economical Computer Science
University of Cologne, Germany
http://www-public.rz.uni-duesseldorf.de/~tolj




-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads
  1998-10-19 23:57     ` Alex P. Madarasz, Jr.
@ 1998-10-25  6:39       ` Alex P. Madarasz, Jr.
  1998-10-26  1:57         ` Geoffrey Noer
                           ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Alex P. Madarasz, Jr. @ 1998-10-25  6:39 UTC (permalink / raw)
  To: gnu-win32

Alex P. Madarasz, Jr. wrote on 19 Oct 98, 16:23 :
> 
> Also, for a possible alternative, see Steve Baker's ThreadBare :
> 
>    < http://web2.airmail.net/sjbaker1/tb/index.html >


And, I just stumbled across this alternative alternative at :

   < ftp://egcs.cygnus.com/pub/pthreads-win32/ >

"
This directory contains an implementation of pthreads for Win32.  If
desired, it can work with the Cygwin32 porting layer to provide closer
POSIX standards conformance (ie. by providing process control).

There is a mailing list for discussing pthreads on Win32 which is
manually operated at present.  Send mail to postmaster@air.net.au to
request that you be subscribed.

---
Ben Elliston
bje@cygnus.com
"

"
				Maintainers

Write permission

Ben Elliston					bje@cygnus.com
Ross Johnson					rpj@ise.canberra.edu.au

Active contributors

Robert Colquhoun				rjc@trump.net.au
"

"
Last updated: $Date: 1998/07/24 12:46:09 $

Completion:	60 out of 61 functions	[ 98%]

U = unimplemented
* = practically completed

no.	name					status
1	pthread_atfork				*
2	pthread_attr_destroy			*
3	pthread_attr_getdetachstate		*
4	pthread_attr_getinheritsched		U
5	pthread_attr_getschedparam		*
6	pthread_attr_getschedpolicy		U
7	pthread_attr_getscope			U
8	pthread_attr_getstackaddr		*
9	pthread_attr_getstacksize		*
10	pthread_attr_init			*
11	pthread_attr_setdetachstate		*
12	pthread_attr_setinheritsched		U
13	pthread_attr_setschedparam		*
14	pthread_attr_setschedpolicy		U
15	pthread_attr_setscope			U
16	pthread_attr_setstackaddr		*
17	pthread_attr_setstacksize		*
18	pthread_cancel				*
19	pthread_cleanup_pop			*
20	pthread_cleanup_push			*
21	pthread_condattr_destroy		*
22	pthread_condattr_getpshared		*
23	pthread_condattr_init			*
24	pthread_condattr_setpshared		*
25	pthread_cond_broadcast			*
26	pthread_cond_destroy			*
27	pthread_cond_init			*
28	pthread_cond_signal			*
29	pthread_cond_timedwait			*
30	pthread_cond_wait			*
31	pthread_create				*
32	pthread_detach				*
33	pthread_equal				*
34	pthread_exit				*
35	pthread_getschedparam			*
36	pthread_getspecific			*
37	pthread_join				*
38	pthread_key_create			*
39	pthread_key_delete			*
40	pthread_kill
41	pthread_mutexattr_destroy		*
42	pthread_mutexattr_getprioceiling	U
43	pthread_mutexattr_getprotocol		U
44	phtread_mutexattr_getpshared		*
45	pthread_mutexattr_init			*
46	pthread_mutexattr_setprioceiling	U
47	pthread_mutexattr_setprotocol		U
48	pthread_mutexattr_setpshared		*
49	pthread_mutexattr_destroy		*
50	pthread_mutex_init			*
51	pthread_mutex_lock			*
52	pthread_mutex_trylock			*
53	pthread_mutex_unlock			*
54	pthread_once				*
55	pthread_self				*
56	pthread_setcancelstate			*	
57	pthread_setcanceltype			*	
58	pthread_setschedparam			*
59	pthread_setspecific			*
60	pthread_sigmask				*	
61	pthread_testcancel			*
"

-- 
Alex P. Madarasz, Jr.  --  madarasz@erols.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads
  1998-10-25  6:39       ` Alex P. Madarasz, Jr.
@ 1998-10-26  1:57         ` Geoffrey Noer
  1998-10-30  5:08         ` posix threads (pthread32) undefined references Stipe Tolj
  1998-10-30  5:08         ` Stipe Tolj
  2 siblings, 0 replies; 23+ messages in thread
From: Geoffrey Noer @ 1998-10-26  1:57 UTC (permalink / raw)
  To: Alex Madarasz; +Cc: gnu-win32

On Sun, Oct 25, 1998 at 10:24:35AM -0400, Alex P. Madarasz, Jr. wrote:
>
> And, I just stumbled across this alternative alternative at :
> 
>    < ftp://egcs.cygnus.com/pub/pthreads-win32/ >
[...]

Yep, but beware!  Until one of us announces that Cygwin is
thread-safe (something we expect to happen in a low number of months),
you will want to avoid pthreads with Cygwin...

-- 
Geoffrey Noer
noer@cygnus.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* posix threads (pthread32) undefined references
  1998-10-25  6:39       ` Alex P. Madarasz, Jr.
  1998-10-26  1:57         ` Geoffrey Noer
@ 1998-10-30  5:08         ` Stipe Tolj
  1998-10-30  5:08           ` Alex P. Madarasz, Jr.
  1998-10-30  5:08         ` Stipe Tolj
  2 siblings, 1 reply; 23+ messages in thread
From: Stipe Tolj @ 1998-10-30  5:08 UTC (permalink / raw)
  To: Alex Madarasz; +Cc: gnu-win32, bje, rpj, rjc

> And, I just stumbled across this alternative alternative at :
>
>    < ftp://egcs.cygnus.com/pub/pthreads-win32/ >

I have configure/make the libpthread32.a library using cygwin32 b19.3 (no
egcs, gcc from cdk.exe). When I tried to compile the distributed test
programs I get the following undefined reference errors:

% gcc create1.c -I.. -L.. -lpthread32
../libpthread32.a(create.o)(.text+0x19a):create.c: undefined reference to
`_beginthreadex'
../libpthread32.a(exit.o)(.text+0xbe):exit.c: undefined reference to
`_endthreadex'
../libpthread32.a(mutex.o)(.text+0x11e):mutex.c: undefined reference to
`TryEnterCriticalSection'

These seem to be undefined within all standard cygwin32 libraries. So where
are they, and how can I build the test programs and other applications using
the pthread32 library for cygwin32?

Any help is welcome. Thanks in advance.

Regards,
Stipe

--
Stipe Tolj <tolj@uni-duesseldorf.de>
Cygwin32 Porting Project
Department of Economical Computer Science
University of Cologne, Germany
http://www-public.rz.uni-duesseldorf.de/~tolj




-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* posix threads (pthread32) undefined references
  1998-10-25  6:39       ` Alex P. Madarasz, Jr.
  1998-10-26  1:57         ` Geoffrey Noer
  1998-10-30  5:08         ` posix threads (pthread32) undefined references Stipe Tolj
@ 1998-10-30  5:08         ` Stipe Tolj
  1998-10-30  5:08           ` Ben Elliston
  2 siblings, 1 reply; 23+ messages in thread
From: Stipe Tolj @ 1998-10-30  5:08 UTC (permalink / raw)
  To: Alex Madarasz; +Cc: gnu-win32, bje, rpj, rjc

> And, I just stumbled across this alternative alternative at :
>
>    < ftp://egcs.cygnus.com/pub/pthreads-win32/ >

I have configure/make the libpthread32.a library using cygwin32 b19.3
(no
egcs, gcc from cdk.exe). When I tried to compile the distributed test
programs I get the following undefined reference errors:

% gcc create1.c -I.. -L.. -lpthread32
../libpthread32.a(create.o)(.text+0x19a):create.c: undefined reference
to
`_beginthreadex'
../libpthread32.a(exit.o)(.text+0xbe):exit.c: undefined reference to
`_endthreadex'
../libpthread32.a(mutex.o)(.text+0x11e):mutex.c: undefined reference to
`TryEnterCriticalSection'

These seem to be undefined within all standard cygwin32 libraries. So
where
are they, and how can I build the test programs and other applications
using
the pthread32 library for cygwin32?

Any help is welcome. Thanks in advance.

Regards,
Stipe

--
Stipe Tolj <tolj@uni-duesseldorf.de>
Cygwin32 Porting Project
Department of Economical Computer Science
University of Cologne, Germany
http://www-public.rz.uni-duesseldorf.de/~tolj
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads (pthread32) undefined references
  1998-10-30  5:08             ` Stipe Tolj
@ 1998-10-30  5:08               ` Ben Elliston
       [not found]               ` <Pine.LNX.3.95.981030222714.12344A-100000.cygnus.gnu-win32@moshpit.cygnus.com>
  1 sibling, 0 replies; 23+ messages in thread
From: Ben Elliston @ 1998-10-30  5:08 UTC (permalink / raw)
  To: Stipe Tolj; +Cc: Geoffrey Noer, Alex Madarasz, gnu-win32, rpj, rjc

> I'm running Cygwin32 b19.3 (no EGCS, gcc from cdk.exe) on a Win98 box.

Right.  So you may or may not have TryEnterCriticalSection(), for example.
I don't know.

> so why don't adding them, Geoffrey?!

I believe there was some contention over what effect this would have on
_any_ binaries linked against this stub.  Someone tried to convince me
that this means that the executable would fail to load on systems where
this didn't exist, even if the program didn't call for this function.

Ben

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads (pthread32) undefined references
  1998-10-30  5:08         ` posix threads (pthread32) undefined references Stipe Tolj
@ 1998-10-30  5:08           ` Alex P. Madarasz, Jr.
  0 siblings, 0 replies; 23+ messages in thread
From: Alex P. Madarasz, Jr. @ 1998-10-30  5:08 UTC (permalink / raw)
  To: gnu-win32, bje, rpj, rjc

Stipe Tolj wrote on 29 Oct 98, 21:53 :
>
> > And, I just stumbled across this alternative alternative at :
> >
> >    < ftp://egcs.cygnus.com/pub/pthreads-win32/ >
> 
> I have configure/make the libpthread32.a library using cygwin32 b19.3 ...
> 
> These seem to be undefined within all standard cygwin32 libraries. So
> where are they, and how can I build the test programs and other
> applications using the pthread32 library for cygwin32?

I haven't tried them at all, (just posted the URL for reference, and am in the 
middle of a job search ;-), so I'd suggest the references from the pthreads-
win32 docs, which included a mailing list as I recall.

Oh, and I'd _definitely_ heed the following, which was posted in response to my 
post :


> Date sent:      	Mon, 26 Oct 1998 01:57:22 -0800
> From:           	Geoffrey Noer <noer@cygnus.com>
> To:             	Alex Madarasz <madarasz@erols.com>
> Copies to:      	gnu-win32@cygnus.com
> Subject:        	Re: posix threads
> 
> On Sun, Oct 25, 1998 at 10:24:35AM -0400, Alex P. Madarasz, Jr. wrote: > >
> And, I just stumbled across this alternative alternative at : > >   
> < ftp://egcs.cygnus.com/pub/pthreads-win32/ > [...]
> 
> Yep, but beware!  Until one of us announces that Cygwin is
> thread-safe (something we expect to happen in a low number of months), you
> will want to avoid pthreads with Cygwin...
> 
> -- 
> Geoffrey Noer
> noer@cygnus.com
> -

-- 
Alex P. Madarasz, Jr.  --  madarasz@erols.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads (pthread32) undefined references
  1998-10-30  5:08         ` Stipe Tolj
@ 1998-10-30  5:08           ` Ben Elliston
  1998-10-30  5:08             ` Stipe Tolj
  1998-10-31  6:26             ` Anders Norlander
  0 siblings, 2 replies; 23+ messages in thread
From: Ben Elliston @ 1998-10-30  5:08 UTC (permalink / raw)
  To: Stipe Tolj; +Cc: Alex Madarasz, gnu-win32, rpj, rjc

Hi Stipe,

> > And, I just stumbled across this alternative alternative at :
> >    < ftp://egcs.cygnus.com/pub/pthreads-win32/ >

Please use the CVS repository we have on sourceware.cygnus.com, if you
can.  The snapshot that is there is for people who have no access to CVS,
but it makes life harder.

> I have configure/make the libpthread32.a library using cygwin32 b19.3
> egcs, gcc from cdk.exe). When I tried to compile the distributed test
> programs I get the following undefined reference errors:

> % gcc create1.c -I.. -L.. -lpthread32
> ../libpthread32.a(create.o)(.text+0x19a):create.c: undefined reference
> to
> `_beginthreadex'
> ../libpthread32.a(exit.o)(.text+0xbe):exit.c: undefined reference to
> `_endthreadex'
> ../libpthread32.a(mutex.o)(.text+0x11e):mutex.c: undefined reference to
> `TryEnterCriticalSection'

Ah yes.  Are you using Windows 95 or NT?

There has been a recent discussion about why these aren't in Cygwin's
library stubs and I'm not sure what the outcome was.  Anyone?

Ben

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads (pthread32) undefined references
  1998-10-30  5:08           ` Ben Elliston
@ 1998-10-30  5:08             ` Stipe Tolj
  1998-10-30  5:08               ` Ben Elliston
       [not found]               ` <Pine.LNX.3.95.981030222714.12344A-100000.cygnus.gnu-win32@moshpit.cygnus.com>
  1998-10-31  6:26             ` Anders Norlander
  1 sibling, 2 replies; 23+ messages in thread
From: Stipe Tolj @ 1998-10-30  5:08 UTC (permalink / raw)
  To: Ben Elliston, Geoffrey Noer; +Cc: Alex Madarasz, gnu-win32, rpj, rjc

> > % gcc create1.c -I.. -L.. -lpthread32
> > ../libpthread32.a(create.o)(.text+0x19a):create.c: undefined reference
> > to
> > `_beginthreadex'
> > ../libpthread32.a(exit.o)(.text+0xbe):exit.c: undefined reference to
> > `_endthreadex'
> > ../libpthread32.a(mutex.o)(.text+0x11e):mutex.c: undefined reference to
> > `TryEnterCriticalSection'
>
> Ah yes.  Are you using Windows 95 or NT?

I'm running Cygwin32 b19.3 (no EGCS, gcc from cdk.exe) on a Win98 box.

> There has been a recent discussion about why these aren't in Cygwin's
> library stubs and I'm not sure what the outcome was.  Anyone?

so why don't adding them, Geoffrey?!

Regards,
Stipe

--
Stipe Tolj <tolj@uni-duesseldorf.de>
Cygwin32 Porting Project
Department of Economical Computer Science
University of Cologne, Germany
http://www-public.rz.uni-duesseldorf.de/~tolj



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads (pthread32) undefined references
  1998-10-30  5:08           ` Ben Elliston
  1998-10-30  5:08             ` Stipe Tolj
@ 1998-10-31  6:26             ` Anders Norlander
  1998-10-31 22:53               ` Ben Elliston
  1 sibling, 1 reply; 23+ messages in thread
From: Anders Norlander @ 1998-10-31  6:26 UTC (permalink / raw)
  To: Ben Elliston; +Cc: gnu-win32

Ben Elliston wrote:
> 
> Hi Stipe,
> 
> > > And, I just stumbled across this alternative alternative at :
> > >    < ftp://egcs.cygnus.com/pub/pthreads-win32/ >
> 
> Please use the CVS repository we have on sourceware.cygnus.com, if you
> can.  The snapshot that is there is for people who have no access to CVS,
> but it makes life harder.
> 
> > I have configure/make the libpthread32.a library using cygwin32 b19.3
> > egcs, gcc from cdk.exe). When I tried to compile the distributed test
> > programs I get the following undefined reference errors:
> 
> > % gcc create1.c -I.. -L.. -lpthread32
> > ../libpthread32.a(create.o)(.text+0x19a):create.c: undefined reference
> > to
> > `_beginthreadex'
> > ../libpthread32.a(exit.o)(.text+0xbe):exit.c: undefined reference to
> > `_endthreadex'
> > ../libpthread32.a(mutex.o)(.text+0x11e):mutex.c: undefined reference to
> > `TryEnterCriticalSection'
> 
> Ah yes.  Are you using Windows 95 or NT?
> 
> There has been a recent discussion about why these aren't in Cygwin's
> library stubs and I'm not sure what the outcome was.  Anyone?

Hi,
_beginthreadex and _endthreadex are part of the MS C runtime and not
the OS (I think). TryEnterCriticalSection does not even exist in
win95, so programs using the pthread32 library would not run on
that platform and that would be a bad thing.

Anders Norlander
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads (pthread32) undefined references
       [not found]               ` <Pine.LNX.3.95.981030222714.12344A-100000.cygnus.gnu-win32@moshpit.cygnus.com>
@ 1998-10-31 21:28                 ` Christopher G. Faylor
  1998-11-01 16:32                   ` Stipe Tolj
  0 siblings, 1 reply; 23+ messages in thread
From: Christopher G. Faylor @ 1998-10-31 21:28 UTC (permalink / raw)
  To: gnu-win32

In article <Pine.LNX.3.95.981030222714.12344A-100000.cygnus.gnu-win32@moshpit.cygnus.com>,
Ben Elliston <bje@cygnus.com> wrote:
>> I'm running Cygwin32 b19.3 (no EGCS, gcc from cdk.exe) on a Win98 box.
>
>Right.  So you may or may not have TryEnterCriticalSection(), for example.
>I don't know.
>
>> so why don't adding them, Geoffrey?!
>
>I believe there was some contention over what effect this would have on
>_any_ binaries linked against this stub.  Someone tried to convince me
>that this means that the executable would fail to load on systems where
>this didn't exist, even if the program didn't call for this function.

Huh?  Ben you added the definition yourself.  It will be in B20:

Tue Sep 15 18:36:08 1998  Ben Elliston  <bje@cygnus.com>

        * sysdef/kernel32.def: Add definition for the Win32 API function
        `TryEnterCriticalSection'.

This is a non-issue.  We can't retroactively add the definitions to
previous stub libraries.  "We" (i.e., Ben) did add them to Cygnus def
files and therefore they will be in B20.
-- 
cgf@cygnus.com
http://www.cygnus.com/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads (pthread32) undefined references
  1998-10-31  6:26             ` Anders Norlander
@ 1998-10-31 22:53               ` Ben Elliston
  1998-11-01  8:53                 ` Theodore Jump
  0 siblings, 1 reply; 23+ messages in thread
From: Ben Elliston @ 1998-10-31 22:53 UTC (permalink / raw)
  To: Anders Norlander; +Cc: gnu-win32

> _beginthreadex and _endthreadex are part of the MS C runtime and not
> the OS (I think). TryEnterCriticalSection does not even exist in
> win95, so programs using the pthread32 library would not run on
> that platform and that would be a bad thing.

What about Windows 98?  Does it exist there?

Ben

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads (pthread32) undefined references
  1998-10-31 22:53               ` Ben Elliston
@ 1998-11-01  8:53                 ` Theodore Jump
  1998-11-04  4:32                   ` Stipe Tolj
  0 siblings, 1 reply; 23+ messages in thread
From: Theodore Jump @ 1998-11-01  8:53 UTC (permalink / raw)
  To: Ben Elliston; +Cc: Anders Norlander, gnu-win32

>What about Windows 98?  Does it exist there?

It's exported from Kernel32.dll under Win98, but don't ask me how well it works
in comparison to NT.
______________________________________________________________________
http://www.i21.com/~tjump                  http://www.fighterduel.com
----------------------------------------------------------------------
Congrats to Marco Pantani, Jan Ullrich, Bobby Julich, Erik Zabel,
Christophe Rinero and all the rest of the riders of Le Tour '98!
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads (pthread32) undefined references
  1998-10-31 21:28                 ` Christopher G. Faylor
@ 1998-11-01 16:32                   ` Stipe Tolj
  0 siblings, 0 replies; 23+ messages in thread
From: Stipe Tolj @ 1998-11-01 16:32 UTC (permalink / raw)
  To: Christopher G. Faylor; +Cc: gnu-win32

> Tue Sep 15 18:36:08 1998  Ben Elliston  <bje@cygnus.com>
>
>         * sysdef/kernel32.def: Add definition for the Win32 API function
>         `TryEnterCriticalSection'.
>
> This is a non-issue.  We can't retroactively add the definitions to
> previous stub libraries.  "We" (i.e., Ben) did add them to Cygnus def
> files and therefore they will be in B20.
> --

that's good news Chris, thanks.

Regards,
Stipe

--
Stipe Tolj <tolj@uni-duesseldorf.de>
Cygwin Porting Project
Department of Economical Computer Science
University of Cologne, Germany
http://www-public.rz.uni-duesseldorf.de/~tolj




-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: posix threads (pthread32) undefined references
  1998-11-01  8:53                 ` Theodore Jump
@ 1998-11-04  4:32                   ` Stipe Tolj
  0 siblings, 0 replies; 23+ messages in thread
From: Stipe Tolj @ 1998-11-04  4:32 UTC (permalink / raw)
  To: tjump; +Cc: Ben Elliston, Anders Norlander, gnu-win32

> >What about Windows 98?  Does it exist there?
>
> It's exported from Kernel32.dll under Win98, but don't ask me how well it works
> in comparison to NT.

I tried to build the package again using cygwin b20, where it seems it is exported
within the libkernel32.a library. So I linked the test programs agains it but the
undefined reference error still remains.

Regards,
Stipe

--
Stipe Tolj <tolj@uni-duesseldorf.de>
Cygwin32 Porting Project
Department of Economical Computer Science
University of Cologne, Germany
http://www-public.rz.uni-duesseldorf.de/~tolj




-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: posix threads
@ 2003-01-18  3:56 Lane, Frank L
  0 siblings, 0 replies; 23+ messages in thread
From: Lane, Frank L @ 2003-01-18  3:56 UTC (permalink / raw)
  To: cygwin

Hi Mike,

I don't know how the different version are cross-referenced but uname tells
me I'm running CYGWIN_NT-5.0.  And the POSIX Version is set to 199009(which
I think means it does most thread stuff but not all of the POSIX 1003.1c
stuff).  Hopefully this in someway helps.  BTW, there is pthread.h in my
CYGWIN include directory.

Frank

-----Original Message-----
From: Michael D. Berger & Rosalie A. Clavez [mailto:mdberger@radix.net]
Sent: Friday, January 17, 2003 5:09 PM
To: cygwin
Subject: posix threads


Does g++ (gcc) under Cygwin support posix threads?  I have Cygwin
with gcc 2.95.3-5, and I can't find any *.h files for threads.
Thanks for your help
Mike.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 23+ messages in thread

* posix threads
@ 2003-01-18  1:42 Michael D. Berger & Rosalie A. Clavez
  0 siblings, 0 replies; 23+ messages in thread
From: Michael D. Berger & Rosalie A. Clavez @ 2003-01-18  1:42 UTC (permalink / raw)
  To: cygwin

Does g++ (gcc) under Cygwin support posix threads?  I have Cygwin
with gcc 2.95.3-5, and I can't find any *.h files for threads.
Thanks for your help
Mike.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2003-01-17 23:55 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-15 14:17 posix threads Alexander V. Sulima
1998-10-16 17:16 ` Stipe Tolj
1998-10-18 20:57   ` Mumit Khan
1998-10-19 15:56     ` Geoffrey Noer
1998-10-21  3:52       ` Stipe Tolj
1998-10-19 23:57     ` Alex P. Madarasz, Jr.
1998-10-25  6:39       ` Alex P. Madarasz, Jr.
1998-10-26  1:57         ` Geoffrey Noer
1998-10-30  5:08         ` posix threads (pthread32) undefined references Stipe Tolj
1998-10-30  5:08           ` Alex P. Madarasz, Jr.
1998-10-30  5:08         ` Stipe Tolj
1998-10-30  5:08           ` Ben Elliston
1998-10-30  5:08             ` Stipe Tolj
1998-10-30  5:08               ` Ben Elliston
     [not found]               ` <Pine.LNX.3.95.981030222714.12344A-100000.cygnus.gnu-win32@moshpit.cygnus.com>
1998-10-31 21:28                 ` Christopher G. Faylor
1998-11-01 16:32                   ` Stipe Tolj
1998-10-31  6:26             ` Anders Norlander
1998-10-31 22:53               ` Ben Elliston
1998-11-01  8:53                 ` Theodore Jump
1998-11-04  4:32                   ` Stipe Tolj
1998-10-21  4:07     ` posix threads Stipe Tolj
2003-01-18  1:42 Michael D. Berger & Rosalie A. Clavez
2003-01-18  3:56 Lane, Frank L

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).