Re: [AMBER] ld: duplicate symbol _gauss in ../lib/sys.a(random.o) and rand2.o

From: case <>
Date: Thu, 1 Jul 2010 08:58:33 -0400

On Wed, Jun 30, 2010, Yu Chen wrote:
> I am trying to compile parallel Amber 11 on snow leopard (10.6.4) with
> gcc/gfortran, and got duplicate symbol error as in the subject (full
> error message at the end of the email), wondering if some one can give
> some advices. Thanks in advance!

We have always relied on name mangling to disambiguate the gauss() function
in random.f and rand2.c, but it looks like that may no longer be possible.

Try the attached patch file, doing this:

   patch -p0 -N < patch-file

Then do a "make clean" and recompile.

[Aside: can you say where you obtained your gcc/gfortran 4.5.0 from, e.g.
fink, macports, compiled it yourself....?]

Thanks for the report....dac

AMBER mailing list

Received on Thu Jul 01 2010 - 06:00:04 PDT
Custom Search