public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Ugrent !! Reg. Executing the EXE generated by Cygwin
@ 2008-06-13  9:48 Mani kandan
  2008-06-13 19:40 ` Mark Geisert
  2008-06-14  8:50 ` Yitzchak Scott-Thoennes
  0 siblings, 2 replies; 9+ messages in thread
From: Mani kandan @ 2008-06-13  9:48 UTC (permalink / raw)
  To: cygwin

This problem is probably due to using incompatible versions of the cygwin DLL.
> Search for cygwin1.dll using the Windows Start->Find/Search facility
> and delete all but the most recent version.  The most recent version *should*
> reside in x:\cygwin\bin, where 'x' is the drive on which you have
> installed the cygwin distribution.  Rebooting is also suggested if you
> are unable to find another cygwin DLL.
>
> We have made sure that we use the same version of cygwin1.dll while
> building the exe and while running it on the server.
> What are the possible reasons for this? Are there any other solutions to this?

The most likely reason and the solution for it were already provided to you by
Cygwin itself.  See above.  Have you read and performed those instructions?

===========================================

Yes, we have read and performed those instruction. We have placed the
cygwin1.dll in current working folder which is inside the
c:\cygwin\bin folder while generating  the exe. We have checked the
size of the dll also. Both are same size .
Then wt are the possible reasons for this 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/

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

* Re: Ugrent !! Reg. Executing the EXE generated by Cygwin
  2008-06-13  9:48 Ugrent !! Reg. Executing the EXE generated by Cygwin Mani kandan
@ 2008-06-13 19:40 ` Mark Geisert
  2008-06-13 20:21   ` Lee
  2008-06-14  8:50 ` Yitzchak Scott-Thoennes
  1 sibling, 1 reply; 9+ messages in thread
From: Mark Geisert @ 2008-06-13 19:40 UTC (permalink / raw)
  To: cygwin

Mani kandan writes: 
> This problem is probably due to using incompatible versions of the cygwin DLL.
> > Search for cygwin1.dll using the Windows Start->Find/Search facility
> > and delete all but the most recent version.  The most recent version 
*should*
> > reside in x:\cygwin\bin, where 'x' is the drive on which you have
> > installed the cygwin distribution.  Rebooting is also suggested if you
> > are unable to find another cygwin DLL.
> >
> > We have made sure that we use the same version of cygwin1.dll while
> > building the exe and while running it on the server.
> > What are the possible reasons for this? Are there any other solutions to 
this?
[...]
> Yes, we have read and performed those instruction. We have placed the
> cygwin1.dll in current working folder which is inside the
> c:\cygwin\bin folder while generating  the exe. We have checked the
> size of the dll also. Both are same size .
> Then wt are the possible reasons for this problem??

I must be missing some critical detail in your description.  Are you talking 
about two different machines, building an EXE on one and then running it on 
another?  What do you mean by "placing cygwin1.dll in the current working 
folder"?

There can be only one cygwin1.dll on the machine, put where it's supposed to be 
by using the Cygwin setup.exe.  You can't just put another copy of cygwin1.dll 
somewhere else on that machine.

..mark


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

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

* Re: Ugrent !! Reg. Executing the EXE generated by Cygwin
  2008-06-13 19:40 ` Mark Geisert
@ 2008-06-13 20:21   ` Lee
  2008-06-13 21:04     ` Larry Hall (Cygwin)
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Lee @ 2008-06-13 20:21 UTC (permalink / raw)
  To: cygwin

> There can be only one cygwin1.dll on the machine, put where it's supposed to be
> by using the Cygwin setup.exe.  You can't just put another copy of cygwin1.dll
> somewhere else on that machine.

Yes, you can.

http://msdn.microsoft.com/en-us/library/ms682586.aspx
Dynamic-Link library search order
   A system can contain multiple versions of the same dynamic-link
library (DLL).


That said .. wasn't there something recently on this list about not
being able to find cygwin1.dll using the windows search?  Probably
either attrib or dir from a command prompt would find it - eg:

C:\>attrib cygwin1.dll /s
           C:\Cygwin\bin\cygwin1.dll
           C:\Cygwin\source\tcptrace\cygwin-libs\win9x\cygwin1.dll
           C:\Cygwin\source\tcptrace\cygwin-libs\winNT\cygwin1.dll
           C:\Cygwin\source\tcptrace\cygwin-libs\cygwin1.dll
           C:\MyProgs\John\run\cygwin1.dll
           C:\MyProgs\TCPtrace\cygwin1.dll
           C:\MyProgs\win_xplot\bin\win9x\cygwin1.dll
           C:\MyProgs\win_xplot\bin\winNT\cygwin1.dll
           C:\UTIL\cygwin1.dll
