{"action":"created","issue":{"url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/408","labels_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/408/comments","events_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/408/events","html_url":"https://github.com/Alexpux/MINGW-packages/issues/408","id":53052244,"number":408,"title":"wxWidget build failures due to localetime_r and gmtime_r","user":{"login":"mabreedlove","id":2964510,"avatar_url":"https://avatars.githubusercontent.com/u/2964510?v=3","gravatar_id":"","url":"https://api.github.com/users/mabreedlove","html_url":"https://github.com/mabreedlove","followers_url":"https://api.github.com/users/mabreedlove/followers","following_url":"https://api.github.com/users/mabreedlove/following{/other_user}","gists_url":"https://api.github.com/users/mabreedlove/gists{/gist_id}","starred_url":"https://api.github.com/users/mabreedlove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mabreedlove/subscriptions","organizations_url":"https://api.github.com/users/mabreedlove/orgs","repos_url":"https://api.github.com/users/mabreedlove/repos","events_url":"https://api.github.com/users/mabreedlove/events{/privacy}","received_events_url":"https://api.github.com/users/mabreedlove/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-29T16:28:40Z","updated_at":"2015-03-29T11:08:29Z","closed_at":"2015-03-29T11:08:29Z","body":"wxWidgets fails to build after recent package updates.  I'm still trying to get some information on the cause, but currently the build script for it now fails out with the following.  The configure script does check for localetime_r and gmtime_r and finds both.\r\n\r\n```\r\n/pkgbuild/mingw-w64-wxwidgets/src/build-x86_64/bk-deps x86_64-w64-mingw32-g++ -c -o basedll_encconv.o  -D__WXMSW__      -DWXBUILDING      -I../wxWidgets-3.0.2/src/regex  -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1  -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -I/pkgbuild/mingw-w64-wxwidgets/src/build-x86_64/lib/wx/include/msw-unicode-3.0 -I../wxWidgets-3.0.2/include -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -fpermissive -march=x86-64 -mtune=generic -O2 -pipe  ../wxWidgets-3.0.2/src/common/encconv.cpp\r\n../wxWidgets-3.0.2/src/common/datetime.cpp: In static member function 'static tm* wxDateTime::GetTmNow(tm*)':\r\n../wxWidgets-3.0.2/src/common/datetime.cpp:516:38: error: 'localtime_r' was not declared in this scope\r\n     return wxLocaltime_r(&t, tmstruct);\r\n                                      ^\r\n../wxWidgets-3.0.2/src/common/datetime.cpp: In static member function 'static wxDateTime::Country wxDateTime::GetCountry()':\r\n../wxWidgets-3.0.2/src/common/datetime.cpp:809:52: error: 'localtime_r' was not declared in this scope\r\n         struct tm *tm = wxLocaltime_r(&t, &tmstruct);\r\n                                                    ^\r\n../wxWidgets-3.0.2/src/common/datetime.cpp: In member function 'long unsigned int wxDateTime::GetAsDOS() const':\r\n../wxWidgets-3.0.2/src/common/datetime.cpp:1359:52: error: 'localtime_r' was not declared in this scope\r\n     struct tm *tm = wxLocaltime_r(&ticks, &tmstruct);\r\n                                                    ^\r\n../wxWidgets-3.0.2/src/common/datetime.cpp: In member function 'wxDateTime::Tm wxDateTime::GetTm(const wxDateTime::TimeZone&) const':\r\n../wxWidgets-3.0.2/src/common/datetime.cpp:1403:48: error: 'localtime_r' was not declared in this scope\r\n             tm = wxLocaltime_r(&time, &tmstruct);\r\n                                                ^\r\n../wxWidgets-3.0.2/src/common/datetime.cpp:1418:49: error: 'gmtime_r' was not declared in this scope\r\n                 tm = wxGmtime_r(&time, &tmstruct);\r\n                                                 ^\r\n../wxWidgets-3.0.2/src/common/datetime.cpp: In member function 'int wxDateTime::IsDST(wxDateTime::Country) const':\r\n../wxWidgets-3.0.2/src/common/datetime.cpp:2063:49: error: 'localtime_r' was not declared in this scope\r\n         tm *tm = wxLocaltime_r(&timet, &tmstruct);\r\n                                                 ^\r\n../wxWidgets-3.0.2/src/common/datetime.cpp: In static member function 'static tm* wxDateTime::GetTmNow(tm*)':\r\n../wxWidgets-3.0.2/src/common/datetime.cpp:517:1: warning: control reaches end of non-void function [-Wreturn-type]\r\n }\r\n ^\r\n../wxWidgets-3.0.2/src/common/datetimefmt.cpp: In member function 'wxString wxDateTime::Format(const wxString&, const wxDateTime::TimeZone&) const':\r\n../wxWidgets-3.0.2/src/common/datetimefmt.cpp:390:48: error: 'localtime_r' was not declared in this scope\r\n             tm = wxLocaltime_r(&time, &tmstruct);\r\n                                                ^\r\n../wxWidgets-3.0.2/src/common/datetimefmt.cpp:406:49: error: 'gmtime_r' was not declared in this scope\r\n                 tm = wxGmtime_r(&time, &tmstruct);\r\n                                                 ^\r\n/pkgbuild/mingw-w64-wxwidgets/src/build-x86_64/bk-deps x86_64-w64-mingw32-g++ -c -o basedll_evtloopcmn.o  -D__WXMSW__      -DWXBUILDING      -I../wxWidgets-3.0.2/src/regex  -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1  -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFFSET_BITS=64 -I/pkgbuild/mingw-w64-wxwidgets/src/build-x86_64/lib/wx/include/msw-unicode-3.0 -I../wxWidgets-3.0.2/include -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -fpermissive -march=x86-64 -mtune=generic -O2 -pipe  ../wxWidgets-3.0.2/src/common/evtloopcmn.cpp\r\n/pkgbuild/mingw-w64-wxwidgets/src/build-x86_64/bk-deps x86_64-w64-mingw32-gcc -c -o basedll_extended.o  -D__WXMSW__      -DWXBUILDING      -I../wxWidgets-3.0.2/src/regex  -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1  -D_FILE_OFFSET_BITS=64 -I/pkgbuild/mingw-w64-wxwidgets/src/build-x86_64/lib/wx/include/msw-unicode-3.0 -I../wxWidgets-3.0.2/include -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -fpermissive -Wall -Wundef -march=x86-64 -mtune=generic -O2 -pipe  ../wxWidgets-3.0.2/src/common/extended.c\r\nMakefile:28712: recipe for target 'basedll_datetime.o' failed\r\nmake: *** [basedll_datetime.o] Error 1\r\nmake: *** Waiting for unfinished jobs....\r\ncc1.exe: warning: command line option '-fpermissive' is valid for C++/ObjC++ but not for C\r\nMakefile:28715: recipe for target 'basedll_datetimefmt.o' failed\r\nmake: *** [basedll_datetimefmt.o] Error 1\r\n==> ERROR: A failure occurred in build().\r\n    Aborting...\r\n```"},"comment":{"url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/comments/87395045","html_url":"https://github.com/Alexpux/MINGW-packages/issues/408#issuecomment-87395045","issue_url":"https://api.github.com/repos/Alexpux/MINGW-packages/issues/408","id":87395045,"user":{"login":"Alexpux","id":1898153,"avatar_url":"https://avatars.githubusercontent.com/u/1898153?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexpux","html_url":"https://github.com/Alexpux","followers_url":"https://api.github.com/users/Alexpux/followers","following_url":"https://api.github.com/users/Alexpux/following{/other_user}","gists_url":"https://api.github.com/users/Alexpux/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexpux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexpux/subscriptions","organizations_url":"https://api.github.com/users/Alexpux/orgs","repos_url":"https://api.github.com/users/Alexpux/repos","events_url":"https://api.github.com/users/Alexpux/events{/privacy}","received_events_url":"https://api.github.com/users/Alexpux/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T11:08:29Z","updated_at":"2015-03-29T11:08:29Z","body":"Recent versions works ok."}}