Bug 1235397 - The build script should have an option to build the test executables and link with prebuilt libraries
Summary: The build script should have an option to build the test executables and link...
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: CPP Client
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: 6.5.1
Assignee: Pedro Zapata
QA Contact: Alan Field
URL:
Whiteboard:
Depends On:
Blocks: 1236159
TreeView+ depends on / blocked
 
Reported: 2015-06-24 17:12 UTC by Alan Field
Modified: 2023-05-31 23:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1236159 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker HRCPP-196 0 Major Resolved The build script should have an option to build the test executables and link with prebuilt libraries 2017-07-24 14:31:10 UTC

Description Alan Field 2015-06-24 17:12:53 UTC
Description of problem:

Tracking bug for HRCPP-196

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Alan Field 2015-08-21 17:52:22 UTC
Verified with JDG 6.5.1ER1

Comment 5 Alan Field 2015-08-25 16:13:11 UTC
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.

Comment 6 JBoss JIRA Server 2015-08-31 16:40:48 UTC
Alan Field <afield> updated the status of jira HRCPP-196 to Reopened

Comment 7 JBoss JIRA Server 2015-08-31 16:40:50 UTC
Alan Field <afield> updated the status of jira HRCPP-196 to Coding In Progress

Comment 9 Alan Field 2015-09-08 20:07:02 UTC
Verified with JDG 6.5.1 CR1


Note You need to log in before you can comment on or make changes to this bug.