public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: cygwin on wine
@ 2000-03-05 14:28 Uwe Bonnes
  2000-03-05 14:54 ` Chris Faylor
  0 siblings, 1 reply; 12+ messages in thread
From: Uwe Bonnes @ 2000-03-05 14:28 UTC (permalink / raw)
  To: cygwin

Hallo,

both the cygwin tools and cygwin compiled programs _should_ work with
wine.  I use mingw on linux to compile (small)test programs for my Wine
hacking.

If things don't work, it is well worth a posting on
comp.os.emulatoirs.ms-windows.wine or the Wine-Devel Mailinglist
wine-devel@winehq.com.

As this is open source, things should be easier to fix, beside the
pending wine limitations ( missing process separation(hopefully soon
to be changed) and inability to run VXDs).

Bye

Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Free Software: If you contribute nothing, expect nothing
--

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: cygwin on wine
  2000-03-05 14:28 cygwin on wine Uwe Bonnes
@ 2000-03-05 14:54 ` Chris Faylor
  2000-03-05 15:22   ` Peter Dufault
  0 siblings, 1 reply; 12+ messages in thread
From: Chris Faylor @ 2000-03-05 14:54 UTC (permalink / raw)
  To: cygwin; +Cc: bon

On Sun, Mar 05, 2000 at 11:31:30PM +0100, Uwe Bonnes wrote:
>both the cygwin tools and cygwin compiled programs _should_ work with
>wine.  I use mingw on linux to compile (small)test programs for my Wine
>hacking.
>
>If things don't work, it is well worth a posting on
>comp.os.emulatoirs.ms-windows.wine or the Wine-Devel Mailinglist
>wine-devel@winehq.com.
>
>As this is open source, things should be easier to fix, beside the
>pending wine limitations ( missing process separation(hopefully soon
>to be changed) and inability to run VXDs).

It is easy to verify that cygwin tools like "sh" do not run on Wine.
Here is the output:

> wine "sh -c 'ls; sleep 20'"
err:win32:fixup_imports No implementation for KERNEL32.dll.622(SetTapeParameters), setting to 0xdeadbeef
fixme:console:SetConsoleCtrlHandler (0x6100af50,0) - no error checking or testing yet
fixme:console:SetConsoleCtrlHandler (0x6100af50,1) - no error checking or testing yet
fixme:security:LookupAccountSidA ((null),sid=0x61085704,0x42defbcc,0x42defbc8(20),0x42defb4c,0x42defb48(100),0x42defb44): semi-stub
ls: not foundConsole: Making console complex (creating an xterm)...
zsh: terminated  wine "sh -c 'ls; sleep 20'"

An xterm flashes quickly on the screen and then disappears.

This is what I meant when I said "No.  Cygwin does not run under Wine."

Possibly somebody who is really interested in getting cygwin working
under wine will be interested in tracking this down.  I just tried this
because this question pops up from time to time and I wanted to be able
to answer the question.

Oh:

wine -v
Wine release 20000227

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: cygwin on wine
  2000-03-05 14:54 ` Chris Faylor
@ 2000-03-05 15:22   ` Peter Dufault
  2000-03-06  1:28     ` Uwe Bonnes
  0 siblings, 1 reply; 12+ messages in thread
From: Peter Dufault @ 2000-03-05 15:22 UTC (permalink / raw)
  To: cygwin; +Cc: bon

> It is easy to verify that cygwin tools like "sh" do not run on Wine.
> Here is the output:
> 
> > wine "sh -c 'ls; sleep 20'"
> err:win32:fixup_imports No implementation for KERNEL32.dll.622(SetTapeParameters), setting to 0xdeadbeef
> fixme:console:SetConsoleCtrlHandler (0x6100af50,0) - no error checking or testing yet
> fixme:console:SetConsoleCtrlHandler (0x6100af50,1) - no error checking or testing yet
> fixme:security:LookupAccountSidA ((null),sid=0x61085704,0x42defbcc,0x42defbc8(20),0x42defb4c,0x42defb48(100),0x42defb44): semi-stub
> ls: not foundConsole: Making console complex (creating an xterm)...
> zsh: terminated  wine "sh -c 'ls; sleep 20'"
> 
> An xterm flashes quickly on the screen and then disappears.
> 
> This is what I meant when I said "No.  Cygwin does not run under Wine."
> 
> Possibly somebody who is really interested in getting cygwin working
> under wine will be interested in tracking this down.  I just tried this
> because this question pops up from time to time and I wanted to be able
> to answer the question.

