On 16/05/11 14:39, Alexander Hansen wrote:
[]
> Our HDF package _does_ use the --disable-netcdf flag.  I also couldn't
> reproduce your result.

Unfortunately, this is only true on 10.6. While Marco has so far refused 
to tell which system he is on, I conclude from another of his posts 
where he quotes

> /sw/bin/dpkg-lockwait -i /sw/fink/dists/stable/main/binary-darwin-i386/
> sci/hdf_4.2r1-1012_darwin-i386.deb
> Selecting previously deselected package hdf.
> (Reading database ... 48048 files and directories currently installed.)
> Unpacking hdf (from .../hdf_4.2r1-1012_darwin-i386.deb) ...
> Setting up hdf (4.2r1-1012) ...

that he is running 10.5/intel. And on 10.5.8/intel, I get the same error 
as he does. The file hdf.info that provides hdf-4.2r1-1012 for MacOSX 
10.5 does not have the --disable-netcdf configure flag, probably because 
that version of hdf wouldn't understand it anyway. Instead, it has
SetCPPFLAGS: -DHAVE_NETCDF
which should do the same thing, according to the INSTALL file. 
Unfortunately, the CompileScript has the line

   CPPFLAGS=-DINTEL86 ./configure %c

which undoes the effect of the SetCPPFLAGS field (hdf maintainer CCed.)

Now I know nothing about the significance of this netcdf stuff, but when 
I change the above line to

   CPPFLAGS="-DINTEL86 -DHAVE_NETCDF" ./configure %c

and rebuild hdf, then gdl builds OK for me. The difference is that now 
the symbol "sd_nccreate" exists in libhdf.a, whereas in the previous 
version that symbol was called "nccreate" and not found by gdl.

There is another oddity in the hdf Compilescript: The complete clause 
around the above line reads

  if [ %m = "i386" ]; then
   CPPFLAGS=-DINTEL86 ./configure %c
  else
   ./configure %c
  fi

which on ppc would translate into

   ./configure --prefix=/sw --without-szlib 
--build=i686-redhat-linux-gnu --with-jpeg=/sw

and this looks weird for a ppc machine. According to comments in cvs 
logs, it doesn't work on ppc, so why is it not restricted to intel?

-- 
Martin








------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to