{"action":"created","issue":{"url":"https://api.github.com/repos/areaDetector/ADCore/issues/188","repository_url":"https://api.github.com/repos/areaDetector/ADCore","labels_url":"https://api.github.com/repos/areaDetector/ADCore/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/areaDetector/ADCore/issues/188/comments","events_url":"https://api.github.com/repos/areaDetector/ADCore/issues/188/events","html_url":"https://github.com/areaDetector/ADCore/issues/188","id":173315041,"number":188,"title":"nexusSrc fails to build for dynamic Windows architectures","user":{"login":"kmpeters","id":10675924,"avatar_url":"https://avatars.githubusercontent.com/u/10675924?v=3","gravatar_id":"","url":"https://api.github.com/users/kmpeters","html_url":"https://github.com/kmpeters","followers_url":"https://api.github.com/users/kmpeters/followers","following_url":"https://api.github.com/users/kmpeters/following{/other_user}","gists_url":"https://api.github.com/users/kmpeters/gists{/gist_id}","starred_url":"https://api.github.com/users/kmpeters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmpeters/subscriptions","organizations_url":"https://api.github.com/users/kmpeters/orgs","repos_url":"https://api.github.com/users/kmpeters/repos","events_url":"https://api.github.com/users/kmpeters/events{/privacy}","received_events_url":"https://api.github.com/users/kmpeters/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-25T21:30:32Z","updated_at":"2016-09-07T12:56:35Z","closed_at":"2016-09-07T12:56:35Z","body":"I'm using the following:\r\n```\r\nWindows 7 (64-bit)\r\nVisual Studio 2010 Professional & Visual Studio 2015 Community Edition\r\nMake 4.1 (from the EPICS web site)\r\nStrawberry perl 5.20.3001\r\nbase-3.14.12.5 & base-3.15.4\r\nEPICS_HOST_ARCH windows-x64 & win32-x86\r\n```\r\nThe following errors occur when building ADCore revision 280b97d8c7277cb1db1ca455bbb07e680f818d40 using various combinations of Visual Studio and EPICS base.  The errors for windows-x64 and win32-x86 are almost identical; the only difference is that unresolved external symbols are prefixed with two underscores for windows-x64 and three underscores for win32-x86.\r\n\r\n**Visual Studio 2010 & base-3.15.4**\r\n```\r\nlink -nologo /subsystem:windows /dll -LTCG -incremental:no -opt:ref -release  /MACHINE:X64      -out:NeXus.dll -implib:NeXus.lib         napi.obj napi5.obj napi\r\nu.obj nxdataset.obj nxio.obj nxstack.obj nxxml.obj stptok.obj      D:/synApps-testing/VS10/3.15/synApps/support/areaDetector/ADBinaries/lib/windows-x64/libhdf5.\r\nlib  D:/synApps-testing/VS10/3.15/synApps/support/areaDetector/ADBinaries/lib/windows-x64/libszip.lib  D:/synApps-testing/VS10/3.15/synApps/support/areaDetector\r\n/ADBinaries/lib/windows-x64/libzlib.lib\r\nLIBCMT.lib(timeset.obj) : error LNK2005: __daylight already defined in MSVCRT.lib(MSVCR100.dll)\r\nLIBCMT.lib(timeset.obj) : error LNK2005: __timezone already defined in MSVCRT.lib(MSVCR100.dll)\r\nLINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library\r\nNeXus.dll : fatal error LNK1169: one or more multiply defined symbols found\r\nD:/synApps-testing/VS10/3.15/base-3.15.4/configure/RULES_BUILD:281: recipe for target 'NeXus.dll' failed\r\nmake[1]: *** [NeXus.dll] Error 1169\r\nmake[1]: Leaving directory 'D:/synApps-testing/VS10/3.15/synApps/support/areaDetector/ADCore/ADApp/nexusSrc/O.windows-x64'\r\nD:/synApps-testing/VS10/3.15/base-3.15.4/configure/RULES_ARCHS:61: recipe for target 'install.windows-x64' failed\r\nmake: *** [install.windows-x64] Error 2\r\n```\r\n\r\n**Visual Studio 2010 & base-3.14.12.5**\r\n```\r\nlink /nologo /subsystem:windows /dll /LTCG /incremental:no /opt:ref /release   /MACHINE:X64      /implib:NeXus.lib /out:NeXus.dll          napi.obj napi5.obj na\r\npiu.obj nxdataset.obj nxio.obj nxstack.obj nxxml.obj stptok.obj      D:\\\\synApps-testing\\\\VS10\\\\3.14\\\\synApps\\\\support\\\\areaDetector\\\\ADBinaries\\\\lib\\\\windows-x\r\n64\\\\libhdf5.lib  D:\\\\synApps-testing\\\\VS10\\\\3.14\\\\synApps\\\\support\\\\areaDetector\\\\ADBinaries\\\\lib\\\\windows-x64\\\\libszip.lib  D:\\\\synApps-testing\\\\VS10\\\\3.14\\\\sy\r\nnApps\\\\support\\\\areaDetector\\\\ADBinaries\\\\lib\\\\windows-x64\\\\libzlib.lib\r\nLIBCMT.lib(timeset.obj) : error LNK2005: __daylight already defined in MSVCRT.lib(MSVCR100.dll)\r\nLIBCMT.lib(timeset.obj) : error LNK2005: __timezone already defined in MSVCRT.lib(MSVCR100.dll)\r\nLINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library\r\nNeXus.dll : fatal error LNK1169: one or more multiply defined symbols found\r\nD:/synApps-testing/VS10/3.14/base-3.14.12.5/configure/RULES_BUILD:300: recipe for target 'NeXus.dll' failed\r\nmake[5]: *** [NeXus.dll] Error 1169\r\nmake[5]: Leaving directory 'D:/synApps-testing/VS10/3.14/synApps/support/areaDetector/ADCore/ADApp/nexusSrc/O.windows-x64'\r\nD:/synApps-testing/VS10/3.14/base-3.14.12.5/configure/RULES_ARCHS:64: recipe for target 'install.windows-x64' failed\r\nmake[4]: *** [install.windows-x64] Error 2\r\nmake[4]: Leaving directory 'D:/synApps-testing/VS10/3.14/synApps/support/areaDetector/ADCore/ADApp/nexusSrc'\r\nD:/synApps-testing/VS10/3.14/base-3.14.12.5/configure/RULES_DIRS:87: recipe for target 'nexusSrc.install' failed\r\nmake[3]: *** [nexusSrc.install] Error 2\r\nmake[3]: Leaving directory 'D:/synApps-testing/VS10/3.14/synApps/support/areaDetector/ADCore/ADApp'\r\nD:/synApps-testing/VS10/3.14/base-3.14.12.5/configure/RULES_DIRS:87: recipe for target 'ADApp.install' failed\r\nmake[2]: *** [ADApp.install] Error 2\r\nmake[2]: Leaving directory 'D:/synApps-testing/VS10/3.14/synApps/support/areaDetector/ADCore'\r\nD:/synApps-testing/VS10/3.14/base-3.14.12.5/configure/RULES_DIRS:87: recipe for target 'D:/synApps-testing/VS10/3.14/synApps/support/areaDetector/ADCore.install' failed\r\nmake[1]: *** [D:/synApps-testing/VS10/3.14/synApps/support/areaDetector/ADCore.install] Error 2\r\nmake[1]: Leaving directory 'D:/synApps-testing/VS10/3.14/synApps/support/areaDetector'\r\nD:/synApps-testing/VS10/3.14/base-3.14.12.5/configure/RULES_DIRS:87: recipe for target 'D:/synApps-testing/VS10/3.14/synApps/support/areaDetector.install' failed\r\nmake: *** [D:/synApps-testing/VS10/3.14/synApps/support/areaDetector.install] Error 2\r\n```\r\n\r\n**Visual Studio 2015 & base-3.15.4**\r\n```\r\nlink -nologo /subsystem:windows /dll -LTCG -incremental:no -opt:ref -release  /MACHINE:X64      -out:NeXus.dll -implib:NeXus.lib         napi.obj napi5.obj napi\r\nu.obj nxdataset.obj nxio.obj nxstack.obj nxxml.obj stptok.obj      D:/synApps-testing/VS15/3.15/synApps/support/areaDetector/ADBinaries/lib/windows-x64/libhdf5.\r\nlib  D:/synApps-testing/VS15/3.15/synApps/support/areaDetector/ADBinaries/lib/windows-x64/libszip.lib  D:/synApps-testing/VS15/3.15/synApps/support/areaDetector\r\n/ADBinaries/lib/windows-x64/libzlib.lib\r\nLINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library\r\nlibhdf5.lib(H5Gbtree2.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5HFdblock.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5Eint.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5C.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5HF.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5system.obj) : error LNK2001: unresolved external symbol timezone\r\nOLDNAMES.lib(timezone.obj) : error LNK2001: unresolved external symbol timezone\r\nlibhdf5.lib(H5system.obj) : error LNK2001: unresolved external symbol _vscprintf\r\nlibhdf5.lib(H5system.obj) : error LNK2001: unresolved external symbol _vsnprintf_s\r\nlibhdf5.lib(H5Ztrans.obj) : error LNK2001: unresolved external symbol sscanf\r\nOLDNAMES.lib(timezone.obj) : error LNK2001: unresolved external symbol _timezone\r\nNeXus.dll : fatal error LNK1120: 6 unresolved externals\r\nD:/synApps-testing/VS15/3.15/base-3.15.4/configure/RULES_BUILD:281: recipe for target 'NeXus.dll' failed\r\nmake[1]: *** [NeXus.dll] Error 1120\r\nmake[1]: Leaving directory 'D:/synApps-testing/VS15/3.15/synApps/support/areaDetector/ADCore/ADApp/nexusSrc/O.windows-x64'\r\nD:/synApps-testing/VS15/3.15/base-3.15.4/configure/RULES_ARCHS:61: recipe for target 'install.windows-x64' failed\r\nmake: *** [install.windows-x64] Error 2\r\n```\r\n\r\n**Visual Studio 2015 & base-3.14.12.5**\r\n```\r\nlink /nologo /subsystem:windows /dll /LTCG /incremental:no /opt:ref /release   /MACHINE:X64      /implib:NeXus.lib /out:NeXus.dll          napi.obj napi5.obj na\r\npiu.obj nxdataset.obj nxio.obj nxstack.obj nxxml.obj stptok.obj      D:\\\\synApps-testing\\\\VS15\\\\3.14\\\\synApps\\\\support\\\\areaDetector\\\\ADBinaries\\\\lib\\\\windows-x\r\n64\\\\libhdf5.lib  D:\\\\synApps-testing\\\\VS15\\\\3.14\\\\synApps\\\\support\\\\areaDetector\\\\ADBinaries\\\\lib\\\\windows-x64\\\\libszip.lib  D:\\\\synApps-testing\\\\VS15\\\\3.14\\\\sy\r\nnApps\\\\support\\\\areaDetector\\\\ADBinaries\\\\lib\\\\windows-x64\\\\libzlib.lib\r\nLINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library\r\nlibhdf5.lib(H5Gbtree2.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5HFdblock.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5Eint.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5C.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5HF.obj) : error LNK2001: unresolved external symbol __iob_func\r\nlibhdf5.lib(H5system.obj) : error LNK2001: unresolved external symbol timezone\r\nOLDNAMES.lib(timezone.obj) : error LNK2001: unresolved external symbol timezone\r\nlibhdf5.lib(H5system.obj) : error LNK2001: unresolved external symbol _vscprintf\r\nlibhdf5.lib(H5system.obj) : error LNK2001: unresolved external symbol _vsnprintf_s\r\nlibhdf5.lib(H5Ztrans.obj) : error LNK2001: unresolved external symbol sscanf\r\nOLDNAMES.lib(timezone.obj) : error LNK2001: unresolved external symbol _timezone\r\nNeXus.dll : fatal error LNK1120: 6 unresolved externals\r\nD:/synApps-testing/VS15/3.14/base-3.14.12.5/configure/RULES_BUILD:300: recipe for target 'NeXus.dll' failed\r\nmake[5]: *** [NeXus.dll] Error 1120\r\nmake[5]: Leaving directory 'D:/synApps-testing/VS15/3.14/synApps/support/areaDetector/ADCore/ADApp/nexusSrc/O.windows-x64'\r\nD:/synApps-testing/VS15/3.14/base-3.14.12.5/configure/RULES_ARCHS:64: recipe for target 'install.windows-x64' failed\r\nmake[4]: *** [install.windows-x64] Error 2\r\nmake[4]: Leaving directory 'D:/synApps-testing/VS15/3.14/synApps/support/areaDetector/ADCore/ADApp/nexusSrc'\r\nD:/synApps-testing/VS15/3.14/base-3.14.12.5/configure/RULES_DIRS:87: recipe for target 'nexusSrc.install' failed\r\nmake[3]: *** [nexusSrc.install] Error 2\r\nmake[3]: Leaving directory 'D:/synApps-testing/VS15/3.14/synApps/support/areaDetector/ADCore/ADApp'\r\nD:/synApps-testing/VS15/3.14/base-3.14.12.5/configure/RULES_DIRS:87: recipe for target 'ADApp.install' failed\r\nmake[2]: *** [ADApp.install] Error 2\r\nmake[2]: Leaving directory 'D:/synApps-testing/VS15/3.14/synApps/support/areaDetector/ADCore'\r\nD:/synApps-testing/VS15/3.14/base-3.14.12.5/configure/RULES_DIRS:87: recipe for target 'D:/synApps-testing/VS15/3.14/synApps/support/areaDetector/ADCore.install' failed\r\nmake[1]: *** [D:/synApps-testing/VS15/3.14/synApps/support/areaDetector/ADCore.install] Error 2\r\nmake[1]: Leaving directory 'D:/synApps-testing/VS15/3.14/synApps/support/areaDetector'\r\nD:/synApps-testing/VS15/3.14/base-3.14.12.5/configure/RULES_DIRS:87: recipe for target 'D:/synApps-testing/VS15/3.14/synApps/support/areaDetector.install' failed\r\nmake: *** [D:/synApps-testing/VS15/3.14/synApps/support/areaDetector.install] Error 2\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/areaDetector/ADCore/issues/comments/245271766","html_url":"https://github.com/areaDetector/ADCore/issues/188#issuecomment-245271766","issue_url":"https://api.github.com/repos/areaDetector/ADCore/issues/188","id":245271766,"user":{"login":"MarkRivers","id":6115534,"avatar_url":"https://avatars.githubusercontent.com/u/6115534?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRivers","html_url":"https://github.com/MarkRivers","followers_url":"https://api.github.com/users/MarkRivers/followers","following_url":"https://api.github.com/users/MarkRivers/following{/other_user}","gists_url":"https://api.github.com/users/MarkRivers/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRivers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRivers/subscriptions","organizations_url":"https://api.github.com/users/MarkRivers/orgs","repos_url":"https://api.github.com/users/MarkRivers/repos","events_url":"https://api.github.com/users/MarkRivers/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRivers/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T12:56:35Z","updated_at":"2016-09-07T12:56:35Z","body":"Closing this issue, problem was that CONFIG_SITE.local was not being used, so HDF5_STATIC_BUILD was not correctly defined."}}
{"actor":{"display_login":"MarkRivers"}}