Here's a long winded answer:

The answer is: Yes, sort of.  I got enough of "Cygwin under Wine"
working so that I could run the Cygwin programs (that I build in a
cross environment) under wine to verify they are working.
This lets me develop and test programs under Unix, cross build
it for WIN32 under Unix, and verify that it runs using Cygwin using Wine.

This is useful. I want to test programs targetted for a Windows
box on an open source system, and this setup lets me it without
any MS software at all.  I don't have a single Windows box in
the office.  However, any program that needs to exec (see
below) will fail and so you can't run shells and debuggers.

The issues are primarily with Wine, in that some of the tricks that
Cygwin uses aren't that important in many Windows programs and so
aren't implemented in Wine.

The first problem you'll find is that Cygwin's method of determining
what is at the other end of a file descriptor isn't handled cleanly
by Wine, resulting in opening /etc/passwd as a terminal.

I hacked Wine up enough so that that worked, I can provide the
patches (I'm not proud).  This will let you run most any Cygwin
program that doesn't try to exec.  This is enough to test the
programs you build, UNTIL you get to programs that fail only in
WIN32 (as I have had recently).  So now I want more of Cygwin
working so that I can run gdb under Cygwin.

This brings out that Wine can't handle programs without a RELOC
section.  I puzzled that out last week and built a shell with a
RELOC section that sort of worked, but there are still issues
similar to the first one I mentioned that keep it from working
fully.  The "sh -c ls" example will work, though.

It is all very solvable for someone who wants
it to work and has the time.  I'm going to continue doing this
at a low level as time permits (unless someone wants to fund me).

Peter

--

Peter Dufault (dufault@hda.com)   Realtime development, Machine control,
HD Associates, Inc.               Fail-Safe systems, Agency approval

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: cygwin on wine
  2000-03-05 15:22   ` Peter Dufault
@ 2000-03-06  1:28     ` Uwe Bonnes
  2000-03-06  1:38       ` Uwe Bonnes
  0 siblings, 1 reply; 12+ messages in thread
From: Uwe Bonnes @ 2000-03-06  1:28 UTC (permalink / raw)
  To: Peter Dufault; +Cc: cygwin, bon

Peter Dufault writes:
> > It is easy to verify that cygwin tools like "sh" do not run on Wine.
> > Here is the output:
> > 
> > > wine "sh -c 'ls; sleep 20'"
> > err:win32:fixup_imports No implementation for KERNEL32.dll.622(SetTapeParameters), setting to 0xdeadbeef
It seems it will be enough to stub this function. I will do and send a 
patch for the wine CVS tree.

> > fixme:console:SetConsoleCtrlHandler (0x6100af50,0) - no error checking or testing yet
> > fixme:console:SetConsoleCtrlHandler (0x6100af50,1) - no error checking or testing yet
> > fixme:security:LookupAccountSidA ((null),sid=0x61085704,0x42defbcc,0x42defbc8(20),0x42defb4c,0x42defb48(100),0x42defb44): semi-stub
> > ls: not foundConsole: Making console complex (creating an xterm)...
> > zsh: terminated  wine "sh -c 'ls; sleep 20'"
> > 
> > An xterm flashes quickly on the screen and then disappears.

Have to look for it.
...
> This is useful. I want to test programs targetted for a Windows
> box on an open source system, and this setup lets me it without
> any MS software at all.  I don't have a single Windows box in
> the office.  However, any program that needs to exec (see
> below) will fail and so you can't run shells and debuggers.
> 
This is what I ment by "missing process separetion". It seems that the 
programs you use are stipped of their relocation information and at
the present time Wine can't load another program at the same place, so 
the relocation info is needed.

> The issues are primarily with Wine, in that some of the tricks that
> Cygwin uses aren't that important in many Windows programs and so
> aren't implemented in Wine.
> 
> The first problem you'll find is that Cygwin's method of determining
> what is at the other end of a file descriptor isn't handled cleanly
> by Wine, resulting in opening /etc/passwd as a terminal.
> 
> I hacked Wine up enough so that that worked, I can provide the
> patches (I'm not proud).  This will let you run most any Cygwin
> program that doesn't try to exec.  This is enough to test the
> programs you build, UNTIL you get to programs that fail only in
> WIN32 (as I have had recently).  So now I want more of Cygwin
> working so that I can run gdb under Cygwin.
> 
There is work going on with getting native debuggers to run in
wine. The changes aren't in CVS yet

> This brings out that Wine can't handle programs without a RELOC
> section.  I puzzled that out last week and built a shell with a
> RELOC section that sort of worked, but there are still issues
> similar to the first one I mentioned that keep it from working
> fully.  The "sh -c ls" example will work, though.
> 
Please report your patches (hacks) and findings on the
wine-devel@winehq.com list.

> It is all very solvable for someone who wants
> it to work and has the time.  I'm going to continue doing this
> at a low level as time permits (unless someone wants to fund me).
> 

Bye

Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: cygwin on wine
  2000-03-06  1:28     ` Uwe Bonnes
@ 2000-03-06  1:38       ` Uwe Bonnes
  0 siblings, 0 replies; 12+ messages in thread
From: Uwe Bonnes @ 2000-03-06  1:38 UTC (permalink / raw)
  To: Uwe Bonnes; +Cc: Peter Dufault, cygwin

Uwe Bonnes writes:
> 
> Have to look for it.
Sorry, I meant:

I will have a look at it.

Bye

Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: CygWin on WinE
  2005-05-16 15:30 CygWin on WinE Rafal Kupiec
@ 2005-05-16 15:53 ` Larry Hall
  0 siblings, 0 replies; 12+ messages in thread
From: Larry Hall @ 2005-05-16 15:53 UTC (permalink / raw)
  To: Rafal Kupiec, cygwin

At 10:16 AM 5/15/2005, you wrote:
>I readed somewhere in Internet thats is any way to run CygWin
>applications like bash on WinE. How can I do it?

Perhaps you should look at how to run Wine first.  Then it might be more
obvious to you how you would run Cygwin.  That is, unless you're having
a specific problem.  If that's the case, you should state what that problem 
is.  All in all though, running Cygwin under Wine isn't considered to be an 
important goal for this project so there hasn't been allot of discussion of 
it here. 


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


--
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] 12+ messages in thread

