[OMPI users] Open MPI: undefined reference to pthread_atfork

2018-06-22 Thread lille stor
Hi,   When compiling a C++ source file named test.cpp that needs a shared library named libUtils.so which in its turn needs Open MPI shared library libmpi.so (hence the parameter -Wl,-rpath-link,/home/dummy/openmpi/build/lib): g++ test.cpp -lUtils -Wl,-rpath-link,/home/dummy/openmpi/build/

[OMPI users] Error when using Open MPI shared library in a program compiled by g++

2018-07-01 Thread lille stor
Hi,   I have successfully built Open MPI version 2.1.3 from scratch in Ubuntu 14.04 64 bit and using GCC 4.9. The result was the following shared libraries (needed for a program to use Open MPI):         dummy@machine:~/$ ldd /home/dummy/openmpi/build/lib/libmpi.so /home/dummy/openmpi/build/lib