[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



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