NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdfgroup] libcf error compiling on RHEL 6

Hello All,

I'm trying to compile netcdf-4.1.3 on RHEL6 and getting the following error 
during the build.  
Omitting the   "--with-libcf" option allows the build and test to succeed.

Here's my compile statement:

export CFLAGS="-fPIC -I$CONTRIB/hdf5-1.8.7/include"
export CPPFLAGS="-I$CONTRIB/hdf5-1.8.7/include"
export LDFLAGS="-L$CONTRIB/hdf5-1.8.7/lib"

./configure \
  --prefix=${CONTRIB}/netcdf-4.1.3 \
  --enable-netcdf-4 \
  --enable-cxx-4 \
  --enable-logging \
  --disable-dap \
  --disable-fortran \
  --with-udunits \
  --with-hdf5=${CONTRIB}/hdf5-1.8.7 \
  --with-zlib \
  --enable-shared \
  --with-libcf 

and here's the error:
...
Making all in cfcheck
make[4]: Entering directory 
`/data/backup/contrib/src/netcdf-4.1.3/libcf/cfcheck'
depbase=`echo cfcheck.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        cc -DHAVE_CONFIG_H -I. -I..  -I../src  -I../.. -I../../include 
-I../../liblib -
I/data/backup/contrib/hdf5-1.8.7/include  -fPIC -I/data/backup/contrib/hdf5-
1.8.7/include -MT cfcheck.o -MD -MP -MF $depbase.Tpo -c -o cfcheck.o cfcheck.c 
&&\
        mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool --tag=CC   --mode=link cc  -fPIC -I/data/backup/contrib/hdf5-
1.8.7/include  ../../liblib/libnetcdf.la  -L/data/backup/contrib/hdf5-1.8.7/lib 
-lhdf5_hl -
lhdf5 -Lyes/lib -lz -lm -L/data/backup/contrib/hdf5-1.8.7/lib -
L/data/backup/contrib/hdf5-1.8.7/lib -o cfcheck cfcheck.o  -lm 
../libtool: line 5992: cd: yes/lib: No such file or directory
libtool: link: cannot determine absolute directory name of `yes/lib'
make[4]: *** [cfcheck] Error 1
make[4]: Leaving directory `/data/backup/contrib/src/netcdf-4.1.3/libcf/cfcheck'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/data/backup/contrib/src/netcdf-4.1.3/libcf'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/data/backup/contrib/src/netcdf-4.1.3/libcf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/backup/contrib/src/netcdf-4.1.3'
make: *** [all] Error 2

I'm assuming that the libcf option is expecting a path and getting a default 
value of "yes".  Is 
this option currently supported?  Is the libcf library need to be installed 
separately?  I only see 
an alpha version - is that correct?

Thanks!

--john

--john



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: