[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[McIDAS #XYE-715198]: Mcidas Update



Hi Heather,

re:
> I am having a problem updating my mcidas version.  I run into the same 
> problem with the
> update as I am with a fresh install.  I have attached my  makelog.

The operative lines from 'makelog' are the last:

gfortran -c -O -Wuninitialized -fno-automatic -fno-range-check 
-ffixed-line-length-none -fno-f2c -g -I. -I../netcdf/libsrc -I../hdf/hdf/src 
-I../hdf/mfhdf/libsrc -I../jpeg -I../libpng -I../zlib -I../tiff/libtiff 
-I../libgeotiff -I../jasper/src/libjasper/include -I../g2clib -I../bzip2 
convdlmf.f
/usr/libexec/gcc/x86_64-redhat-linux/4.1.2/f951: symbol lookup error: 
/usr/libexec/gcc/x86_64-redhat-linux/4.1.2/f951: undefined symbol: __gmpn_sqr_n
compile convdlmf.f:             FAILED

Since I have not seen this before, I did a Google search using '__gmpn_sqr_n'
as the search key (with no single quotes).  The following two hits seem
to fit what you are seeing:

Question posted in:
http://gmplib.org/list-archives/gmp-discuss/2010-November/004365.html

Reply to question in:
http://gmplib.org/list-archives/gmp-discuss/2010-November/004366.html

It looks like option 2 from the reply is the way to go:

1. Compile
   void __gmpn_sqr_n (unsigned long *rp, unsigned long *up, unsigned long n)
     {__gmpn_sqr (rp, up, n);}
   and link to your application.  How to link it, depends on your
   system.  N.B. This is a gros fix that bypasses the GMP typing system,
   but it should work on most systems.

2. Link to GMP 4.3.2 or perhaps an older release of GMP.

Comment:

- my development environment is CentOS 6.3 x86_64

  As you probably know, CentOS is the "freeware" distribution of
  RedHat Enterprise, and v6.3 is the latest release.  Since I
  don't experience the problem you are seeing, and since my
  CentOS installation of GMP is newer than yours:

  CentOS 6.3 GMP:
  /usr/libexec/gcc/x86_64-redhat-linux/4.4.4/f951

  Your RedHat installation:
  /usr/libexec/gcc/x86_64-redhat-linux/4.1.2/f951

  I am assuming that newer versions of GMP provide the entry point
  that is missing from your installation, __gmpn_sqr_n.

- the other comment I have is that it is likely that your version
  of gfortran (and gcc?) are older than mine

  Here is what I ran that led me to this comment:

% rpm -qf /usr/libexec/gcc/x86_64-redhat-linux/4.4.4/f951
gcc-gfortran-4.4.6-4.el6.x86_64

% file /usr/libexec/gcc/x86_64-redhat-linux/4.4.4/f951
/usr/libexec/gcc/x86_64-redhat-linux/4.4.4/f951: ELF 64-bit LSB executable, 
x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 
2.6.18, stripped

Question:

- was there an update to system utilities lately, and was there
  _not_ and update to the gcc and/or gfortran compilers?



> Thank you!
> 
> Heather Kiley

Cheers,

Tom
--
****************************************************************************
Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage                       http://www.unidata.ucar.edu
****************************************************************************


Ticket Details
===================
Ticket ID: XYE-715198
Department: Support McIDAS
Priority: Normal
Status: Closed