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

[netCDF #SZI-220177]: netcdf-fortran - libtool problems



Hi Mike,

> Any word on this?

From your config.log file, it appears that the netCDF-C library isn't
correctly installed:

 ...
  configure:21264: /usr/bin/gcc -o conftest -g -O2 
-I/usr/local/netcdf-4.3.3.1/include -L/usr/local/netcdf-4.3.3.1/lib conftest.c  
>&5
  /tmp/ccCpneB9.o: In function `main':
  /scratch/mpv/netcdf/netcdf-fortran-4.4.2/conftest.c:46: undefined reference 
to `nc_open'
  collect2: ld returned 1 exit status
  configure:21264: $? = 1

If you try to list the netCDF library files, what do you see?

  $ ls -l /usr/local/netcdf-4.3.3.1/lib/libnetcdf*

If there's no output, then finish installing the netCDF-C library before trying 
to install 
netCDF-Fortran, as documented here:

  http://www.unidata.ucar.edu/netcdf/docs/building_netcdf_fortran.html

It's possible that you built and tested the netCDF-C library, but just neglected
to install it with "make install".

--Russ


> On 05/07/2015 02:36 PM, Unidata netCDF Support wrote:
> > Hello Michael,
> >
> > That is odd; can you provide the `config.log` file generated when you ran 
> > configure?  Also, can you tell me what version of libtool you are using? I 
> > will try to duplicate this issue, but I do not see a problem in any of our 
> > linux environments.
> >
> > Thanks!
> >
> > -Ward
> >
> >> Hello,
> >>
> >> I am trying to build netcdf-fortran-4.4.2 on a RHEL6 box. The "make
> >> check" fails with the following libtool error:
> >>
> >> /bin/sh ../libtool  --tag=F77   --mode=link  -I../fortran
> >> -I../fortran   -L/usr/local/netcdf-4.3.3.1/li
> >> b -o nf_test f03lib_f_interfaces.o test_get.o test_put.o nf_error.o
> >> nf_test.o test_read.o test_write.o ut
> >> il.o f03lib.o ../fortran/libnetcdff.la
> >> Usage: /scratch/mpv/netcdf/netcdf-fortran-4.4.2/libtool [OPTION]...
> >> [MODE-ARG]...
> >> Try 'libtool --help' for more information.
> >> libtool:   error: unrecognised option: '-I../fortran'
> >> make[2]: *** [nf_test] Error 1
> >> make[2]: Leaving directory
> >> `/scratch/mpv/netcdf/netcdf-fortran-4.4.2/nf_test'
> >> make[1]: *** [check-am] Error 2
> >> make[1]: Leaving directory
> >> `/scratch/mpv/netcdf/netcdf-fortran-4.4.2/nf_test'
> >> make: *** [check-recursive] Error 1
> >> address@hidden netcdf-fortran-4.4.2]#
> >>
> >> I tried an older version (netcdf-fortran-4.4.1) and the "make check"
> >> failed quicky with a different libtool error.
> >>
> >> make[2]: Entering directory `/scratch/netcdf/netcdf-fortran-4.4.1/fortran'
> >> /bin/sh ../libtool  --tag=FC   --mode=compile   -g -O2 -c -o
> >> typeSizes.lo  typeSizes.f90
> >> libtool: compile: unrecognized option `-g'
> >> libtool: compile: Try `libtool --help' for more information.
> >> make[2]: *** [typeSizes.lo] Error 1
> >> make[2]: Leaving directory `/scratch/netcdf/netcdf-fortran-4.4.1/fortran'
> >> make[1]: *** [check] Error 2
> >> make[1]: Leaving directory `/scratch/netcdf/netcdf-fortran-4.4.1/fortran'
> >> make: *** [check-recursive] Error 1
> >>
> >>
> >> Any ideas?
> >>
> >> Thanks,
> >> Mike
> >>
> >> --
> >> Michael Vrencur
> >> Ace Info Solutions, Inc. (AceInfo) Supporting NOAA
> >> Advanced Technology and Outreach Branch
> >> Global Systems Division / Earth System Research Laboratory
> >> address@hidden
> >> 303.497.7526
> >>
> >>
> >>
> >
> > Ticket Details
> > ===================
> > Ticket ID: SZI-220177
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> 
> 
> --
> Michael Vrencur
> Ace Info Solutions, Inc. (AceInfo) Supporting NOAA
> Advanced Technology and Outreach Branch
> Global Systems Division / Earth System Research Laboratory
> address@hidden
> 303.497.7526
> 
> 
Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: SZI-220177
Department: Support netCDF
Priority: High
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.