As initially reported at https://www.mail-archive.com/users@lists.open-mpi.org/msg31288.html it is necessary to manually add some libraries in order to use libpbs.
on my centos 7 box, a minimal program like this one
#include <tm.h>
int main (int argc, char *argv[])
{
struct tm_roots *roots;
void * info;
return tm_init (info, roots);
}
needs to be linked with -lcrypto -lpthread on top of -lpbs
is there any reason why libpbs.so does not depend on libcrypto and libpthread ?
fwiw, the inline patch below fixes this (e.g. no more need for -lcrypto -lpthread)
diff --git a/src/lib/Libpbs/Makefile.am b/src/lib/Libpbs/Makefile.am
index ea695ee..b7d6752 100755
--- a/src/lib/Libpbs/Makefile.am
+++ b/src/lib/Libpbs/Makefile.am
@@ -47,6 +47,10 @@ libpbs_la_CPPFLAGS = -I$(top_srcdir)/src/include
#
libpbs_la_LDFLAGS = -version-info 0:0:0
+libpbs_la_LIBADD= \
+ -lcrypto \
+ -lpthread
+
libpbs_la_SOURCES = \
../Libattr/attr_fn_arst.c \
../Libattr/attr_fn_b.c \