undefined reference to ' gfortran copy string'


Click here for full thread
Just Got Here
linking with libgfortran.so.3 and libgfortran.so.1
Hi,

I'm trying to c_ompile the Nov 6 2012 version of nwchem with openmpi. I will be running on one machine - a quad core i7, so I want to be able to use the 4 cores in parallel. It's running Suse 11.

I'm running into the problem that Rwohlhueter also observed: link fails with the following error:
/usr/local/nwchem-src-2012-11-06/src/tools/install/lib/libga.a(ilaenv.o): In function `gal_ilaenv_':
ilaenv.f:(.text+0x71): undefined reference to `_gfortran_copy_string'

Earlier in this thread Rwohlhueter says "I find that indeed that the libgfortran.so.3 (as supplied by gfortran v4.6.3 - the latest synaptic offers) does not contain that symbol, but the libgfortran.so.1 supplied with the pre-c_ompiled version of ECCE6.4 does. Linking with that library, I am able to c_ompile the NWChem source ( NWChem-src-2012-Jul-25)"

I've tried to link using libgfortran.so.1 instead of libgfortran.so.3, by changing the symbolic link for version 3 to the library for version 1, but I get many link errors, as openmpi needs some routines that are in version 3 and not in 1. How do I tell the linker to use both libgfortran.so.1 and libgfortran.so.3? Is there something I change in the make file?

Thanks!