Wine 8.0 not finding existing DLLs

Questions about Wine on Linux
Post Reply
vine
Level 2
Level 2
Posts: 24
Joined: Wed Jun 07, 2017 7:36 pm

Wine 8.0 not finding existing DLLs

Post by vine »

Hello:

Long time user of Wine, the key/deal breaker to my finally moving to Linux (x Pegasus Mail and IrfanView).
Always worked perfectly well, to the extent of practically not having to come by the forum for help.

Started off years ago in one of the first Ubuntus, then through a four or five distributions, Bebian and now Devuan Daedalus, having just upgraded from Chimaera.

Never had an issue and it worked without a hitch after upgrading to Chimaera.
But after the upgrade to Daedalus I cannot start any Wine application as there seems to be a problem with several unfound libraries.

The first sign of trouble was traced via a terminal:

Code: Select all

~$ wine start /unix /home/groucho/.wine/drive_c/PMAIL/Programs/winpm-32.exe
This informed me that [c]wine32:i386[/c] was missing and that I should install it, which I did.
But it did not solve the problem, instead I got this:

Code: Select all

~$ wine start /unix /home/groucho/.wine/drive_c/PMAIL/Programs/winpm-32.exe
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\shell32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library zlib1.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library user32.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library gdi32.dll (which is needed by L"C:\\windows\\syswow64\\shell32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\shlwapi.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library zlib1.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library user32.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library gdi32.dll (which is needed by L"C:\\windows\\syswow64\\shlwapi.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\shcore.dll") not found
0024:err:module:import_dll Library shcore.dll (which is needed by L"C:\\windows\\syswow64\\shlwapi.dll") not found
0024:err:module:import_dll Library zlib1.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library gdi32.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library user32.dll (which is needed by L"C:\\windows\\syswow64\\shlwapi.dll") not found
0024:err:module:import_dll Library shlwapi.dll (which is needed by L"C:\\windows\\syswow64\\shell32.dll") not found
0024:err:module:import_dll Library zlib1.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library gdi32.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library user32.dll (which is needed by L"C:\\windows\\syswow64\\shell32.dll") not found
0024:err:module:import_dll Library shell32.dll (which is needed by L"C:\\windows\\syswow64\\start.exe") not found
0024:err:module:import_dll Library zlib1.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
0024:err:module:import_dll Library advapi32.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\syswow64\\gdi32.dll") not found
0024:err:module:import_dll Library gdi32.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library win32u.dll (which is needed by L"C:\\windows\\syswow64\\user32.dll") not found
0024:err:module:import_dll Library user32.dll (which is needed by L"C:\\windows\\syswow64\\start.exe") not found
0024:err:module:LdrInitializeThunk Importing dlls for L"C:\\windows\\syswow64\\start.exe" failed, status c0000135
~$

This is the Wine version I have installed in my box:

Code: Select all

~$ apt list | grep installed | grep wine*
--- snip ---
fonts-wine/stable,stable,now 8.0~repack-4 all [installed,automatic]
--- snip ---
libwine/stable,now 8.0~repack-4 amd64 [installed,automatic]
libwine/stable,now 8.0~repack-4 i386 [installed,automatic]
wine32/stable,now 8.0~repack-4 i386 [installed]
wine64/stable,now 8.0~repack-4 amd64 [installed,automatic]
wine/stable,stable,now 8.0~repack-4 all [installed]
~$

I started to look and found that some libraries are there so I supposed they are all there, it is just that Wine (for whatever reason) cannot find them.

I have seen another post with what seems to be the same problem, related to a bug in Wine 6.6 but (unless I am mistaken) the version I had was upgraded to 8.0 when I upgraded to Devuan Daedalus.

I'd appreciate some insight on this, I have never had any problems with Wine so I am rather lost.

Thanks in advance.

Best

V.
vine
Level 2
Level 2
Posts: 24
Joined: Wed Jun 07, 2017 7:36 pm

Re: Wine 8.0 not finding existing DLLs

Post by vine »

Hello:
A possibly useful update ...

I may have discovered something, albeit rather odd.

Like I mentioned, when I try to start Pegasus Mail from a terminal (ie: as the logged in user), I get this:

Code: Select all

~$ wine start /unix /home/groucho/.wine/drive_c/PMAIL/Programs/winpm-32.exe
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
--- snip ---
0024:err:module:import_dll Library user32.dll (which is needed by L"C:\\windows\\syswow64\\start.exe") not found
0024:err:module:LdrInitializeThunk Importing dlls for L"C:\\windows\\syswow64\\start.exe" failed, status c0000135
~$ 
Also happens when I try to start [c]winecfg[/c] (ie: as the logged in user):

Code: Select all

~$ winecfg
0024:err:module:import_dll Library sechost.dll (which is needed by L"C:\\windows\\syswow64\\advapi32.dll") not found
--- snip ---
0024:err:module:import_dll Library user32.dll (which is needed by L"C:\\windows\\syswow64\\start.exe") not found
0024:err:module:LdrInitializeThunk Importing dlls for L"C:\\windows\\syswow64\\start.exe" failed, status c0000135
~$
But when I try to start wine, (ie: without specifying PROGRAM [ARGUMENTS ... ] I get this:

Code: Select all

~$ wine
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version              Output version information and exit
~$ 
Turns out that it works?
I then tried both with privileges (ie: sudo) and it worked.

[c]~$ sudo winecfg[/c] gets me the Wine configuration window (for Drives/Audio/Applications/Libraries/Graphics/ Desktop Integration) pop-up.

[c]~$ wine start /unix /home/groucho/.wine/drive_c/PMAIL/Programs/winpm-32.exe[/c] gets me the Pegasus Mail start up window asking me for my username, something I have used / had to use.

But then I have never ran Wine or Pegasus Mail as root, which I know is mentioned in the FAQ as a no-go.

I cannot make out if this is a permissions / ownership problem and if so, ownership what exactly, but it does not (?) look like it is a Wine problem as it seems to work if I try to start it as root.

I have tried reinstalling wine, which went through without warnings:

Code: Select all

~$ sudo apt install --reinstall wine
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 70.6 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://deb.devuan.org/merged daedalus/main amd64 wine all 8.0~repack-4 [70.6 kB]
Fetched 70.6 kB in 8s (8709 B/s)
(Reading database ... 181668 files and directories currently installed.)
Preparing to unpack .../wine_8.0~repack-4_all.deb ...
Unpacking wine (8.0~repack-4) over (8.0~repack-4) ...
Setting up wine (8.0~repack-4) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for wine (8.0~repack-4) ...
~$ 
Dependencies met and links should be/are set up as required.

Unfortunately the problem remains.

BTW: absolutely everything under [c]/home/groucho/.wine[/c] is owned by $USER:$USER so that's not it.

Any idea as to how to troubleshoot this?

Thanks in advance.

Best,
vine
Level 2
Level 2
Posts: 24
Joined: Wed Jun 07, 2017 7:36 pm

Re: Wine 8.0 not finding existing DLLs

Post by vine »

Hello:
I wrote:... how to troubleshoot this?
I have managed to fix the problem at hand but only have a hint* as to what may have happened.
* see rsync error in log below

I have used [c]BackInTime[/c] and [c]TimeShift[/c] for the longest while now.
Both have proved to be invaluable more than once and this is yet another instance.

Seeing that Wine was working properly after upgrading to [c]Chimaera[/c] but stopped doing so after upgrading to [c]Daedalus[/c] I restored [c]/home/xxxx/.wine[/c] from the snapshot I took before the last upgrade.

As a result, Wine is working properly and loads Pegasus Mail, which also works as expected, albeit with an altered look.
ie: fonts and such, probably related to how [c]Xfce[/c] renders the windows? That's for another thread.

As to what caused the problem, the last lines of the [c]BackInTime[/c] log for the job shows/implies that there may have been some problem with file attributes:

Code: Select all

~/.local/share/backintime$ cat restore_.log
rsync --recursive --times --devices --specials --hard-links --human-readable -s --links --perms --executability --group --owner --info=progress2 --no-inc-recursive -R -v --backup --suffix=.backup.20240525 /media/300GBIT/backintime/devuan/groucho/1/20240523-084800-476/backup/./home/groucho/.wine /
building file list ... done
rsync: [generator] chgrp "/home" failed: Operation not permitted (1)
home/
home/groucho/.wine/.update-timestamp
home/groucho/.wine/system.reg
home/groucho/.wine/user.reg
home/groucho/.wine/userdef.reg
--- snip ---
sent 60.79M bytes  received 34.43K bytes  24.33M bytes/sec
total size is 721.88M  speedup is 11.87

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]  

Restore permissions:
Restore permissions: Done

~/.local/share/backintime$ 
That's about it.

But ...
What happened and how did it happen?
More importantly: what files/attrs/permissions needed to be changed and why?

Like I mentioned previously, everything under [c]/home/groucho/.wine[/c] was owned by $USER:$USER so it was not an ownership issue. Attributes maybe? No idea what went on.

All I can say with certainty is that Wine worked after upgrading from [c]Beowulf[/c] to [c]Chimaera[/c] but stopped working after upgrading to [c]Daedalus[/c]. ie: wine_4.0-2_all.deb to wine_5.0.3-3_all.deb and then to wine_8.0~repack-4_all.deb, all from the Devuan repositories.

Thank you for your input.

Best,

A.
Post Reply