Summary: | sysutils/bareos-server: bcopy, bextract, and bscan must be linked to the pthread library | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Trond Endrestøl <Trond.Endrestol> |
Component: | Individual Port(s) | Assignee: | Jose Alonso Cardenas Marquez <acm> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | Trond.Endrestol, ohartmann |
Priority: | --- | Keywords: | patch |
Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(acm) |
Hardware: | Any | ||
OS: | Any |
Description
Trond Endrestøl
2019-05-10 10:19:33 UTC
This issue was extended to bextract, and bscan. Augmenting existing sysutils/bareos-server/files/patch-core-src-stored_CMakeLists.txt with the lines below eliminates this issue. @@ -202,6 +202,7 @@ add_executable(bextract ${BEXTRACTSRS}) target_link_libraries(bextract bareossd bareosfind bareos + ${PTHREAD_LIBRARIES} ) add_executable(bscan ${BSCANSRCS}) @@ -212,6 +213,7 @@ add_executable(btape ${BTAPESRCS}) target_link_libraries(btape bareossd bareos + ${PTHREAD_LIBRARIES} ) add_executable(bcopy ${BCOPYSRCS}) @@ -219,6 +221,7 @@ target_link_libraries(bcopy bareossd bareos + ${PTHREAD_LIBRARIES} ) INSTALL(TARGETS bareossd DESTINATION ${libdir}) Same to me here, a quick and dirty patch is to append "-lpthread" to LDFLAGS+= ... A commit references this bug: Author: acm Date: Fri May 10 20:19:44 UTC 2019 New revision: 501197 URL: https://svnweb.freebsd.org/changeset/ports/501197 Log: - Fix pthread error [1] - Fix build when python 2.x is not default version [2] - Fix build when NLS option is not selected [3] - Fix pkg-plist - Few other modifications PR: 237818 237823 237825 Submitted by: Trond.Endrestol _ at _ ximalas.info [1][3], beldin _ at _ beldin.org [2] Reported by: pkg-fallout Changes: head/sysutils/bareos-server/Makefile head/sysutils/bareos-server/files/patch-core-CMakeLists.txt head/sysutils/bareos-server/files/patch-core-cmake_BareosFindAllLibraries.cmake head/sysutils/bareos-server/files/patch-core-cmake_BareosSetVariableDefaults.cmake head/sysutils/bareos-server/files/patch-core-src-include_baconfig.h head/sysutils/bareos-server/files/patch-core-src-plugins-filed_CMakeLists.txt head/sysutils/bareos-server/files/patch-core-src-stored_CMakeLists.txt head/sysutils/bareos-server/pkg-plist |