* CygWin on WinE
@ 2005-05-16 15:30 Rafal Kupiec
  2005-05-16 15:53 ` Larry Hall
  0 siblings, 1 reply; 12+ messages in thread
From: Rafal Kupiec @ 2005-05-16 15:30 UTC (permalink / raw)
  To: cygwin

I readed somewhere in Internet thats is any way to run CygWin
applications like bash on WinE. How can I do it?


--
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] 12+ messages in thread

* RE: cygwin on wine
  2000-03-04 21:09     ` Chris Faylor
@ 2000-03-04 23:39       ` Larry Rau
  0 siblings, 0 replies; 12+ messages in thread
From: Larry Rau @ 2000-03-04 23:39 UTC (permalink / raw)
  To: cygwin

> 
> On Fri, Mar 03, 2000 at 09:27:57PM -0500, Larry Rau wrote:
> >> Why don't you try to run Cygwin, running on Win32 within wine on a
> >> Linux running within VMWare running on a Windows 98 within a
> >> VMWare running on a Linux-Machine?
> >I'm confused! :)  [I thought VMware only ran on NT...which then
> >you could run linux, win98, etc...]
> 
> VMware runs on NT and linux.

oops.  I was referring to NT vs Win98. From my understanding
it will not run in win98 (understandable). 

> FYI, the answer to your question is "No.  Cygwin does not run under
> Wine."

thanks for the info.

...larry
 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: cygwin on wine
  2000-03-03 18:25   ` Larry Rau
