LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Davide Cesari (dcesari_at_[hidden])
Date: 2006-02-28 03:23:41


Robert LeBlanc ha scritto:
> I've been trying to compile Charmm for three weeks now and just can't figure
> out how to resolve this error. When the final binary is being assemblied I
> get tons of messages like this:
>
> /usr/local/lam/intel_80/lib/libmpi.a(malloc.o)(.text+0xa): In function
> `malloc_atfork':
> : undefined reference to `pthread_getspecific'
> /usr/local/lam/intel_80/lib/libmpi.a(malloc.o)(.text+0x15e): In function
> `free_atfork':
> : undefined reference to `pthread_getspecific'
> /usr/local/lam/intel_80/lib/libmpi.a(malloc.o)(.text+0x22d): In function
> `ptmalloc_lock_all':
> : undefined reference to `pthread_getspecific'
> /usr/local/lam/intel_80/lib/libmpi.a(malloc.o)(.text+0x23f): In function
> `ptmalloc_lock_all':
> : undefined reference to `pthread_setspecific'
> /usr/local/lam/intel_80/lib/libmpi.a(malloc.o)(.text+0x261): In function
> `ptmalloc_unlock_all':

Probably adding -lpthread to the linking command line helps, at least to step
forward to the next error message, pthread_get/setspecific appear to be in
libpthread.
        Davide