RE: PTHREAD_MUTEX_DEFAULT different for cygwin v.s. linux.

2005-06-09 Thread Thomas E. Zerucha

>From:  Larry Hall [mailto:[EMAIL PROTECTED]

>>I can't seem to build the cygwin1.dll ...

>Sounds OK to me.  Try stripping it.

Been there, tried that..

>>[built from source] and it complained about something with the address).

> Perhaps it's best if you just tell us what the actual error message was
and when it happened.

First, note I used setup to update to the "current" versions of everything, 
apparently 1.5.17-1 (reported by cygcheck, and the source tarball).  I also 
have to do rebaseall since I use KDE.

OK, I did ./configure;make;make install...

  29716 [main] ? 4056 multiple_cygwin_problem: cygheap base magic number 
mismatch detected - 0x6182/0x0

If I try to rebase it, nothing works and I get a bigger error message.

If it is a rebase problem, is there any way to get the current address (from 
/bin/cygwin1.dll) so I can set the built one to it?

Even if I strip the newly made dll, it isn't the same size as the release 
version.  Are there instructions anywhere to build an exact copy of the release.

I need to change exactly one byte in trace.o(.cc) so PTHREAD_MUTEX_DEFAULT will 
be different to see if this fixes my problem.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



PTHREAD_MUTEX_DEFAULT different for cygwin v.s. linux.

2005-06-08 Thread Thomas E. Zerucha
I have a problem similar to that of:

http://sourceware.org/ml/cygwin/2005-05/msg01400.html

I have an old system that I'm trying to port that uses pthreads, but doesn't 
set the attribute, and a non-owner thread will destroy the thread in a 
deallocate routine, but this won't happen (it won't actually destroy the 
thread).

The problem is that (in pthread.h) PTHREAD_MUTEX_DEFAULT is .._NORMAL on linux, 
the system was originally written for.  It works but eventually dies when it 
runs out of threads or mutexes or something since it can't recycle.  
PTHREAD_MUTEX_DEFAULT is .._ERRORCHECK on cygwin.

It would be painful to add a whole section to create an attribute structure 
just to set this to be the same as linux.

I can't seem to build the cygwin1.dll so I could replace it (are there any 
instructions on how to create an identical copy to the release?  I didn't see 
any on the FAQ, and ./configure;make generates a file 8x larger, and it 
complained about something with the address).

I think just changing it in the pthread.h and recompiling the dll will fix it.  
Note that the attribute is invisible since you need not bother with the attr 
structure and parameter when doing defaults.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/