Bug 1664292 - winegcc cannot find libwine includes due to miscompilation
Summary: winegcc cannot find libwine includes due to miscompilation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: wine
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andreas Bierfert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-08 10:56 UTC by Andre Heider
Modified: 2019-02-01 01:41 UTC (History)
4 users (show)

Fixed In Version: wine-4.0-0.5.rc6.fc29 wine-4.0-1.fc28
Clone Of:
Environment:
Last Closed: 2019-01-19 02:26:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github dhewg nine issues 1 0 None None None 2019-01-08 10:58:14 UTC

Description Andre Heider 2019-01-08 10:56:52 UTC
Description of problem:
`winegcc` fails to build projects that include libwine headers

Steps to Reproduce:
1. echo '#include <wine/debug.h>\nint main() { return 0; }' > /tmp/test.c; winegcc -c /tmp/test.c -o /tmp/test.o

Actual results:
Compilation fails because the WINE header could not be found

Expected results:
Compilation succeeds (duh)

Additional info:
Starting with [0], winegcc adds the includedir (which WINE was compiled with) as include path. That ensures that projects which including libwine headers, as the snippet above, compiles as is.
It doesn't on Fedora, and I think it's because 'includedir' is only set at install time, and not at configure time.

[0] https://source.winehq.org/git/wine.git/commitdiff/0e279d26b8386fc878f17bd6768e46e1cf9c5128
[1] https://src.fedoraproject.org/rpms/wine/blob/master/f/wine.spec#_711
[2] https://src.fedoraproject.org/rpms/wine/blob/master/f/wine.spec#_729

Comment 1 Timur Kristóf 2019-01-14 21:02:21 UTC
It seems the problem is that the wine headers are in /usr/include/wine/wine (rather than /usr/include/wine which would seem more logical).

Comment 2 Fedora Update System 2019-01-17 21:16:10 UTC
wine-4.0-0.5.rc6.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7e99046141

Comment 3 Fedora Update System 2019-01-17 21:17:01 UTC
wine-4.0-0.5.rc6.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7293a1b3f6

Comment 4 Fedora Update System 2019-01-18 03:05:10 UTC
wine-4.0-0.5.rc6.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-7293a1b3f6

Comment 5 Fedora Update System 2019-01-18 03:36:28 UTC
wine-4.0-0.5.rc6.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-7e99046141

Comment 6 Fedora Update System 2019-01-19 02:26:09 UTC
wine-4.0-0.5.rc6.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2019-01-23 18:07:17 UTC
vkd3d-1.1-1.fc28 wine-4.0-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-31bc8dde6a

Comment 8 Fedora Update System 2019-01-24 04:37:12 UTC
vkd3d-1.1-1.fc28, wine-4.0-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-31bc8dde6a

Comment 9 Fedora Update System 2019-02-01 01:41:44 UTC
vkd3d-1.1-1.fc28, wine-4.0-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.