Frogging-Family / wine-tkg-git

The wine-tkg build systems, to create custom Wine and Proton builds
883 stars 159 forks source link

Build failure on Nobara 39 #1151

Closed LionHeartP closed 5 months ago

LionHeartP commented 5 months ago

On Nobara 39, wine-tkg with ntsync enabled fails to build with the following errors

 ../wine-git/dlls/ntdll/unix/sync.c:581:23: error: ‘NTSYNC_IOC_SEM_POST’ undeclared (first use in this function); did you mean ‘NTSYNC_IOC_SET_EVENT’?
  581 |     ret = ioctl( obj, NTSYNC_IOC_SEM_POST, &count );
      |                       ^~~~~~~~~~~~~~~~~~~
      |                       NTSYNC_IOC_SET_EVENT
../wine-git/dlls/ntdll/unix/sync.c:581:23: note: each undeclared identifier is reported only once for each function it appears in
../wine-git/dlls/ntdll/unix/sync.c: In function ‘linux_query_semaphore_obj’:
../wine-git/dlls/ntdll/unix/sync.c:615:23: error: ‘NTSYNC_IOC_SEM_READ’ undeclared (first use in this function); did you mean ‘NTSYNC_IOC_SET_EVENT’?
  615 |     ret = ioctl( obj, NTSYNC_IOC_SEM_READ, &args );
      |                       ^~~~~~~~~~~~~~~~~~~
      |                       NTSYNC_IOC_SET_EVENT
../wine-git/dlls/ntdll/unix/sync.c: In function ‘linux_set_event_obj’:
../wine-git/dlls/ntdll/unix/sync.c:645:23: error: ‘NTSYNC_IOC_EVENT_SET’ undeclared (first use in this function); did you mean ‘NTSYNC_IOC_CREATE_SEM’?
  645 |     ret = ioctl( obj, NTSYNC_IOC_EVENT_SET, &prev );
      |                       ^~~~~~~~~~~~~~~~~~~~
      |                       NTSYNC_IOC_CREATE_SEM
../wine-git/dlls/ntdll/unix/sync.c: In function ‘linux_reset_event_obj’:
../wine-git/dlls/ntdll/unix/sync.c:674:23: error: ‘NTSYNC_IOC_EVENT_RESET’ undeclared (first use in this function); did you mean ‘NTSYNC_IOC_RESET_EVENT’?
  674 |     ret = ioctl( obj, NTSYNC_IOC_EVENT_RESET, &prev );
      |                       ^~~~~~~~~~~~~~~~~~~~~~
      |                       NTSYNC_IOC_RESET_EVENT
../wine-git/dlls/ntdll/unix/sync.c: In function ‘linux_pulse_event_obj’:
../wine-git/dlls/ntdll/unix/sync.c:703:23: error: ‘NTSYNC_IOC_EVENT_PULSE’ undeclared (first use in this function)
  703 |     ret = ioctl( obj, NTSYNC_IOC_EVENT_PULSE, &prev );
      |                       ^~~~~~~~~~~~~~~~~~~~~~
../wine-git/dlls/ntdll/unix/sync.c: In function ‘linux_query_event_obj’:
../wine-git/dlls/ntdll/unix/sync.c:732:23: error: ‘NTSYNC_IOC_EVENT_READ’ undeclared (first use in this function); did you mean ‘NTSYNC_IOC_RESET_EVENT’?
  732 |     ret = ioctl( obj, NTSYNC_IOC_EVENT_READ, &args );
      |                       ^~~~~~~~~~~~~~~~~~~~~
      |                       NTSYNC_IOC_RESET_EVENT
../wine-git/dlls/ntdll/unix/sync.c: In function ‘linux_release_mutex_obj’:
../wine-git/dlls/ntdll/unix/sync.c:763:23: error: ‘NTSYNC_IOC_MUTEX_UNLOCK’ undeclared (first use in this function)
  763 |     ret = ioctl( obj, NTSYNC_IOC_MUTEX_UNLOCK, &args );
      |                       ^~~~~~~~~~~~~~~~~~~~~~~
../wine-git/dlls/ntdll/unix/sync.c: In function ‘linux_query_mutex_obj’:
../wine-git/dlls/ntdll/unix/sync.c:799:23: error: ‘NTSYNC_IOC_MUTEX_READ’ undeclared (first use in this function); did you mean ‘NTSYNC_IOC_PUT_SEM’?
  799 |     ret = ioctl( obj, NTSYNC_IOC_MUTEX_READ, &args );
      |                       ^~~~~~~~~~~~~~~~~~~~~
      |                       NTSYNC_IOC_PUT_SEM
make: *** [Makefile:114003: dlls/ntdll/unix/sync.o] Error 1
Tk-Glitch commented 5 months ago

Do you have ntsync headers installed?

LionHeartP commented 5 months ago

It appears that I don't? I really thought this patch included in the kernel was enough https://github.com/Nobara-Project/rpm-sources/blob/main/baseos/kernel/6.8.5/tkg-0007-v6.8-ntsync.patch

edit: The header file IS present in /usr/include/linux/ntsync.h so no clue why build fails.

edit2: Figured it out. Our blobs are outdated. Closing the issue.

Tk-Glitch commented 5 months ago

:+1: