threads / discuss / 37225

"error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine

Subject: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine

## tl;dr

6 messages between Jul 28, 2014 and Jul 29, 2014.

replies: 5people: 4as markdown or json

Duy Nguyen· Jul 28, 2014, 10:39 UTC · lore

I know wine is kind of second citizen but is there a cheap trick to make it work on wine? Reverting fcd428f (Win32: fix broken pipe detection - 2012-03-01) could result in conflicts in compat that I'm not comfortable resolving. I don't have Windows at home. Wine is the only option for me (or if somebody has a modern.ie image for KVM, or a simple recipe to make one, that'd be great). "Fix wine" is not really an option.

-- 
Duy
Torsten Bögershausen· Jul 29, 2014, 06:30 UTC · re: Duy Nguyen · lore

Re: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine

On 07/28/2014 12:39 PM, Duy Nguyen wrote:
Show 7 quoted lines
> I know wine is kind of second citizen but is there a cheap trick to
> make it work on wine? Reverting fcd428f (Win32: fix broken pipe
> detection - 2012-03-01) could result in conflicts in compat that I'm
> not comfortable resolving. I don't have Windows at home. Wine is the
> only option for me (or if somebody has a modern.ie image for KVM, or a
> simple recipe to make one, that'd be great). "Fix wine" is not really
> an option.

Is it only that patch that needs to be reverted to make things work got wine? For me It seems as if the patch is not that huge, and manually do a copy-paste with the help of a diff tool can be done.

It seems as if even both implemenations can live side-by-side in the code.
And if there is a run-time detection for wine, we could switch between the
old one and the new one which is dependent on how MSVCRT.dll has layed out
internal data structures:
  "ioinfo structure (exposed by MSVCRT.dll via  __pioinfo"
Sorry being not more helpful
Michael Stefaniuc· Jul 29, 2014, 12:20 UTC · re: Torsten Bögershausen · lore

Re: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine

On 07/29/2014 08:30 AM, Torsten Bögershausen wrote:
Show 8 quoted lines
> On 07/28/2014 12:39 PM, Duy Nguyen wrote:
>> I know wine is kind of second citizen but is there a cheap trick to
>> make it work on wine? Reverting fcd428f (Win32: fix broken pipe
>> detection - 2012-03-01) could result in conflicts in compat that I'm
>> not comfortable resolving. I don't have Windows at home. Wine is the
>> only option for me (or if somebody has a modern.ie image for KVM, or a
>> simple recipe to make one, that'd be great). "Fix wine" is not really
>> an option.

Why is fixing Wine not an option? The guy working on MSVCRT in Wine is very responsive; all that is needed is just a bug in https://bugs.winehq.org/ and he'll look at it. Or give me more details and I'll create the bug entry.

Show 8 quoted lines
> Is it only that patch that needs to be reverted to make things work got
> wine?
> For me It seems as if the patch is not that huge, and manually do a
> copy-paste
> with the help of a diff tool can be done.
> 
> It seems as if even both implemenations can live side-by-side in the code.
> And if there is a run-time detection for wine, we could switch between the

We frown upon detecting Wine just to workaround bugs there. If one insists on workarounding Wine then please detect the broken behavior instead. That way the app will automatically use the default code path once Wine is fixed.

> old one and the new one which is dependent on how MSVCRT.dll has layed out
> internal data structures:
>  "ioinfo structure (exposed by MSVCRT.dll via  __pioinfo"
bye
	michael
Duy Nguyen· Jul 29, 2014, 13:05 UTC · re: Michael Stefaniuc · lore

Re: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine

On Tue, Jul 29, 2014 at 7:20 PM, Michael Stefaniuc <mstefani@redhat.com> wrote:
Show 13 quoted lines
> On 07/29/2014 08:30 AM, Torsten Bögershausen wrote:
>> On 07/28/2014 12:39 PM, Duy Nguyen wrote:
>>> I know wine is kind of second citizen but is there a cheap trick to
>>> make it work on wine? Reverting fcd428f (Win32: fix broken pipe
>>> detection - 2012-03-01) could result in conflicts in compat that I'm
>>> not comfortable resolving. I don't have Windows at home. Wine is the
>>> only option for me (or if somebody has a modern.ie image for KVM, or a
>>> simple recipe to make one, that'd be great). "Fix wine" is not really
>>> an option.
> Why is fixing Wine not an option? The guy working on MSVCRT in Wine is
> very responsive; all that is needed is just a bug in
> https://bugs.winehq.org/ and he'll look at it. Or give me more details
> and I'll create the bug entry.

Not an option as in "_I_ will be working on it". I don't suppose lots of people use git on wine to be worth the trouble, but then again making wine msvcrt more compatible is probably a good thing so I'll open a bug for wine.

-- 
Duy
Michael Stefaniuc· Jul 29, 2014, 13:28 UTC · re: Duy Nguyen · lore

Re: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine

On 07/29/2014 03:05 PM, Duy Nguyen wrote:
Show 19 quoted lines
> On Tue, Jul 29, 2014 at 7:20 PM, Michael Stefaniuc <mstefani@redhat.com> wrote:
>> On 07/29/2014 08:30 AM, Torsten Bögershausen wrote:
>>> On 07/28/2014 12:39 PM, Duy Nguyen wrote:
>>>> I know wine is kind of second citizen but is there a cheap trick to
>>>> make it work on wine? Reverting fcd428f (Win32: fix broken pipe
>>>> detection - 2012-03-01) could result in conflicts in compat that I'm
>>>> not comfortable resolving. I don't have Windows at home. Wine is the
>>>> only option for me (or if somebody has a modern.ie image for KVM, or a
>>>> simple recipe to make one, that'd be great). "Fix wine" is not really
>>>> an option.
>> Why is fixing Wine not an option? The guy working on MSVCRT in Wine is
>> very responsive; all that is needed is just a bug in
>> https://bugs.winehq.org/ and he'll look at it. Or give me more details
>> and I'll create the bug entry.
> 
> Not an option as in "_I_ will be working on it". I don't suppose lots
> of people use git on wine to be worth the trouble, but then again
> making wine msvcrt more compatible is probably a good thing so I'll
> open a bug for wine.

Thanks! This is actually a very important use case for Wine: Making it easy for OSS developers to test the Windows builds of their software without having to use Windows.

bye
	michael
Karsten Blees· Jul 29, 2014, 19:55 UTC · re: Duy Nguyen · lore

Re: "error: Tweaking file descriptors doesn't work with this MSVCRT.dll" on wine

Am 28.07.2014 12:39, schrieb Duy Nguyen:
Show 8 quoted lines
> I know wine is kind of second citizen but is there a cheap trick to
> make it work on wine? Reverting fcd428f (Win32: fix broken pipe
> detection - 2012-03-01) could result in conflicts in compat that I'm
> not comfortable resolving. I don't have Windows at home. Wine is the
> only option for me (or if somebody has a modern.ie image for KVM, or a
> simple recipe to make one, that'd be great). "Fix wine" is not really
> an option.
> 

Have you tried using a native msvcrt.dll instead of the Wine stub? Downloading msvcrt.dll 7.0.2600 from dll-files.com and extracting it to ~/.wine/drive_c/Windows/System32 fixed the error message for me.

(The newest versions don't work as they depend on a bunch of other dlls that you'd need too.)

← back to recent threads