This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: reg problem in cernlib
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: kaushik at veccal dot ernet dot in
- Cc: fortran at gcc dot gnu dot org
- Date: Fri, 22 Jul 2011 12:48:19 +0200
- Subject: Re: reg problem in cernlib
- References: <2c3f52d2db.2d2db2c3f5@veccal.ernet.in>
Hi,
On 2011-07-22 12:49, kaushik@veccal.ernet.in wrote:
I have recently install cernlib in my system, my system is i686,scientific linux5 -gcc4.1, i install cernlib amnually, when i run programs using cernlib i got following error, is it due to gfortran. Whether i have istall gfortran separately.
/usr/local/cern/pro/i686-slc5-gcc41-opt/lib/libpacklib_noshift.a(divdif.o): In function `divdif_':
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:94: undefined reference to `_gfortran_st_write'
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:94: undefined reference to `_gfortran_transfer_integer'
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:94: undefined reference to `_gfortran_st_write_done'
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:95: undefined reference to `_gfortran_st_write'
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:95: undefined reference to `_gfortran_transfer_integer'
/build/LCG/work/cernlib/2006/src/packlib/kernlib/kernnum/e105fort/divdif.F:95: undefined reference to `_gfortran_st_write_done'
1) is your CERNLIB compiled with the same version of gfortran as your
program that uses it? Otherwise you might run into similar
incompatibilities, especially if you use a library that is compiled
with a newer gfortran than the one you're using.
2) do you use gfortran as a linker? Otherwise you will have to provide
the correct arguments on the linker line ('-lgfortran
-lgfortranbegin' do it for gfortran 4.4.5, it may be different in
your version)
Cheers,
- Tobi