This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: openssl problems while using pthreads


On Thu, Nov 22, 2001 at 06:59:57PM +0100, Stipe Tolj wrote:
> Hi list,
> 
> this one is for Corinna and Robert I guess.
> 
> I have problems with openssl functions from the latest contributed
> openssl port in daemons that use pthreads to scale.
> 
> I know that openssl should be compiled in thread-safe mode if you want
> to use threaded functions of openssl. I suppose the distributed
> openssl package is not thread-safe?

Yup.

> May the package maintainer, I guess you Corinna, try to re-compile
> using the thread-safe feature.

It compiles with threads OOTB and the `make test' is running
successfully either but I have no idea how to test if it's
actually threadsafe.  Please test it first since you need it.

The only change in the current openssh-0.9.6b-2 sources from
the net distro you have to do first is, change $(toplevel)/Configure,
line 413:

"CygWin32", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -m486 -Wall::(unknown)::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}::::::::::win32:cygwin-shared::.dll",

by removing the `(unknown)' string.  That's all.

Be sure to take the sources from the net release, not the original
sources since they are missing a Cygwin specific change!

Then configure:

	./Configure --prefix=/usr CygWin32

Then build static and shared libs:

	make
	make build-shared

If your tests with thread safety are successful, please report back.
Then I will upload a thread-safe version to sourceware.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]