C:\>

Regards,
Lee

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

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

* Re: Ugrent !! Reg. Executing the EXE generated by Cygwin
  2008-06-13 20:21   ` Lee
@ 2008-06-13 21:04     ` Larry Hall (Cygwin)
  2008-06-14  3:10     ` Christopher Faylor
  2008-06-15 17:04     ` Thorsten Kampe
  2 siblings, 0 replies; 9+ messages in thread
From: Larry Hall (Cygwin) @ 2008-06-13 21:04 UTC (permalink / raw)
  To: cygwin

Lee wrote:
>> There can be only one cygwin1.dll on the machine, put where it's supposed to be
>> by using the Cygwin setup.exe.  You can't just put another copy of cygwin1.dll
>> somewhere else on that machine.
> 
> Yes, you can.
> 
> http://msdn.microsoft.com/en-us/library/ms682586.aspx
> Dynamic-Link library search order
>    A system can contain multiple versions of the same dynamic-link
> library (DLL).

...if you know what you're doing.  If you don't, keep only the one that
'setup.exe' installs and keep it where it installed it.  Doing anything
else assumes that you know what you're doing and that you don't have to
query this list when something goes wrong.  That's why we recommend to
folks that inquire to keep one copy only.  Any other configuration is
unsupported by this list due to the complexities it introduces.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

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

* Re: Ugrent !! Reg. Executing the EXE generated by Cygwin
  2008-06-13 20:21   ` Lee
  2008-06-13 21:04     ` Larry Hall (Cygwin)
@ 2008-06-14  3:10     ` Christopher Faylor
  2008-06-15 17:04     ` Thorsten Kampe
  2 siblings, 0 replies; 9+ messages in thread
From: Christopher Faylor @ 2008-06-14  3:10 UTC (permalink / raw)
  To: cygwin

On Fri, Jun 13, 2008 at 07:40:25PM +0000, Lee wrote:
>> There can be only one cygwin1.dll on the machine, put where it's supposed to be
>> by using the Cygwin setup.exe.  You can't just put another copy of cygwin1.dll
>> somewhere else on that machine.
>
>Yes, you can.
>
>http://msdn.microsoft.com/en-us/library/ms682586.aspx
>Dynamic-Link library search order
>   A system can contain multiple versions of the same dynamic-link
>library (DLL).

Wow!

>That said .. wasn't there something recently on this list about not
>being able to find cygwin1.dll using the windows search?  Probably
>either attrib or dir from a command prompt would find it - eg:
>
>C:\>attrib cygwin1.dll /s
>           C:\Cygwin\bin\cygwin1.dll
>           C:\Cygwin\source\tcptrace\cygwin-libs\win9x\cygwin1.dll
>           C:\Cygwin\source\tcptrace\cygwin-libs\winNT\cygwin1.dll
>           C:\Cygwin\source\tcptrace\cygwin-libs\cygwin1.dll
>           C:\MyProgs\John\run\cygwin1.dll
>           C:\MyProgs\TCPtrace\cygwin1.dll
>           C:\MyProgs\win_xplot\bin\win9x\cygwin1.dll
>           C:\MyProgs\win_xplot\bin\winNT\cygwin1.dll
>           C:\UTIL\cygwin1.dll

The fact that you *can* do this doesn't mean that it is a good practice
to do this.  In fact, the error message that started out this thread
clearly showed that there are problems.

We tend to offer unequivocal advice to confused end users who don't
exactly know what they are doing since it is bad practice to advise them
to play with multiple versions of cygwin.  Most of the time they have a
copy on their system that they don't know about and are better off
deleting it.

Trying to instruct someone in the rules involved in dll searches is
not really a fruitful endeavor in the long run.

So, what I'm saying is that go ahead and pat yourself on the back for
figuring out how to use multiple versions of cygwin.  It is still a bad
idea and should not be encouraged for the normal user.
--
Christopher Faylor			spammer? ->	aaaspam@sourceware.org
Cygwin Co-Project Leader

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

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

* Re: Ugrent !! Reg. Executing the EXE generated by Cygwin
  2008-06-13  9:48 Ugrent !! Reg. Executing the EXE generated by Cygwin Mani kandan
  2008-06-13 19:40 ` Mark Geisert
@ 2008-06-14  8:50 ` Yitzchak Scott-Thoennes
  1 sibling, 0 replies; 9+ messages in thread
From: Yitzchak Scott-Thoennes @ 2008-06-14  8:50 UTC (permalink / raw)
  To: cygwin

