[Craft] [Bug 380247] New: libofx fails to build in MSVC 2015
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Sat May 27 07:54:44 UTC 2017
https://bugs.kde.org/show_bug.cgi?id=380247
Bug ID: 380247
Summary: libofx fails to build in MSVC 2015
Product: Craft
Version: stable
Platform: MS Windows
OS: Windows CE
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Portage
Assignee: vonreth at kde.org
Reporter: mahueb55 at gmail.com
CC: kde-windows at kde.org
Target Milestone: ---
Created attachment 105729
--> https://bugs.kde.org/attachment.cgi?id=105729&action=edit
Patch to be applied by craft (to be placed in
<craft>/portage/win32libs/libofx/)
libofx fails to build when MSVC2015 is used as the compiler because of
undefined symbols in <libofx>/lib/ofx_utilities.cpp (please see trace below).
The issue is caused by the usage of the globa "daylight" variable defined in
<time.h>. The time.h shipped with Visual Studio seems to define the global
with a leading underscore ("_daylight"). I double checked in MSDN
(https://msdn.microsoft.com/en-us/library/90s5c885(v=vs.140).aspx) and the same
seems to be true for MSVC2010-2013 as well
Please find attached a patch for the libofx recipe.
R:\build\win32libs\libofx\work\libofx-0.9.10\lib\ofx_utilities.cpp(119): error
C2065: "daylight": nichtdeklarierter Beze
ichner
R:\build\win32libs\libofx\work\libofx-0.9.10\lib\ofx_utilities.cpp(121): error
C2065: "daylight": nichtdeklarierter Beze
ichner
R:\build\win32libs\libofx\work\libofx-0.9.10\lib\ofx_utilities.cpp(166):
warning C4244: "=": Konvertierung von "double"
in "float", m”glicher Datenverlust
R:\build\win32libs\libofx\work\libofx-0.9.10\lib\ofx_utilities.cpp(177):
warning C4805: "==": unsichere Kombination von
Typ "char" mit Typ "bool" in einer Operation
NMAKE : fatal error U1077: "C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe":
Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\amd64\nmake.exe"": Rückgabe-Code
"0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\BIN\amd64\nmake.exe"": Rückgabe-Code
"0x2"
Stop.
Craft encountered an error: make cmd: nmake /NOLOGO
Action: compile for win32libs/libofx FAILED
*** Craft update failed: update of win32libs/libofx failed after 0:00:12 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Kde-windows
mailing list