mnemonic-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [mnemonic] branch master updated: Fix undefined reference to pthread_create for native library building
Date Sun, 19 Jul 2020 00:43:35 GMT
This is an automated email from the ASF dual-hosted git repository.

garyw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mnemonic.git


The following commit(s) were added to refs/heads/master by this push:
     new 7a767cf  Fix undefined reference to pthread_create for native library building
7a767cf is described below

commit 7a767cfe0570a9c097a0a8c371bdf7cfc4a8fd1a
Author: Gary <garyw@apache.org>
AuthorDate: Sat Jul 18 17:23:50 2020 -0700

    Fix undefined reference to pthread_create for native library building
---
 .../mnemonic-utilities-service/src/main/native/CMakeLists.txt           | 1 +
 .../mnemonic-nvml-pmem-service/src/main/native/CMakeLists.txt           | 2 +-
 .../mnemonic-nvml-vmem-service/src/main/native/CMakeLists.txt           | 2 +-
 .../mnemonic-pmalloc-service/src/main/native/CMakeLists.txt             | 2 +-
 .../mnemonic-pmdk-pmem-service/src/main/native/CMakeLists.txt           | 2 +-
 .../mnemonic-pmdk-vmem-service/src/main/native/CMakeLists.txt           | 2 +-
 .../mnemonic-sys-vmem-service/src/main/native/CMakeLists.txt            | 1 +
 pom.xml                                                                 | 2 +-
 8 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/mnemonic-computing-services/mnemonic-utilities-service/src/main/native/CMakeLists.txt
