Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-on fails to build on jenkins win32 #62

Closed
hudokkow opened this issue Jun 1, 2016 · 1 comment
Closed

Add-on fails to build on jenkins win32 #62

hudokkow opened this issue Jun 1, 2016 · 1 comment

Comments

@hudokkow
Copy link
Contributor

hudokkow commented Jun 1, 2016

C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition
c:\jenkins\slave\workspace\win-32\project\cmake\addons\build\libxml2\src\libxml2\config.h(99): note: see previous definition of 'snprintf'
C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration

Full build log: http://jenkins.kodi.tv/job/WIN-32/9005/consoleText

@kenji123 kenji123 mentioned this issue Jun 2, 2016
@kenji123
Copy link
Member

kenji123 commented Jun 2, 2016

Was able to recreate the error, and it compiles ok now.

Just for clarity: the source of the problem was with <= v2.9.3 of libxml2 in libxml2/win32/VC10/config.h (which is copied to libxml2/config.h) did not have a check for _MSC_VER < 1900 before defining snprintf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants