I already have it installed, I already tried to remove –with-wayland but compilation stopped at:
dlls/ntdll/unix/file.c: In function ‘NtQueryVolumeInformationFile’:
dlls/ntdll/unix/file.c:7015:27: error: storage size of ‘stfs’ isn’t known
7015 | struct statfs stfs;
| ^~~~ (stfs)
Missed this part of the patch?
diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c
index d7ab8b7..e0188dc 100644
--- a/dlls/ntdll/unix/file.c
+++ b/dlls/ntdll/unix/file.c
@@ -7010,6 +7010,7 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, IO_STATUS_BLOCK *io
}
if (!get_mountmgr_fs_info( handle, fd, &drive, sizeof(drive) )) fs_type = drive.fs_type;
+#ifndef __HAIKU__
else
{
struct statfs stfs;
@@ -7041,6 +7042,7 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, IO_STATUS_BLOCK *io
#endif
}
}
+#endif
dlls/ntdll/unix/file.c: In function ‘NtQueryVolumeInformationFile’:
dlls/ntdll/unix/file.c:7015:27: error: storage size of ‘stfs’ isn’t known
7015 | struct statfs stfs;
| ^~~~
dlls/ntdll/unix/file.c:7017:18: warning: implicit declaration of function ‘fstatfs’; did you mean ‘fstatvfs’? -Wimplicit-function-declaration]
7017 | if (!fstatfs( fd, &stfs ))
| ^~~~~~~
| fstatvfs
dlls/ntdll/unix/file.c:7015:27: warning: unused variable ‘stfs’ [-Wunused-variable]
7015 | struct statfs stfs;
| ^~~~
dlls/ntdll/unix/file.c: At top level:
dlls/ntdll/unix/file.c:245:24: warning: ‘mnt_mutex’ defined but not used [-Wunused-variable]
245 | static pthread_mutex_t mnt_mutex = PTHREAD_MUTEX_INITIALIZER;
| ^~~~~~~~~
make: *** [Makefile:155394: dlls/ntdll/unix/file.o] Error 1
make: *** Waiting for unfinished jobs…
Warning: Command ‘[‘bash’, ‘-c’, ‘. /wrapper-script’]’ returned non-zero exit status 2.
cleaning ‘chroot/boot’ folder
keeping chroot folder /boot/home/haikuports/app-emulation/wine/work-10.6 intact for inspection
Error: Build has failed - stopping.
ok i won’t try to build wine again
The block where those errors appear should be skipped with earlier mentioned patch. (skipping everything between lines 7010 to 7045(*))
You probably haven’t applied the patch or you’ve downloaded and/or unpacked the original source code again and you are working with it.
See wine-10.6.recipe file:
SOURCE_URI="https://github.com/wine-mirror/wine/archive/refs/tags/wine-${portVersion}.tar.gz"
My first attempt compiling 10.7 using --with-x option failed.The recipe i used
worked before using --without-x and --with wayland…Any idea what makes the linker complain?
Should Lib -lXext be used?
For winex11.drv of wine-10.6 I used it in Makefile.in (in winex11.drv
folder). Add a library reference -lXext
:
-UNIX_LIBS = -lwin32u $(X_LIBS) $(PTHREAD_LIBS) -lm
+UNIX_LIBS = -lwin32u $(X_LIBS) $(PTHREAD_LIBS) -lm -lXext
The compilation was successful after applying @Sergei ‘s suggestion but it arrived at a "No drv found’ situation. I don’t know whether there is a difference in my patched directory
Do you use xlibe_devel
in the recipe?
BUILD_REQUIRES="
devel:libfreetype$secondaryArchSuffix
devel:libvulkan$secondaryArchSuffix
devel:libusb$secondaryArchSuffix
devel:libxkbcommon
devel:libgnutls
xLibe_devel
"
Yes i added it to my existing recipe. I don’t know if running through a VM like i did plays a role
Nice.
So wine is working from packages also again? With nightly or beta5? Just asking.