I believe you have to tell configure explicitly where the hdflibs are,
such as:
--with-szlib= (if you compiled with szlib)
--with-zlib=
--with-hdf5=
Try that. HTH.
-Roy
On Sep 28, 2009, at 3:11 PM, Orion Poplawski wrote:
make[3]: Entering directory `/builddir/build/BUILD/netcdf-4.1-beta2-
snapshot2009092800/ncdap_test'
depbase=`echo test_varm3.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -I.. -I../ncdump -I../
libsrc4 -I/usr/include/hdf -O2 -g -pipe -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
size=4 -m64 -mtune=generic -MT test_varm3.o -MD -MP -MF $depbase.Tpo
-c -o test_varm3.o test_varm3.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool --tag=CC --mode=link cc -O2 -g -pipe -Wall -
Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-
buffer-size=4 -m64 -mtune=generic -L../libsrc4 -L/usr/lib64/hdf -o
test_varm3 test_varm3.o ../libsrc4/libnetcdf.la -lhdf5_hl -lhdf5
libtool: link: cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -
fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -
mtune=generic -o .libs/test_varm3 test_varm3.o -L/builddir/build/
BUILD/netcdf-4.1-beta2-snapshot2009092800/libsrc4 -L/usr/lib64/
hdf ../libsrc4/.libs/libnetcdf.so -L/usr/lib -L/lib -lcurl -lhdf5_hl
-lhdf5 -Wl,-rpath -Wl,/usr/lib64
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDend'
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDfileinfo'
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDdiminfo'
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDgetfillvalue'
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDgetinfo'
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDselect'
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDgetdimid'
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDstart'
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDreaddata'
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDreadattr'
../libsrc4/.libs/libnetcdf.so: undefined reference to `SDattrinfo'
collect2: ld returned 1 exit status
Configure args are:
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-
linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --
prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --
libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --
sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/
info CPPFLAGS=-I/usr/include/hdf LDFLAGS=-L/usr/lib64/hdf --enable-
shared --enable-netcdf-4 --enable-dap --enable-hdf4 --enable-ncgen4
--enable-extra-example-tests --enable-valgrind-tests --with-libcf
Presumably this shouldn't be compiled in this configuration? Or hdf
needs to be compiled differently? Or this needs to be linked to -
lmfhdf? Or?
Thanks!
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@xxxxxxxxxxxxx
Boulder, CO 80301 http://www.cora.nwra.com
_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/
**********************
"The contents of this message do not reflect any position of the U.S.
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097
e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/
"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"