Bug 1235397
Summary: | The build script should have an option to build the test executables and link with prebuilt libraries | |||
---|---|---|---|---|
Product: | [JBoss] JBoss Data Grid 6 | Reporter: | Alan Field <afield> | |
Component: | CPP Client | Assignee: | Pedro Zapata <pzapataf> | |
Status: | VERIFIED --- | QA Contact: | Alan Field <afield> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.5.0 | CC: | afield, mgencur | |
Target Milestone: | CR1 | |||
Target Release: | 6.5.1 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1236159 (view as bug list) | Environment: | ||
Last Closed: | 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1236159 |
Description
Alan Field
2015-06-24 17:12:53 UTC
Verified with JDG 6.5.1ER1 Reopening, due to the following link error for unittest on Windows 7: Link: c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\afield\Documents\GitHub\jdg-cpp-client\build\RelWithDebInfo\unittest.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib "c:\Program Files\infinispan-hotrod-dotnet 6.1.0-Final\lib\hotrod.lib" /MANIFEST /ManifestFile:"unittest.dir\RelWithDebInfo\unittest.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/Users/afield/Documents/GitHub/jdg-cpp-client/build/RelWithDebInfo/unittest.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/afield/Documents/GitHub/jdg-cpp-client/build/RelWithDebInfo/unittest.lib" /MACHINE:X64 unittest.dir\RelWithDebInfo\unittest.exe.embed.manifest.res unittest.dir\RelWithDebInfo\Unit.obj /machine:x64 /debug Unit.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl runConcurrentCodecWritesTest(void)" (__imp_?runConcurrentCodecWritesTest@@YAXXZ) referenced in function main [C:\Users\afield\Documents\GitHub\jdg-cpp-client\build\unittest.vcxproj] C:\Users\afield\Documents\GitHub\jdg-cpp-client\build\RelWithDebInfo\unittest.exe : fatal error LNK1120: 1 unresolved externals [C:\Users\afield\Documents\GitHub\jdg-cpp-client\build\unittest.vcxproj] Done Building Project "C:\Users\afield\Documents\GitHub\jdg-cpp-client\build\unittest.vcxproj" (default targets) -- FAILED. The unittest-static target links correctly. Not sure why this one test method fails, since it looks the same as the rest of the code in Unit.cpp. Also not sure why this worked with JDG 6.6. There is one other issue on Windows with pre-built libraries. The Java Library Path needs to be set to the location where the pre-built libraries live. The LD_LIBRARY_PATH seems to make this work on Linux. Alan Field <afield> updated the status of jira HRCPP-196 to Reopened Alan Field <afield> updated the status of jira HRCPP-196 to Coding In Progress Verified with JDG 6.5.1 CR1 |