winbox stopped working on my Mac

I had been running winbox using wine for years on my macbook pro, it’s only recently that it stopped working and I am trying to find out why…

  • I have upgraded wine to the latest stable v8.0
  • I have downloaded a fresh new copy of winbox.exe v3.37
  • Made sure permissions from macos are allowed via the “Privacy & Security” tab of settings
  • MacOS Ventura v13.3.1, M1 chip

This is my iMac that has the problem… I can still run winbox on my macbook pro, which uses wine 6.0.2 and the same MacOS version (13.3.1), so I am guessing this is a problem particular to my iMac…

When I run winbox from the command line via wine, I get the error bellow:

$ wine64 winbox64.exe
0074:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0024:err:dnsapi:DllMain No libresolv support, expect problems
0024:err:module:LdrInitializeThunk "ws2_32.dll" failed to initialize, aborting
0024:err:module:LdrInitializeThunk Initializing dlls for L"Z:\\Users\\thanpolas\\Documents\\winbox\\winbox64.exe" failed, status c0000142

I’ve run out of ideas, any tips / help?

Another one affected with the same problem.

To me it looks like wine upgrade broke things …

Did you try the 32bit version of winbox ?

Please Mikrotik come up with a solution here to have Winbox natively on MacOS (Apple Silicon) rather than on the mercy of Wine.

32 bit and 64 bit Winbox not working MacOS 13.3.1 for weeks now!

This dependancy is killing me

+1

I don’t know which interfaces you’re using or what is your exact set-up. But if you use it as a router with dhcp server, then yes better not change anything and just allow winbox on input of the firewall, or use vpn if its on a public network.

Sorry but this is irrelevant to the thread. Winbox doesnt work, ie. it doesnt start/open…

winbox64.exe works fine with wine64 on macOS 13.3 and 13.4

Reinstall wine64 https://github.com/Gcenx/macOS_Wine_builds/releases/download/8.7/wine-devel-8.7-osx86.tar.xz
Open “Wine devel”
Screenshot 2023-05-10 at 13.48.43.png

Wine issues on the last few 13.x builds. had issues with wine-devel with bad battery drain.

Anyone my point is Wine is a challenge and really asking Mikrotik for a native solution for Apple Silicon here not playing cat and mouse with Wine.

Like I said, Wine 8.7 64bit works fine on M1 MBP. Just had the issue like in this thread, killed all wine processes, installed Wine 8.7 and working good now.

Strongly demand a not wine macOS version of Winbox.

I appreciate that it works now but a few weeks ago it didnt. It still needs Rosetta and devel version of Wine.
Had other issues with Wine Devel killing my M1 battery in a few hours.

All I am asking for is a more native solution here and remove the dependancy on Wine

For those who want more convenient way to run windows apps using wine directly from MacOS Finder here is AppleScript which can be added into Automator app:

on run {input, parameters}
  if (count of input) > 0 then
    set exePath to POSIX path of item 1 of input as string
    set exeDir to characters 1 thru -((offset of "/" in (reverse of items of exePath as string)) + 1) of exePath as string
    do shell script "nohup bash -lc \"cd '" & exeDir & "' && wine64 '" & exePath & "'\" >/dev/null 2>&1 &"
  end if
  return input
end run

Create Automator app, ex: winrun.app with this script above and assign that app in “Get Info->Open With” for files with .exe extension.
Commands in do shell script… needs to be in PATH env. or add full path for these binaries in script.

I’m running with this Windows applications on Mac for a long time, its great for small programs like Winbox.

This may be a dll error and can be solved by downloading ws2_32.dll file from the website and installing it in your system.

I found the solution on a reddit comment:


You’ll need to use wine-devel as macOS Ventura 13.3 increased the size of some dylibs this screwed with how preloader works, this issue was already resolved in wine-devel see Bugzilla 54420

I use Codeweavers wine mod., https://github.com/Gcenx/winecx, builds from https://github.com/Gcenx/WineskinServer, never had these problems on macOS.

$ wine --version
wine-7.7 (WineskinCX 22.0.1)