On Nov 9, 2006, at 9:06 AM, Åke Sandgren wrote:
> 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
> 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.
Thanks for the report and sorry for the slow reply. I've committed
the patch to the trunk and it should be committed to the v1.2 release
at some point, although possibly not until after the initial 1.2