Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1213843

Summary: Build failure appearing in mingw-spice-vdagent after 4.0.1-1 update
Product: [Fedora] Fedora Reporter: Christophe Fergeau <cfergeau>
Component: mingw-headersAssignee: Erik van Pienbroek <erik-fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: cfergeau, erik-fedora, fziglio, kalevlember, ktietz, rjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mingw-headers-4.0.2-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-01 16:36:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christophe Fergeau 2015-04-21 12:22:35 UTC
After the update of mingw-headers to 4.0.1-1, trying to build vdagent ( http://cgit.freedesktop.org/spice/win32/vd_agent/ ) with mingw gives:

In file included from vdagent/file_xfer.cpp:18:0:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/shlobj.h:37:3: error: 'EXTERN_C' does not name a type
   SHFOLDERAPI SHGetFolderPathW (HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
 

This did not happen with 4.0.0-1 or earlier versions. This can be worked around by including the includes from http://sourceforge.net/p/mingw-w64/mingw-w64/ci/6c56d0b0eb5be9fbeb552ba070a2304b842a5102 before including shlobj.h so I assume adding this patch to the mingw-headers package would fix this regression.

Comment 1 Erik van Pienbroek 2015-04-24 14:01:45 UTC
Could you test if http://koji.fedoraproject.org/koji/buildinfo?buildID=630575 resolves the issue for you?

Comment 2 Christophe Fergeau 2015-04-24 14:17:15 UTC
Yes, this solves the issue I was having.

Comment 3 Erik van Pienbroek 2015-04-24 14:31:35 UTC
Excellent, the updated package is now available as buildroot override for f21, f22 and epel7. A regular update will be pushed soon as well

Comment 4 Fedora Update System 2015-04-24 14:33:36 UTC
mingw-crt-4.0.2-1.fc22,mingw-headers-4.0.2-1.fc22,mingw-winpthreads-4.0.2-1.fc22,mingw-winstorecompat-4.0.2-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/mingw-crt-4.0.2-1.fc22,mingw-headers-4.0.2-1.fc22,mingw-winpthreads-4.0.2-1.fc22,mingw-winstorecompat-4.0.2-1.fc22

Comment 5 Fedora Update System 2015-04-24 14:34:24 UTC
mingw-crt-4.0.2-1.fc21,mingw-headers-4.0.2-1.fc21,mingw-winpthreads-4.0.2-1.fc21,mingw-winstorecompat-4.0.2-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/mingw-crt-4.0.2-1.fc21,mingw-headers-4.0.2-1.fc21,mingw-winpthreads-4.0.2-1.fc21,mingw-winstorecompat-4.0.2-1.fc21

Comment 6 Fedora Update System 2015-04-24 14:37:22 UTC
mingw-crt-4.0.2-1.el7,mingw-headers-4.0.2-1.el7,mingw-winpthreads-4.0.2-1.el7,mingw-winstorecompat-4.0.2-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/mingw-crt-4.0.2-1.el7,mingw-headers-4.0.2-1.el7,mingw-winpthreads-4.0.2-1.el7,mingw-winstorecompat-4.0.2-1.el7

Comment 7 Fedora Update System 2015-04-25 23:52:17 UTC
Package mingw-headers-4.0.2-1.el7, mingw-winstorecompat-4.0.2-1.el7, mingw-crt-4.0.2-1.el7, mingw-winpthreads-4.0.2-1.el7:
* should fix your issue,
* was pushed to the Fedora EPEL 7 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing mingw-headers-4.0.2-1.el7 mingw-winstorecompat-4.0.2-1.el7 mingw-crt-4.0.2-1.el7 mingw-winpthreads-4.0.2-1.el7'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-5996/mingw-crt-4.0.2-1.el7,mingw-headers-4.0.2-1.el7,mingw-winpthreads-4.0.2-1.el7,mingw-winstorecompat-4.0.2-1.el7
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2015-05-01 16:36:41 UTC
mingw-headers-4.0.2-1.fc22, mingw-winstorecompat-4.0.2-1.fc22, mingw-crt-4.0.2-1.fc22, mingw-winpthreads-4.0.2-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-05-04 15:20:37 UTC
mingw-crt-4.0.2-1.fc21, mingw-winpthreads-4.0.2-1.fc21, mingw-headers-4.0.2-1.fc21, mingw-winstorecompat-4.0.2-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2015-05-11 00:50:18 UTC
mingw-headers-4.0.2-1.el7, mingw-winstorecompat-4.0.2-1.el7, mingw-crt-4.0.2-1.el7, mingw-winpthreads-4.0.2-1.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.