[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #XOS-979526]: Problems building with --enable-hdf
- Subject: [netCDF #XOS-979526]: Problems building with --enable-hdf
- Date: Tue, 05 Nov 2013 12:30:36 -0700
Orion,
Did you mean "--enable-hdf4"? As far as I know, there is no "--enable-hdf"
option for netCDF, and I get a warning when I use that option:
$ ../configure --enable-hdf
configure: WARNING: unrecognized options: --enable-hdf
configure: netCDF 4.3.1-rc4
...
though it should probably be a fatal error rather than a warning ...
I talked with Ward about it, and he says he can add automatic handling
of the jpeg dependency when the HDF4 library is built statically, but it
probably won't be in the next release candidate.
--Russ
> I'm looking into building netcdf with --enable-hdf in Fedora. I'm
> running into problems because hdf is built statically. As a result I get:
>
> checking for Hclose in -ldf... no
> checking for SDcreate in -lmfhdf... no
>
> because:
>
> configure:16516: checking for Hclose in -ldf
> configure:16541: gcc -o conftest -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
> -I/usr/include/hdf -Wl,-z,relro -L/usr/lib64/hdf conftest.c -ldf
> -lhdf5_hl -lhdf5 -lm -lz -lcurl >&5
> /usr/lib64/hdf/libdf.a(dfjpeg.o): In function `DFCIjpeg':
> (.text+0x2ad): undefined reference to `jpeg_std_error'
>
> configure:16561: checking for SDcreate in -lmfhdf
> configure:16586: gcc -o conftest -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
> -I/usr/include/hdf -Wl,-z,relro -L/usr/lib64/hdf conftest.c -lmfhdf
> -lhdf5_hl -lhdf5 -lm -lz -lcurl >&5
> /usr/lib64/hdf/libmfhdf.a(mfsd.o): In function `SDstart':
> (.text+0xee): undefined reference to `error_top'
>
> I can work around this with LIBS='-ldf -ljpeg', but be nice if this was
> done automatically when using a static hdf library.
>
> --
> Orion Poplawski
> Technical Manager 303-415-9701 x222
> NWRA, Boulder/CoRA Office FAX: 303-415-9702
> 3380 Mitchell Lane address@hidden
> Boulder, CO 80301 http://www.nwra.com
>
>
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: XOS-979526
Department: Support netCDF
Priority: Normal
Status: Closed