Cygwin1.dll question

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Tony Thomas

Cygwin1.dll question

Post by Tony Thomas »

Do I need to have cygwin1.dll in the same directory as the engine that uses it? I just noticed that a significant amount of engines on my no play list uses cygwin and I think that could be one of the key problems.

Thanks in advance
Tony
Marc Lacrosse
Posts: 511
Joined: Wed Mar 08, 2006 10:05 pm

Re: Cygwin1.dll question

Post by Marc Lacrosse »

Tony Thomas wrote:Do I need to have cygwin1.dll in the same directory as the engine that uses it? I just noticed that a significant amount of engines on my no play list uses cygwin and I think that could be one of the key problems.

Thanks in advance
Tony
The answer is "yes" unless you put cygwin1.dll in one of the "system" folders.

But having a common cygwin1.dll for every user is not a good solution : there are many different subversions of this dll and they are not perfectly compatible between each other : some engine will require a precise cygwin and won't run with another one. So it's best to keep an engine together with the version of the dll that suits it better.

The same is true for winboard and polyglot.

A final point : if an engine does work with several different versions of cygwin it may well happen than its speed may vary according to which dll is used : this is worth a little testing in each case (i don't know for engines but this has been well documented for the polyglot adaptor itself).

Marc
Tony Thomas

Re: Cygwin1.dll question

Post by Tony Thomas »

Most of the engines were working fine until few days ago when I installed the gnuchess Gazebo version. It was the first engine to give the following warning in console mode and under arena.


C:\Documents and Settings\Owner\Desktop\arena_11\Engines\GnuChess_5.0_(gazebo)_win32\gnuchess.exe: *** fatal error - system shared memory version mismatch detected - 0x2D1E009C/0x8A88009C
16828<1:This problem is probably due to using incompatible versions of the cygwin DLL.
16828<1:Search for cygwin1.dll using the Windows Start->Find/Search facility
16828<1:and delete all but the most recent version. The most recent version *should*
16828<1:reside in x:\cygwin\bin, where 'x' is the drive on which you have
16843<1:installed the cygwin distribution. Rebooting is also suggested if you
16843<1:are unable to find another cygwin DLL.
As technically challenged as I am, I deleted all the other cygwin1.dll's and now I am in big trouble as other engines using cygwin are starting to have problems.
User avatar
Graham Banks
Posts: 45481
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Cygwin1.dll question

Post by Graham Banks »

Tony Thomas wrote:Do I need to have cygwin1.dll in the same directory as the engine that uses it? I just noticed that a significant amount of engines on my no play list uses cygwin and I think that could be one of the key problems.

Thanks in advance
Tony
It's best as Marc says.
gbanksnz at gmail.com
Marc Lacrosse
Posts: 511
Joined: Wed Mar 08, 2006 10:05 pm

Re: Cygwin1.dll question

Post by Marc Lacrosse »

Tony Thomas wrote:Most of the engines were working fine until few days ago when I installed the gnuchess Gazebo version. It was the first engine to give the following warning in console mode and under arena.

As technically challenged as I am, I deleted all the other cygwin1.dll's and now I am in big trouble as other engines using cygwin are starting to have problems.
In this case, the best way to get everything working is as follows :

1. Be sure that all cygwin1.dll copies have been deleted

2. Do get a good recent version of cygwin1.dll. For 32 bits XP or Vista the one in my package here seems to be a good choice. For 64bits windows the one in cygwin package dated 31.01.2007 (do a little googling) is better.

3. Make sure that any engine that will make use of cywin1.dll has its own folder with a copy of cygwin1.dll in it.

4. Do test each engine from the command line : type the engine name at the prompt and then either "uci" or "xboard" according to engine's protocol. I this does not work do try with another cygwin version.

And so on ...

Marc
Tony Thomas

Re: Cygwin1.dll question

Post by Tony Thomas »

Sorry for not replying early enough. I finally got the gnu engine to work, only one problem, when another engine using a different version of the .dll starts, Gnu will stop working. Thanks for the link, I am currently using version 1005.25.0.0 for most engines, and Phalanx is using the 17.0.0 version.