Running Wine 10 configure does not pass lib checks

Somehow it links to libxkbcommon during build but not during linking?

Try with: export LDFLAGS="-lnetwork -lxkbcommon"

hmm seeing your edit, it seems you don’t have libxkbcommon installed, try installing the base and devel package for it before trying with the export … above.

I see both .so files you are showing in your screenshot in my system… What is missing?

the LDFLAGS for two libraries is not accepted
screenshot3

solved…libxkbcommon_devel was missing…now make is progressing

3 Likes

Compilation was successful… It was an interesting exercise … both wine and wine 64 were created as requested but it arrived at a “nodrv available” situation again.

1 Like

Wine 10.6 was able to run, but only with the winex11 driver. The winewayland driver is visible, but runs with an error: 0048:err:waylanddrv:wayland_process_init Wayland compositor doesn’t support wp_viewporter.


The winex11 driver works with some errors

~> winecfg
0024:fixme:ntdll:create_logical_proc_info stub
0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
002c:fixme:ntdll:create_logical_proc_info stub
002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
002c:fixme:file:get_device_info device info not properly supported on this platform
002c:err:winediag:getaddrinfo Failed to resolve your host name IP
0034:fixme:ntdll:create_logical_proc_info stub
0034:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0034:fixme:file:get_device_info device info not properly supported on this platform
003c:fixme:ntdll:create_logical_proc_info stub
003c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
003c:fixme:file:get_device_info device info not properly supported on this platform
0040:fixme:thread:set_native_thread_name not implemented on this platform
0048:fixme:ntdll:create_logical_proc_info stub
0048:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0048:fixme:file:get_device_info device info not properly supported on this platform
0050:fixme:ntdll:create_logical_proc_info stub
0050:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0050:fixme:file:get_device_info device info not properly supported on this platform
0060:fixme:thread:set_native_thread_name not implemented on this platform
wl_ips_client_connected
display: 0xe093b179a0
client: 0xe093b18cc0
0074:fixme:ntdll:create_logical_proc_info stub
0074:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0074:fixme:file:get_device_info device info not properly supported on this platform
0048:err:waylanddrv:wayland_process_init Wayland compositor doesn't support wp_viewporter
libX11: unhandled Property (get): _GTK_WORKAREAS_D0<XA_CARDINAL>
libX11: unhandled Property (get): _NET_WORKAREA<XA_CARDINAL>
0080:fixme:thread:set_native_thread_name not implemented on this platform
008c:fixme:ntdll:create_logical_proc_info stub
008c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
008c:fixme:file:get_device_info device info not properly supported on this platform
0098:fixme:thread:set_native_thread_name not implemented on this platform
libX11: warning: application opened more than one X display!
libX11: unhandled Property (get): _NET_SUPPORTED<XA_ATOM>
libX11: unhandled Property (get): _NET_ACTIVE_WINDOW<XA_WINDOW>
00a8:fixme:thread:set_native_thread_name not implemented on this platform
libX11: warning: application opened more than one X display!
libX11: unhandled Property (get): _NET_SUPPORTED<XA_ATOM>
libX11: unhandled Property (get): _NET_ACTIVE_WINDOW<XA_WINDOW>
libX11: unhandled Property (delete): SELECTION_DATA
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
00b0:fixme:ntdll:create_logical_proc_info stub
00b0:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
00b0:fixme:file:get_device_info device info not properly supported on this platform
00c8:fixme:thread:set_native_thread_name not implemented on this platform
00c4:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\winebth": c00000e5
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"winebth" failed to start: 1359
00ec:fixme:ntdll:create_logical_proc_info stub
00ec:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
00ec:fixme:file:get_device_info device info not properly supported on this platform
0108:fixme:thread:set_native_thread_name not implemented on this platform
002c:err:virtual:try_map_free_area mmap() error Bad address, range 0x7fffff440000-0x7ffffffe3000, unix_prot 0x7.
libX11: unhandled Property (get): _GTK_WORKAREAS_D0<XA_CARDINAL>
libX11: unhandled Property (get): _NET_WORKAREA<XA_CARDINAL>
0024:fixme:file:get_device_info device info not properly supported on this platform
0120:fixme:ntdll:create_logical_proc_info stub
0120:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0120:fixme:file:get_device_info device info not properly supported on this platform
0128:fixme:ntdll:create_logical_proc_info stub
0128:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0128:fixme:file:get_device_info device info not properly supported on this platform
Error parsing B_ARGV_RECEIVED message. Message:
BMessage('_ARG') {
        argc = int32(0x2 or 2)
        argv = string("C:\windows\system32\winecfg.exe", 32 bytes)
        cwd = string("/boot/home", 11 bytes)
}
libX11: unhandled Property (get): _GTK_WORKAREAS_D0<XA_CARDINAL>
libX11: unhandled Property (get): _NET_WORKAREA<XA_CARDINAL>
libX11: warning: application opened more than one X display!
libX11: unhandled Property (get): _NET_SUPPORTED<XA_ATOM>
libX11: unhandled Property (get): _NET_ACTIVE_WINDOW<XA_WINDOW>
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled _NET_WM_WINDOW_TYPE: _NET_WM_WINDOW_TYPE_DIALOG
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled _NET_WM_WINDOW_TYPE: _NET_WM_WINDOW_TYPE_DIALOG
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
libX11: unhandled Property: _NET_WM_PID<XA_CARDINAL>
libX11: unhandled Property: XdndAware = XA_BITMAP
libX11: unhandled Property (delete): _NET_WM_ICON
libX11: unhandled Property (delete): _NET_WM_WINDOW_OPACITY
libX11: unhandled Property (delete): SELECTION_DATA
libX11: unhandled Property (delete): SELECTION_DATA
libX11: unhandled Property (delete): SELECTION_DATA
libX11: unhandled Property (delete): SELECTION_DATA
libX11: unhandled Property (delete): SELECTION_DATA
libX11: unhandled Property (delete): SELECTION_DATA

