I get a build error on trunk at present with Fedora 17. Its a link error for the legacystore lib, complaining about the missing symbol clock_gettime.

The attached patch fixes the issue for me. Any concerns if I go ahead and commit it? Is no-one else experiencing this problem?
diff --git a/qpid/cpp/src/legacystore.cmake b/qpid/cpp/src/legacystore.cmake
index afb5ea0..9efd1cc 100644
--- a/qpid/cpp/src/legacystore.cmake
+++ b/qpid/cpp/src/legacystore.cmake
@@ -146,6 +146,7 @@ if (BUILD_LEGACYSTORE)
     )
 
     target_link_libraries (legacystore
+        rt
         aio
         uuid
         qpidcommon qpidtypes qpidbroker
@@ -165,6 +166,7 @@ if (BUILD_LEGACYSTORE)
     )
 
     target_link_libraries (legacystore_shared
+        rt
         aio
         uuid
         qpidcommon qpidtypes qpidbroker
diff --git a/qpid/cpp/src/tests/legacystore/CMakeLists.txt b/qpid/cpp/src/tests/legacystore/CMakeLists.txt
index 38cf637..0ab57c5 100644
--- a/qpid/cpp/src/tests/legacystore/CMakeLists.txt
+++ b/qpid/cpp/src/tests/legacystore/CMakeLists.txt
@@ -106,7 +106,7 @@ add_executable (${testname}
                 ${platform_test_additions})
 target_link_libraries (${testname}
                        ${qpid_test_boost_libs}
-                       legacystore_shared)
+                       rt legacystore_shared)
 if ("${ARGV1}" STREQUAL "LONG")
   set_target_properties(${testname} PROPERTIES COMPILE_DEFINITIONS LONG_TEST)
 endif ()
@@ -148,7 +148,7 @@ add_executable(jtt
 
 target_link_libraries (jtt
                        ${Boost_PROGRAM_OPTIONS_LIBRARY}
-                       legacystore_shared)
+                       rt legacystore_shared)
 
 add_test(journal_jtt ${CMAKE_CURRENT_BINARY_DIR}/jtt -c ${CMAKE_CURRENT_SOURCE_DIR}/jrnl/jtt/jtt.csv)
 
@@ -175,7 +175,7 @@ add_executable (jtt__ut
 target_link_libraries (jtt__ut
                        ${qpid_test_boost_libs}
                        ${Boost_PROGRAM_OPTIONS_LIBRARY}
-                       legacystore_shared)
+                       rt legacystore_shared)
 
 add_test(NAME journal_jtt_ut WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/jrnl/jtt COMMAND ${CMAKE_CURRENT_BINARY_DIR}/jtt__ut)
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to