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

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



> Does this look correct? The "make check" for netCDF-C passed all the
> tests just fine. (see below).

Yes, that all looks fine. I suspect you just need to set the LD_LIBRARY_PATH
environment variable to include the library directory, since it's not in a place
where ld.so usually looks.  Set it before running the configure script.

If that doesn't work, I'm stumped.

--Russ

> 
> > [mvrencur@omega ~]$ ls -l /usr/local/netcdf-4.3.3.1/lib/libnetcdf*
> > -rw-r--r-- 1 root root 5163266 May  7 18:12
> > /usr/local/netcdf-4.3.3.1/lib/libnetcdf.a
> > -rwxr-xr-x 1 root root    1067 May  7 18:12
> > /usr/local/netcdf-4.3.3.1/lib/libnetcdf.la
> > -rw-r--r-- 1 root root     879 May  7 18:12
> > /usr/local/netcdf-4.3.3.1/lib/libnetcdf.settings
> > lrwxrwxrwx 1 root root      18 May  7 18:12
> > /usr/local/netcdf-4.3.3.1/lib/libnetcdf.so -> libnetcdf.so.7.2.0
> > lrwxrwxrwx 1 root root      18 May  7 18:12
> > /usr/local/netcdf-4.3.3.1/lib/libnetcdf.so.7 -> libnetcdf.so.7.2.0
> > -rwxr-xr-x 1 root root 3242090 May  7 18:12
> > /usr/local/netcdf-4.3.3.1/lib/libnetcdf.so.7.2.0
> > [mvrencur@omega ~]$
> 
> 
> ====
> below
> ====
> 
> ============================================================================
> Testsuite summary for netCDF 4.3.3.1
> ============================================================================
> # TOTAL: 55
> # PASS:  55
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  0
> # XPASS: 0
> # ERROR: 0
> 
> 
> ============================================================================
> Testsuite summary for netCDF 4.3.3.1
> ============================================================================
> # TOTAL: 11
> # PASS:  11
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  0
> # XPASS: 0
> # ERROR: 0
> ============================================================================
> 
> 
> ============================================================================
> Testsuite summary for netCDF 4.3.3.1
> ============================================================================
> # TOTAL: 10
> # PASS:  10
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  0
> # XPASS: 0
> # ERROR: 0
> ============================================================================
> 
> 
> ============================================================================
> Testsuite summary for netCDF 4.3.3.1
> ============================================================================
> # TOTAL: 2
> # PASS:  2
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  0
> # XPASS: 0
> # ERROR: 0
> ============================================================================
> 
> 
> 
> 
> 
> On 05/18/2015 08:42 AM, Unidata netCDF Support wrote:
> > 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
> >>>> [root@omega 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
> >
> 
> 
> --
> 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