@ 2000-03-04 21:09     ` Chris Faylor
  2000-03-04 23:39       ` Larry Rau
  0 siblings, 1 reply; 12+ messages in thread
From: Chris Faylor @ 2000-03-04 21:09 UTC (permalink / raw)
  To: cygwin

On Fri, Mar 03, 2000 at 09:27:57PM -0500, Larry Rau wrote:
>> Why don't you try to run Cygwin, running on Win32 within wine on a
>> Linux running within VMWare running on a Windows 98 within a
>> VMWare running on a Linux-Machine?
>I'm confused! :)  [I thought VMware only ran on NT...which then
>you could run linux, win98, etc...]

VMware runs on NT and linux.

FYI, the answer to your question is "No.  Cygwin does not run under
Wine."

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: cygwin on wine
  2000-03-03 17:57 ` Martin Henne
@ 2000-03-03 18:25   ` Larry Rau
  2000-03-04 21:09     ` Chris Faylor
  0 siblings, 1 reply; 12+ messages in thread
From: Larry Rau @ 2000-03-03 18:25 UTC (permalink / raw)
  To: email, cygwin

> Why don't you try to run Cygwin, running on Win32 within wine on a
> Linux running within VMWare running on a Windows 98 within a
> VMWare running on a Linux-Machine?
I'm confused! :)  [I thought VMware only ran on NT...which then
you could run linux, win98, etc...]

> I've enough trouble running everthing well without those games... :-)
> 
> To be serious: Why? I'm really interested in that reason.

yes. I almost included an explanation but decided to keep the
question simple.  But now I'll answer the dreaded why question....

We (our company) do cross-development hosted on both win32 and
Linux.  We use gnu tools and use cygwin for the build env on win32
to avoid multiple makefiles, etc.  One of our linux guys wanted
to build tools that could then be used by our win32 guys.  He 
could either do a canadian cross or wondered if cygwin would just
execute under wine. Thus allowing him to avoid setting up a win32
machine or doing the canadian cross.  Rather then embark down the
cygwin/wine path to find it doesn't work, we thought we may get
a quick answer from other's who have tried.  So we are not mad
we have reasons! :)

....thanks....larry

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: cygwin on wine
  2000-03-03 17:22 cygwin on wine Larry Rau
@ 2000-03-03 17:57 ` Martin Henne
  2000-03-03 18:25   ` Larry Rau
  0 siblings, 1 reply; 12+ messages in thread
From: Martin Henne @ 2000-03-03 17:57 UTC (permalink / raw)
  To: Larry Rau, cygwin

Larry Rau wrote:

> Will cygwin programs run in wine on
> linux?
>
> ...thanks...larry
>

Why don't you try to run Cygwin, running on Win32 within wine on a
Linux running within VMWare running on a Windows 98 within a
VMWare running on a Linux-Machine?

I've enough trouble running everthing well without those games... :-)

To be serious: Why? I'm really interested in that reason.

Martin

>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* cygwin on wine
@ 2000-03-03 17:22 Larry Rau
  2000-03-03 17:57 ` Martin Henne
  0 siblings, 1 reply; 12+ messages in thread
From: Larry Rau @ 2000-03-03 17:22 UTC (permalink / raw)
  To: cygwin

Will cygwin programs run in wine on
linux?

...thanks...larry

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2005-05-16 15:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-05 14:28 cygwin on wine Uwe Bonnes
2000-03-05 14:54 ` Chris Faylor
2000-03-05 15:22   ` Peter Dufault
2000-03-06  1:28     ` Uwe Bonnes
2000-03-06  1:38       ` Uwe Bonnes
  -- strict thread matches above, loose matches on Subject: below --
2005-05-16 15:30 CygWin on WinE Rafal Kupiec
2005-05-16 15:53 ` Larry Hall
2000-03-03 17:22 cygwin on wine Larry Rau
2000-03-03 17:57 ` Martin Henne
2000-03-03 18:25   ` Larry Rau
2000-03-04 21:09     ` Chris Faylor
2000-03-04 23:39       ` Larry Rau

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