3 Likes

Do both wine and wine64 work ok @Sergei ?
Do you have a recipe for your build available?

64-bit applications run, but they do not work correctly due to the driver not working quite adequately. When running a 32-bit application, a message is displayed in the terminal window about running the application in the experimental wow64 mode, but nothing else happens. Perhaps this is also related to the driver.
Of course, I can share my recipe in about 2-3 days…

1 Like

Recipe for my build: wine-10_6-recipe.zip
Recipe with modified source code: wine-10_6-recipe-src.zip

1 Like

Small patch to disable bluetooth (and hence build error):

diff --git a/server/sock.c b/server/sock.c
index 347a862..6d92d8f 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -97,6 +97,8 @@
 
 #ifdef __HAIKU__
 #define SIGIO SIGPOLL
+#undef AF_BLUETOOTH
+#undef HAS_BLUETOOTH
 #endif
 
 #include "ntstatus.h"
@@ -4284,7 +4286,6 @@ static MIB_TCP_STATE get_tcp_socket_state( int fd )
 #endif
 
 #ifndef __HAIKU__
-
     struct tcp_info info;
     socklen_t info_len = sizeof(info);
 

Switched local to LLVM20 (don’t want to use old LLVM12 if not required).

Build completes but not production ready imho, mouse input is not responding for one. But got it up so progress! :+1:

4 Likes

Currently wine 10.10 is available… Maybe one can try to see if this works too

Problem is the patchset doesn’t always apply cleanly, and it’s HUGE :wink:

Been there before @Begasus.
Wine is definitely not a simple project.
Needing a tiny patchset means that you are almost compatible with upstream Wine, which is not the case even on Freebsd for example.

1 Like

When i get in front of my VM i will give it a try for Wine 10.7 and see if there is a difference


Why do I get the error when trying to build: Patch format detection failed.

Which wine-10.6.patchset file are you using? My diff.txt file is not a patchset. It shows the differences between the original wine-10.6 and its additional modification. Try creating an empty wine-10.6.patchset file in the patches folder, put source code from my archive to haikuports wine folder as work-10.6 folder and run hp -G wine-10.6 command again. Hope this helps you.

1 Like

Thank you very much but the following error:
configure: error: Wayland 64-bit development files not found, the Wayland driver won’t be supported.
This is an error since --with-wayland was requested.
Warning: Command ‘[‘bash’, ‘-c’, ‘. /wrapper-script’]’ returned non-zero exit status 1.
cleaning ‘chroot/boot’ folder
keeping chroot folder /boot/home/haikuports/app-emulation/wine/work-10.6 intact for inspection
Error: Build has failed - stopping.

You may want to remove the –with-wayland reference in wine-10.6.recipe, since it doesn’t work yet anyway, or your need to install wayland library: pkgman install wayland_devel.

Haikuporter with
–get-dependencies should try to download wayland libraries if not present

You have to find/replace wine-wine-10.6/ in the diff file, the diff is taken from the work* directory, not from within the source directory.

diff:

diff -Nru a/wine-wine-10.6/configure.ac b/wine-wine-10.6/configure.ac
--- a/wine-wine-10.6/configure.ac	2025-04-20 23:27:40.002097152 +0300
+++ b/wine-wine-10.6/configure.ac	2025-06-22 20:22:29.057933824 +0300

patch:

diff --git a/configure.ac b/configure.ac
index e7a3eb9..00551d1 100644
--- a/configure.ac
+++ b/configure.ac