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

[netCDF #KLD-692686]: configure: error: Can't find or link to the szlib library



That's great news! Would you mind sending your config.log? It turns out that 
configure should check for both lszip (the windows lib) and lsz (everything 
else), but for some reason it did't move on to step 2 for you. Also, there is a 
bug regarding the test suite that pops up when configure is passed a certain 
set of flags in combination - which flags did you pass configure?

Sean

> Hello Sean,
> 
> yipie
> 
> Congratulations! You have successfully installed netCDF!
> 
> ldd ncdump
> libnetcdf.so.7 =>        /opt/netcdf-4.1.3/lib/libnetcdf.so.7
> libhdf5_hl.so.7 =>       /opt/hdf5-1.8.7/lib/libhdf5_hl.so.7
> libhdf5.so.7 =>  /opt/hdf5-1.8.7/lib/libhdf5.so.7
> libsz.so.2 =>    /opt/szip-2.1/lib/libsz.so.2
> 
> 
> 
> 
> only make check failed
> 
> 
> f95  -I../fortran  -I../f90 -I../f90  -I../include   -g -c -o
> f90tst_vars4.o  f90tst_vars4.f90
> /bin/bash ../libtool --tag=FC    --mode=link f95  -I../fortran  -I../f90
> -I../f90  -I../include   -g   -L/opt/hdf5-1.8.7/lib -L/opt/szip-2.1/lib
> -o f90tst_vars4 f90tst_vars4.o ../fortran/libnetcdff.la -lsz -lhdf5_hl
> -lhdf5 -lm -lz
> libtool: link: f95 -I../fortran -I../f90 -I../f90 -I../include -g -o
> .libs/f90tst_vars4 f90tst_vars4.o  -L/opt/hdf5-1.8.7/lib
> -L/opt/szip-2.1/lib ../fortran/.libs/libnetcdff.so
> /home/csys/wcohrs/tmp/netcdf-4.1.3/liblib/.libs/libnetcdf.so
> /opt/hdf5-1.8.7/lib/libhdf5_hl.so /opt/hdf5-1.8.7/lib/libhdf5.so
> /opt/szip-2.1/lib/libsz.so -lnsl -lsocket -lm -lz
> -R/opt/netcdf-4.1.3/lib -R/opt/hdf5-1.8.7/lib -R/opt/szip-2.1/lib
> f95  -I../fortran  -I../f90 -I../f90  -I../include   -g -c -o
> f90tst_vars2.o  f90tst_vars2.f90
> 
> integer, parameter :: CACHE_SIZE = 8, CACHE_NELEMS = 571,
> CACHE_PREEMPTION = 66
> ^
> "f90tst_vars2.f90", Line = 37, Column = 25: ERROR: "CACHE_SIZE" has the
> PARAMETER attribute.  It must not be given the PARAMETER attribute again.
> ^
> "f90tst_vars2.f90", Line = 37, Column = 41: ERROR: "CACHE_NELEMS" has
> the PARAMETER attribute.  It must not be given the PARAMETER attribute
> again.
> 
> call check(nf90_def_var(ncid, VAR5_NAME, NF90_INT, dimids, varid5,
> chunksizes = chunksizes, &
> ^
> "f90tst_vars2.f90", Line = 77, Column = 14: ERROR: No specific match can
> be found for the generic subprogram call "NF90_DEF_VAR".
> 
> call check(nf90_set_var_chunk_cache(ncid, varid1, CACHE_SIZE, &
> ^
> "f90tst_vars2.f90", Line = 85, Column = 14: ERROR: IMPLICIT NONE is
> specified in the local scope, therefore an explicit type must be
> specified for function "NF90_SET_VAR_CHUNK_CACHE".
> 
> f90comp: 196 SOURCE LINES
> f90comp: 4 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
> *** Error code 1
> make: Fatal error: Command failed for target `f90tst_vars2.o'
> Current working directory /home/csys/wcohrs/tmp/netcdf-4.1.3/nf_test
> *** Error code 1
> make: Fatal error: Command failed for target `check-am'
> Current working directory /home/csys/wcohrs/tmp/netcdf-4.1.3/nf_test
> *** Error code 1
> The following command caused the error:
> fail= failcom='exit 1'; \
> for f in x $MAKEFLAGS; do \
> case $f in \
> *=* | --[!k]*);; \
> *k*) failcom='fail=yes';; \
> esac; \
> done; \
> dot_seen=no; \
> target=`echo check-recursive | sed s/-recursive//`; \
> list='include udunits h5_test libdispatch        libsrc libsrc4   liblib
> nctest  nc_test f90 fortran ncgen3 ncgen ncdump nf_test     cxx
> nc_test4  man4 examples            '; for subdir in $list; do \
> echo "Making $target in $subdir"; \
> if test "$subdir" = "."; then \
> dot_seen=yes; \
> local_target="$target-am"; \
> else \
> local_target="$target"; \
> fi; \
> (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
> || eval $failcom; \
> done; \
> if test "$dot_seen" = "no"; then \
> make  "$target-am" || exit 1; \
> fi; test -z "$fail"
> make: Fatal error: Command failed for target `check-recursive'
> 
> thank you very much
> 
> Regards
> 
> Wolfgang
> 
> 
> 
> On 31.08.11 16:36, Unidata netCDF Support wrote:
> > Greetings Wolfgang,
> >
> > It seems as though I left out one important step. After you change 
> > configure.ac, you will need to run the following command:
> >
> > autoreconf -i
> >
> > (no input argument)
> >
> > This will propagate the changes made in configure.ac to the other files 
> > associated with building netCDF. If you don't have autoreconf, you will 
> > need to install autoconf.
> >
> > Cheers,
> >
> > Sean
> >
> >> Hi Sean,
> >>
> >> don't work
> >>
> >> checking for H5Pget_fapl_mpiposix... no
> >> checking for H5Pget_fapl_mpio... no
> >> checking for H5Pset_deflate... yes
> >> checking for H5Z_SZIP... yes
> >> checking whether parallel I/O features are to be included... no
> >> checking for library containing SZ_Compress... no
> >> configure: error: Can't find or link to the szlib library. Use
> >> --disable-netcdf-4, or see config.log for errors.
> >>
> >>
> >> configure:27152: cc -o conftest -g -I/opt/hdf5-1.8.7/include
> >> -I/opt/szip-2.1/include -L/opt/hdf5-1.8.7/lib -L/opt/szip-2.1/lib
> >> conftest.c -lszip  -lhdf5_hl -lhdf5 -lm -lz>&5
> >> "conftest.c", line 118: warning: statement not reached
> >> ld: fatal: library -lszip: not found
> >> ld: fatal: File processing errors. No output written to conftest
> >>
> >>
> >>
> >> diff configure.ac configure.ac.save
> >> 839c839
> >> <        AC_SEARCH_LIBS([SZ_Compress], [sz], [],
> >> ---
> >>>        AC_SEARCH_LIBS([SZ_Compress], [szip], [],
> >>
> >>
> >>
> >> All the best from
> >>
> >> Wolfgang
> >>
> >> On 30.08.11 18:21, Unidata netCDF Support wrote:
> >>> Greetings Wolfgang,
> >>>
> >>> It seems that the issue is that the compiler is trying to link to libszip 
> >>> (-lszip) rather than libsz (-lsz). I'll need to figure our why configure 
> >>> is using the -lszip flag rather than -lsz.
> >>>
> >>> As a quick fix, try the following in the top level directory of your 
> >>> netCDF build (do a make clean first):
> >>>
> >>> sed -i -e 's/\[szip\]/\[sz\]/' configure.ac
> >>>
> >>> Then, re-configure and rebuild to see what happens.
> >>>
> >>> Cheers!
> >>>
> >>> Sean
> >>>
> >>>> Full Name: Wolfgang Cohrs
> >>>> Email Address: address@hidden
> >>>> Organization: AWI
> >>>> Package Version: 4.1.3
> >>>> Operating System: Solaris 10 x64
> >>>> Hardware:
> >>>> Description of problem:
> >>>>
> >>>> Hi,
> >>>>
> >>>> configure can't find szip:
> >>>>
> >>>> System = SunOS
> >>>> Release = 5.10
> >>>> KernelID = Generic_144489-07
> >>>> Machine = i86pc
> >>>> Origin# = 1
> >>>> NumCPU = 8
> >>>>
> >>>> cc: Sun C 5.11 SunOS_i386 145355-04 2011/06/09
> >>>>
> >>>>
> >>>> configure:27152: cc -o conftest -g -I/opt/szip-2.1/include 
> >>>> -I/opt/hdf5-1.8.7/include -L/opt/szip-2.1/lib -L/opt/hdf5-1.8.7/lib 
> >>>> conftest.c -lszip  -lhdf5_hl -lhdf5 -lm -lz>&5
> >>>> "conftest.c", line 118: warning: statement not reached
> >>>> ld: fatal: library -lszip: not found
> >>>> ld: fatal: File processing errors. No output written to conftest
> >>>> configure:27152: $? = 2
> >>>>
> >>>> i have hdf5 compiled with szlib:
> >>>> ldd /opt/hdf5-1.8.7/bin/h5dump
> >>>> libhdf5.so.7 =>    /opt/hdf5-1.8.7/lib/libhdf5.so.7
> >>>> libsz.so.2 =>      /opt/szip-2.1/lib/libsz.so.2
> >>>>
> >>>>
> >>>> regards
> >>>> Wolfgang
> >>>>
> >>>>
> >>>>
> >>>>
> >>> Ticket Details
> >>> ===================
> >>> Ticket ID: KLD-692686
> >>> Department: Support netCDF
> >>> Priority: Normal
> >>> Status: Closed
> >>>
> >> --
> >> Wolfgang Cohrs
> >> Stiftung Alfred-Wegener-Institut fuer Polar- und Meeresforschung
> >> Postfach 120161 D 27515 Bremerhaven
> >> mailto:address@hidden
> >> http://www.awi.de/People/show?wcohrs
> >>
> >>
> >
> > Ticket Details
> > ===================
> > Ticket ID: KLD-692686
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> 
> --
> Wolfgang Cohrs
> Stiftung Alfred-Wegener-Institut fuer Polar- und Meeresforschung
> Postfach 120161 D 27515 Bremerhaven
> mailto:address@hidden
> http://www.awi.de/People/show?wcohrs
> 
> 


Ticket Details
===================
Ticket ID: KLD-692686
Department: Support netCDF
Priority: Normal
Status: Closed