Re: [AMBER] Compilation problems for parallel build after applying patches

From: Jason Swails <jason.swails.gmail.com>
Date: Tue, 12 Feb 2013 12:20:14 -0500

Weird. I'm going to guess there is a libnetcdf.a (and probably
libnetcdff.a) in /usr/lib64, /usr/lib or something like that (maybe
/opt/local/lib?) (which were probably built with the GNU compilers?) I'm
guessing it's trying to link that library instead of the one in
$AMBERHOME/lib.

Try modifying the config.h file and replace

-L$(BASEDIR)/lib -lnetcdf

with

$(BASEDIR)/lib/libnetcdf.a

This should appear in two places in the config.h file: the NETCDFLIB
variable and the FLIBS variable. This should _force_ the linker to use the
AMBER NetCDF library (which you've just shown has the necessary symbols).

Good luck,
Jason

2013/2/12 Miguel Ortiz Lombardía <miguel.ortiz-lombardia.afmb.univ-mrs.fr>

> Le 12/02/13 17:29, Jason Swails a écrit :
> > nm $AMBERHOME/lib/libnetcdf.a | grep netcdf_mp_nf90_def_dim_
> 0000000000000330 T _netcdf_mp_nf90_def_dim_
> 000000000005d900 S _netcdf_mp_nf90_def_dim_.eh
>
>
> --
> Miguel Ortiz Lombardía
>
> Architecture et Fonction des Macromolécules Biologiques (UMR7257)
> CNRS, Aix-Marseille Université
> Case 932, 163 Avenue de Luminy, 13288 Marseille cedex 9, France
> Tel: +33(0) 491 82 55 93
> Fax: +33(0) 491 26 67 20
> mailto:miguel.ortiz-lombardia.afmb.univ-mrs.fr
> http://www.afmb.univ-mrs.fr/Miguel-Ortiz-Lombardia
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>



-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Candidate
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Feb 12 2013 - 09:30:03 PST
Custom Search