WINE fail to load native dlls

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
woshizhangci
Newbie
Newbie
Posts: 2
Joined: Fri Jan 25, 2019 9:44 pm

WINE fail to load native dlls

Post by woshizhangci »

I am trying to read data from a McAfee Encrypted DVD using MfeEERM.exe decrypter.

However, the exe requires a function which is not implemented in build-in dll.

Code: Select all

0009:fixme:fltlib:FilterConnectCommunicationPort (L"\\MfeProMPort", 0, (nil), 0, (nil), 0x32e114) stub
Then I try to use native dll, I got FLTLIB.DLL not found error, even fltlib.dll is under ~/.wine/drive_c/windows/system32

Code: Select all

~$ WINEDLLOVERRIDES="fltlib=n" wine /media/sb/MCAFEE_TEST/MfeEERM.exe 
0009:err:module:import_dll Library FLTLIB.DLL (which is needed by L"D:\\MfeEERM.exe") not found
0009:err:module:attach_dlls Importing dlls for L"D:\\MfeEERM.exe" failed, status c0000135

~$ ls .wine/drive_c/windows/system32/fltlib.dll
.wine/drive_c/windows/system32/fltlib.dll
Also when I tested overriding other dlls to native, all showed XXX.DLL not found.

I have reported bug https://bugs.winehq.org/show_bug.cgi?id=46497

Test environment: Wine 4.0 rc7 in ubuntu 18.04 LTS 64-bit as Guest OS; VirtualBox 6.0 as Hypervisor on CentOS 7 as Host OS

Any thoughts? Thanks a lot!
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: WINE fail to load native dlls

Post by Bob Wya »

woshizhangci wrote:I am trying to read data from a McAfee Encrypted DVD using MfeEERM.exe decrypter.

However, the exe requires a function which is not implemented in build-in dll.

Code: Select all

0009:fixme:fltlib:FilterConnectCommunicationPort (L"\\MfeProMPort", 0, (nil), 0, (nil), 0x32e114) stub
Then I try to use native dll, I got FLTLIB.DLL not found error, even fltlib.dll is under ~/.wine/drive_c/windows/system32

Code: Select all

~$ WINEDLLOVERRIDES="fltlib=n" wine /media/sb/MCAFEE_TEST/MfeEERM.exe 
0009:err:module:import_dll Library FLTLIB.DLL (which is needed by L"D:\\MfeEERM.exe") not found
0009:err:module:attach_dlls Importing dlls for L"D:\\MfeEERM.exe" failed, status c0000135

~$ ls .wine/drive_c/windows/system32/fltlib.dll
.wine/drive_c/windows/system32/fltlib.dll
...
@woshizhangci
  • I'm presuming you've installed a native Windows fltlib.dll??!!
    Otherwise, obviously, you're just overriding a builtin dll, with a native Windows dll, that doesn't actually exist!
  • Also native 32-bit Windows library files, in a 64-bit WINEPREFIX, should go into the system directory: "${HOME}/.wine/drive_c/windows/syswow64"
Bob
woshizhangci
Newbie
Newbie
Posts: 2
Joined: Fri Jan 25, 2019 9:44 pm

Re: WINE fail to load native dlls

Post by woshizhangci »

Add fltlib.dll to "${HOME}/.wine/drive_c/windows/syswow64" from a Win7 64bit. Program ran then exited without showing GUI as supposed. No error message. Totally stuck now. Any thought?

@bob
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: WINE fail to load native dlls

Post by Bob Wya »

woshizhangci wrote:Add fltlib.dll to "${HOME}/.wine/drive_c/windows/syswow64" from a Win7 64bit. Program ran then exited without showing GUI as supposed. No error message. Totally stuck now. Any thought?
@woshizhangci,

Could you post an strace Wine log, using:

Code: Select all

export WINEDEBUG=+timestamp,+tid,+loaddll
strace wine start /unix /media/sb/MCAFEE_TEST/MfeEERM.exe 
(Note: the correct way to start Windows applications, with Wine - see: WineHQ User's Guide: 3 Using Wine)

That terminal log might be quite long... So please post it, using an online text pasting site.

Ta
bob
Locked