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

From: case <case.biomaps.rutgers.edu>
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:

   cd $AMBERHOME
   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
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber


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