[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 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