On Fri, June 13, 2008 2:23 am, Mani kandan wrote:
> This problem is probably due to using incompatible versions of the cygwin
> DLL.
>
>> Search for cygwin1.dll using the Windows Start->Find/Search facility
>> and delete all but the most recent version.  The most recent version
>> *should*
>> reside in x:\cygwin\bin, where 'x' is the drive on which you have
>> installed the cygwin distribution.  Rebooting is also suggested if you
>> are unable to find another cygwin DLL.
>>
>> We have made sure that we use the same version of cygwin1.dll while
>> building the exe and while running it on the server. What are the
>> possible reasons for this? Are there any other solutions to this?
>
> The most likely reason and the solution for it were already provided to
> you by Cygwin itself.  See above.  Have you read and performed those
> instructions?
>
> ===========================================
>
>
> Yes, we have read and performed those instruction. We have placed the
> cygwin1.dll in current working folder which is inside the c:\cygwin\bin
> folder while generating  the exe. We have checked the size of the dll
> also. Both are same size . Then wt are the possible reasons for this
> problem??

You have misunderstood the problem.  It has nothing to do with
incompatibilities between the dll used to build an exe and to run it.
The problem is having multiple versions of the dll running on the same
machine at the same time.  Please re-read cygwin's advice with this
in mind.


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

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

* Re: Ugrent !! Reg. Executing the EXE generated by Cygwin
  2008-06-13 20:21   ` Lee
  2008-06-13 21:04     ` Larry Hall (Cygwin)
  2008-06-14  3:10     ` Christopher Faylor
@ 2008-06-15 17:04     ` Thorsten Kampe
  2 siblings, 0 replies; 9+ messages in thread
From: Thorsten Kampe @ 2008-06-15 17:04 UTC (permalink / raw)
  To: cygwin

* Lee (Fri, 13 Jun 2008 19:40:25 +0000)
> > There can be only one cygwin1.dll on the machine, put where it's
> > supposed to be by using the Cygwin setup.exe. You can't just put
> > another copy of cygwin1.dll somewhere else on that machine.
> 
> Yes, you can.
> 
> http://msdn.microsoft.com/en-us/library/ms682586.aspx
> Dynamic-Link library search order
> A system can contain multiple versions of the same dynamic-link
> library (DLL).

True for DLLs in general - false for cygwin1.dll. Read 
http://cygwin.com/faq/faq-nochunks.html#faq.using.multiple-copies

Thorsten


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

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

* Re: Ugrent !! Reg. Executing the EXE generated by Cygwin
  2008-06-13  9:08 Mani kandan
@ 2008-06-13  9:23 ` Mark Geisert
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Geisert @ 2008-06-13  9:23 UTC (permalink / raw)
  To: cygwin

Mani kandan writes:
> This problem is probably due to using incompatible versions of the cygwin DLL.
> Search for cygwin1.dll using the Windows Start->Find/Search facility
> and delete all but the most recent version.  The most recent version *should*
> reside in x:\cygwin\bin, where 'x' is the drive on which you have
> installed the cygwin distribution.  Rebooting is also suggested if you
> are unable to find another cygwin DLL.
> 
> We have made sure that we use the same version of cygwin1.dll while
> building the exe and while running it on the server.
> What are the possible reasons for this? Are there any other solutions to this?

The most likely reason and the solution for it were already provided to you by 
Cygwin itself.  See above.  Have you read and performed those instructions?

..mark



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

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

* Ugrent !! Reg. Executing the EXE generated by Cygwin
@ 2008-06-13  9:08 Mani kandan
  2008-06-13  9:23 ` Mark Geisert
  0 siblings, 1 reply; 9+ messages in thread
From: Mani kandan @ 2008-06-13  9:08 UTC (permalink / raw)
  To: cygwin

Hi,

We have built an exe in cygwin which calls a .bat file which inturn
invokes another cygwin generate exe.
When we run exe in Windows 2003 Server, we get the following error.

 69750 [main] ? (5536) C:\cygwin\bin\sh.exe: *** fatal error - cygheap base mis
match detected - 0x9F88E0/0x611688E0.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.

We have made sure that we use the same version of cygwin1.dll while
building the exe and while running it on the server.
What are the possible reasons for this? Are there any other solutions to this?

Regards
Mani

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

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

end of thread, other threads:[~2008-06-14 15:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-13  9:48 Ugrent !! Reg. Executing the EXE generated by Cygwin Mani kandan
2008-06-13 19:40 ` Mark Geisert
2008-06-13 20:21   ` Lee
2008-06-13 21:04     ` Larry Hall (Cygwin)
2008-06-14  3:10     ` Christopher Faylor
2008-06-15 17:04     ` Thorsten Kampe
2008-06-14  8:50 ` Yitzchak Scott-Thoennes
  -- strict thread matches above, loose matches on Subject: below --
2008-06-13  9:08 Mani kandan
2008-06-13  9:23 ` Mark Geisert

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).