I sent this in October and got very little feedback.
There is a problem in ompi_config_pthreads.m4 and
ompi_check_pthread_pids.m4 at least on Ubuntu Dapper
with both gcc and pgi.
The attached patch against v1.1.2 fixes the problem.
What happens is that in OMPI_INTL_POSIX_THREADS_LIBS_CXX it was
incorrectly setting PTHREAD_LIBS to $pl which at the time isn't set yet
and forgetting to reset LIBS on failure.
In OMPI_INTL_POSIX_THREADS_LIBS_FC it was resetting LIBS too quickly
resulting in -lpthread missing when checking for
In OMPI_THREADS_HAVE_DIFFERENT_PIDS it didn't add THREAD_CFLAGS to
CFLAGS resulting in the code failing to link.
The testcode in itself was also broken so that some compilers failed
even to compile it.
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: ake_at_[hidden] Phone: +46 90 7866134 Fax: +46 90 7866126
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se