https://bugs.winehq.org/show_bug.cgi?id=44327
Bug ID: 44327 Summary: Wine-staging doesn't compile with the Linux kernel 3.0. The problem in server-Realtime_Priority patch Product: Wine-staging Version: 2.20 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: Zenitur@yandex.ru CC: erich.e.hoover@wine-staging.com, michael@fds-team.de, sebastian@fds-team.de Distribution: ---
I have SUSE Enterprise Linux 11 SP4. There is Linux kernel 3.0. When I trying to compile wine-staging using OBS (PPA analogue for openSUSE Linux), I have got this error:
scheduler.c: In function 'set_scheduler_priority': scheduler.c:136:18: error: 'SCHED_IDLE' undeclared (first use in this function) policy = SCHED_IDLE;
It's very strange, but when I tried to reproduce it on a real machine, it was successful compiled!
Wrote: /usr/src/packages/SRPMS/wine-staging-2.20-2.1.src.rpm Wrote: /usr/src/packages/RPMS/x86_64/wine-staging-2.20-2.1.x86_64.rpm Wrote: /usr/src/packages/RPMS/x86_64/wine-staging-devel-2.20-2.1.x86_64.rpm
I think, the reason is in harder compiler warning settings in the OBS build system. So I will make tests on the OBS.
When I tried to search error message in Google, I'd found this page: https://github.com/sysstat/sysstat/issues/26
https://bugs.winehq.org/show_bug.cgi?id=44327
Zhenya Zenitur@yandex.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Wine-staging doesn't |Wine-staging doesn't |compile with the Linux |compile with Glibc 2.11. |kernel 3.0. The problem in |The problem in |server-Realtime_Priority |server-Realtime_Priority |patch |patch
https://bugs.winehq.org/show_bug.cgi?id=44327
--- Comment #1 from Zhenya Zenitur@yandex.ru --- I'd found the reason why it's compiling on a localhost. I had upgraded Glibc from 2.11 to 2.17, so /usr/include/bit/sched.h is now contain SCHED_IDLE. In the OBS service, there is Glibc 2.11.
You can see my package there: https://build.opensuse.org/package/show/home:linux4humans:wine-staging/wine-...
https://bugs.winehq.org/show_bug.cgi?id=44327
--- Comment #2 from Zhenya Zenitur@yandex.ru --- I'd prepared a VirtualBox image to help you reproduce my bug. Download link: https://yadi.sk/d/AxWNQd1W3Pmtso Size: 2,6 Gb, unpacked size: 16 Gb. My file-roller archiver can't unpack it, so I'm using "xz -d SLE_11_SP4.vdi.xz" for that.
First of all, look on a screenshots: https://imgur.com/a/nYOBo
When I search "SCHED_IDLE" in my /usr/include, I'd found two files made in 2015 and 2017. Second file is a part of Glibc 2.17. So if downgrade Glibc to the default 2.11 version, the defined SCHED_IDLE will disappear.
Steps to reproduce this bug:
1). Open YAST2 (root password is "sourceengine2"). 2). Open "Repositories" tab and select "Glibc" 3). Delete glibc-extra 4). Switch all installed packages to their default versions 5). Delete libgnutls-devel (bug 43971). 6). Reboot the VM 6). Type:
cd /usr/src/packages/SPECS rpmbuild -ba --nodeps wine-staging.spec
https://bugs.winehq.org/show_bug.cgi?id=44327
--- Comment #3 from Zhenya Zenitur@yandex.ru --- This is a fix. Please add it to server-Realtime_Priority.patch
#ifndef SCHED_IDLE #define SCHED_IDLE 5 #endif
https://bugs.winehq.org/show_bug.cgi?id=44327
--- Comment #4 from Zhenya Zenitur@yandex.ru --- Created attachment 61410 --> https://bugs.winehq.org/attachment.cgi?id=61410 Fixed patch
https://bugs.winehq.org/show_bug.cgi?id=44327
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- This should now be fixed.
https://bugs.winehq.org/show_bug.cgi?id=44327
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Fixed Staging 3.14