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

[netCDF #HDU-140030]: Trouble with compiling NetCDF 4.1.3,



Hi Marko,

> I seem to have problems getting through the configure stage.
> 
> When using additional options ( --with-PACKAGE=) the final error is
> 'h5ef_libver_18' undeclared.
> But as i've read from the archives, that way i deprecated.
> 
> When specifying CPPFLAGS/LDFLAGS, it can't link to the szlib library
> (probably to neither of them)
> 
> Is the following way of declaring them correct?:
> 
> export CPPFLAGS="-I/home/szip-2.1/include -I/home/hdf5-1.8.10/hdf5/include
> -I/marko/zlib-1.2.7/include"
> export LDFLAGS="-lhdf5 -lhdf5_hl -lz -lsz -L/home/szip-2.1/lib
> -L/home/hdf5-1.8.10/hdf5/lib/  -L/home/zlib-1.2.7/lib"

Try changing the order of the LDFLAGS, because the "-lfoo" has to come after
the "-L/where/foo/is/installed" part.  Specifically, try this:

LDFLAGS="-L/home/hdf5-1.8.10/hdf5/lib/ -L/home/szip-2.1/lib 
-L/home/zlib-1.2.7/lib -lhdf5 -lhdf5_hl -lz -lsz"

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: HDU-140030
Department: Support netCDF
Priority: Normal
Status: Closed