Bug 1180222 - wine-1.7.22-1.el7 Will not execute 32bit Windows binaries
Summary: wine-1.7.22-1.el7 Will not execute 32bit Windows binaries
Keywords:
Status: CLOSED DUPLICATE of bug 1123551
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: wine
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Andreas Bierfert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-08 16:16 UTC by Joe Greene
Modified: 2015-01-08 16:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-08 16:20:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Joe Greene 2015-01-08 16:16:59 UTC
Description of problem:
No Win32 binaries will execute. All files of type  'PE32 executable (GUI) Intel 80386, for MS Windows' fail with the error:  
wine: Bad EXE format for C:\Program Files (x86)\...

Version-Release number of selected component (if applicable):
1.7.22

How reproducible:
Consistent using RHEL 7 and CentOS 7

Steps to Reproduce:
1. Install wine (and dependencies) from the epel repository on CentOS7 or RHEL 7 AWS builds
2. execute winecfg
3. copy /usr/lib64/wine/fakedlls/mountmgr.sys to ${WINEPREFIX}/drive_c/windows/system32//drivers/mountmgr.sys (Per Bug ID 1177959 workaround)
4. winecfg - confirm drives show.
5. execute "wine ${WINEPREFIX}/drive_c/Program\ Files\ \(x86\)/AutoHotkey/AutoHotkeyU32.exe" 
6. Note error. 
7. Try it's 64bit version: execute "wine ${WINEPREFIX}/drive_c/Program\ Files\ \(x86\)/AutoHotkey/AutoHotkeyU64.exe"
8. note no error occurs. 

Actual results:
For example take this app.  A common keymapping tool:

AU3_Spy.exe:              PE32 executable (GUI) Intel 80386, for MS Windows
AutoHotkeyA32.exe:        PE32 executable (GUI) Intel 80386, for MS Windows
AutoHotkey.exe:           PE32+ executable (GUI) x86-64, for MS Windows
AutoHotkey_L_Install.exe: PE32 executable (GUI) Intel 80386, for MS Windows
AutoHotkeyU32.exe:        PE32 executable (GUI) Intel 80386, for MS Windows
AutoHotkeyU64.exe:        PE32+ executable (GUI) x86-64, for MS Windows

Note they proide both x86-64 64bit executables and 32bit 80386 executables. Only the PE32+ (x86-64) executables will run using 64bit restricted wine. All others report   
wine: Bad EXE format for C:\Program Files (x86)\AutoHotKey\AutoHotkeyU32.exe.
Even though they are valid executables.

Expected results:
The PE32 applications should execute just as the PE32+ ones do.

Additional info: A great many applications buitl in Windows only provide 32bit versions. The functionality is necessary in order for wine to be viable.

Comment 1 Michael Cronenworth 2015-01-08 16:20:32 UTC

*** This bug has been marked as a duplicate of bug 1123551 ***


Note You need to log in before you can comment on or make changes to this bug.