b/mnemonic-computing-services/mnemonic-utilities-service/src/main/native/CMakeLists.txt
index 217599e..6e45a62 100644
--- a/mnemonic-computing-services/mnemonic-utilities-service/src/main/native/CMakeLists.txt
+++ b/mnemonic-computing-services/mnemonic-utilities-service/src/main/native/CMakeLists.txt
@@ -41,6 +41,7 @@ add_library(utilitiescomputing SHARED common.c
   org_apache_mnemonic_service_computing_internal_PrintServiceImpl.c
   org_apache_mnemonic_service_computing_internal_VectorizationServiceImpl.c)
 target_include_directories(utilitiescomputing PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+target_link_libraries(utilitiescomputing ${CMAKE_THREAD_LIBS_INIT})
 
 include (InstallRequiredSystemLibraries)
 set (CPACK_RESOURCE_FILE_LICENSE
diff --git a/mnemonic-memory-services/mnemonic-nvml-pmem-service/src/main/native/CMakeLists.txt
b/mnemonic-memory-services/mnemonic-nvml-pmem-service/src/main/native/CMakeLists.txt
index f641de1..7e14fb2 100644
--- a/mnemonic-memory-services/mnemonic-nvml-pmem-service/src/main/native/CMakeLists.txt
+++ b/mnemonic-memory-services/mnemonic-nvml-pmem-service/src/main/native/CMakeLists.txt
@@ -50,7 +50,7 @@ endif (NOT LIBPMEMOBJ_LIBRARIES)
 
 add_library(pmemallocator SHARED common.c org_apache_mnemonic_service_memory_internal_PMemServiceImpl.c)
 target_include_directories(pmemallocator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-target_link_libraries(pmemallocator ${LIBPMEMOBJ_LIBRARIES} ${LIBPMEM_LIBRARIES})
+target_link_libraries(pmemallocator ${LIBPMEMOBJ_LIBRARIES} ${LIBPMEM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
 
 include (InstallRequiredSystemLibraries)
 set (CPACK_RESOURCE_FILE_LICENSE
diff --git a/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/native/CMakeLists.txt
b/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/native/CMakeLists.txt
index 382c048..b6610fe 100644
--- a/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/native/CMakeLists.txt
+++ b/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/native/CMakeLists.txt
@@ -45,7 +45,7 @@ endif (NOT LIBVMEM_LIBRARIES)
 
 add_library(vmemallocator SHARED common.c org_apache_mnemonic_service_memory_internal_VMemServiceImpl.c)
 target_include_directories(vmemallocator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-target_link_libraries(vmemallocator ${LIBVMEM_LIBRARIES})
+target_link_libraries(vmemallocator ${LIBVMEM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
 
 include (InstallRequiredSystemLibraries)
 set (CPACK_RESOURCE_FILE_LICENSE
diff --git a/mnemonic-memory-services/mnemonic-pmalloc-service/src/main/native/CMakeLists.txt
b/mnemonic-memory-services/mnemonic-pmalloc-service/src/main/native/CMakeLists.txt
index 2942044..8a988a0 100644
--- a/mnemonic-memory-services/mnemonic-pmalloc-service/src/main/native/CMakeLists.txt
+++ b/mnemonic-memory-services/mnemonic-pmalloc-service/src/main/native/CMakeLists.txt
@@ -47,7 +47,7 @@ endif (NOT LIBPMALLOC_LIBRARIES)
 
 add_library(pmallocallocator SHARED common.c org_apache_mnemonic_service_memory_internal_PMallocServiceImpl.c)
 target_include_directories(pmallocallocator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-target_link_libraries(pmallocallocator ${LIBPMALLOC_LIBRARIES})
+target_link_libraries(pmallocallocator ${LIBPMALLOC_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
 
 include (InstallRequiredSystemLibraries)
 set (CPACK_RESOURCE_FILE_LICENSE
diff --git a/mnemonic-memory-services/mnemonic-pmdk-pmem-service/src/main/native/CMakeLists.txt
b/mnemonic-memory-services/mnemonic-pmdk-pmem-service/src/main/native/CMakeLists.txt
index 65de2d0..3f6fcf0 100644
--- a/mnemonic-memory-services/mnemonic-pmdk-pmem-service/src/main/native/CMakeLists.txt
+++ b/mnemonic-memory-services/mnemonic-pmdk-pmem-service/src/main/native/CMakeLists.txt
@@ -50,7 +50,7 @@ endif (NOT LIBPMEMOBJ_LIBRARIES)
 
 add_library(pmdkpmemallocator SHARED common.c org_apache_mnemonic_service_memory_internal_PMDKPMemServiceImpl.c)
 target_include_directories(pmdkpmemallocator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-target_link_libraries(pmdkpmemallocator ${LIBPMEMOBJ_LIBRARIES} ${LIBPMEM_LIBRARIES})
+target_link_libraries(pmdkpmemallocator ${LIBPMEMOBJ_LIBRARIES} ${LIBPMEM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
 
 include (InstallRequiredSystemLibraries)
 set (CPACK_RESOURCE_FILE_LICENSE
diff --git a/mnemonic-memory-services/mnemonic-pmdk-vmem-service/src/main/native/CMakeLists.txt
b/mnemonic-memory-services/mnemonic-pmdk-vmem-service/src/main/native/CMakeLists.txt
index e0ab097..0b5c340 100644
--- a/mnemonic-memory-services/mnemonic-pmdk-vmem-service/src/main/native/CMakeLists.txt
+++ b/mnemonic-memory-services/mnemonic-pmdk-vmem-service/src/main/native/CMakeLists.txt
@@ -45,7 +45,7 @@ endif (NOT LIBVMEM_LIBRARIES)
 
 add_library(pmdkvmemallocator SHARED common.c org_apache_mnemonic_service_memory_internal_PMDKVMemServiceImpl.c)
 target_include_directories(pmdkvmemallocator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-target_link_libraries(pmdkvmemallocator ${LIBVMEM_LIBRARIES})
+target_link_libraries(pmdkvmemallocator ${LIBVMEM_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
 
 include (InstallRequiredSystemLibraries)
 set (CPACK_RESOURCE_FILE_LICENSE
diff --git a/mnemonic-memory-services/mnemonic-sys-vmem-service/src/main/native/CMakeLists.txt
b/mnemonic-memory-services/mnemonic-sys-vmem-service/src/main/native/CMakeLists.txt
index 3631b7f..a0b356a 100644
--- a/mnemonic-memory-services/mnemonic-sys-vmem-service/src/main/native/CMakeLists.txt
+++ b/mnemonic-memory-services/mnemonic-sys-vmem-service/src/main/native/CMakeLists.txt
@@ -40,6 +40,7 @@ include_directories(${CMAKE_THREAD_LIBS_INIT})
 
 add_library(sysvmemallocator SHARED common.c org_apache_mnemonic_service_memory_internal_SysVMemServiceImpl.c)
 target_include_directories(sysvmemallocator PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+target_link_libraries(sysvmemallocator ${CMAKE_THREAD_LIBS_INIT})
 
 include (InstallRequiredSystemLibraries)
 set (CPACK_RESOURCE_FILE_LICENSE
diff --git a/pom.xml b/pom.xml
index 0275859..e812906 100644
--- a/pom.xml
+++ b/pom.xml
@@ -369,7 +369,7 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-antrun-plugin</artifactId>
-          <version>1.8</version>
+          <version>3.0.0</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>


Mime
View raw message