On Fri, May 11, 2012 at 5:25 PM, Amal Ekbal <ask...@yahoo.com> wrote:
> Hi,
>
> I have two octave installs in Mac OS X 10.7.4. One in macports:
> octave-devel3.4.3 (+atlas +fltk +gcc44 +x11) and one in /Applications using
> the Octave.app disk image provided on Octave-Forge (Version 3.4.0).
>
> In both, I got errors related to libhdf5 library when I tried to install
> communications pkg (version 1.1.0). It gave an "undefined symbols for
> architecture" error related to functions such as:
>
> octave_galois::load_hdf5(int, char const*, bool)in ov-galois.o
> octave_galois::save_hdf5(int, char const*, bool)in ov-galois.o
>
> After some trial and error, I was able to resolve this by adding -lhdf5 to
> $FLIBS in mkoctfile for both the octave installations.
>
> I am curious if this is related to my installations specifically, as I don't
> see any bug reports related to this issue. Is there anything else I need to
> modify in the mkoctfile to make sure I don't encounter these issues again
> with other pkgs?

I'm not a MacUser, I don't know how your Octave(s) are built, but can
you run the following commands in a terminal and tell us what you see:

  mkoctfile -p OCTINCLUDEDIR
  grep HDF5_LIBS <answer from previous>/oct-conf.h

So for example I see this:

  $ mkoctfile -p OCTINCLUDEDIR
  /usr/include/octave-3.6.1/octave
  $ grep HDF5_LIBS /usr/include/octave-3.6.1/octave/oct-conf.h
  #ifndef OCTAVE_CONF_HDF5_LIBS
  #define OCTAVE_CONF_HDF5_LIBS "-lhdf5"

-- 
mike

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to