Problems with pkg and Symbolic-1.0.7

Thomas D. Dean tomdean at speakeasy.org
Fri Feb 6 01:25:09 CST 2009


I installed 3.1.51+ as of a couple hours ago.

I had to manually install oct-hdf5.h.  I seem to remember seeing
something about this, but, I can not find it with reference to
miscellaneous pkg.  Copying this file to the install include directory
fixed the problem.  If this problem has not been fixed, I attached a
patch.

The package symbolic-1.0.7 uses mlock() in src/symbolic.cc with an
argument.  The current version of mlock does not allow arguments.  I did
not make a patch for this.

Changing 
      mlock ("sym");
      mlock ("ex_matrix");
      mlock ("vpa");
to
      mlock (); //"sym");
      mlock (); //"ex_matrix");
      mlock (); //"vpa");

allowed the package to compile and install. The comment in the code
warns of the seg faults with the sequence
octave:12> symbols
octave:13> a=sym("V_max")
 a =
 V_max
octave:14> clear functions
octave:15> a
 a =
 V_max
octave:16> a
 a = 
 V_max
octave:17> clear
octave:18> a
error: `a' undefined near line 18 column 1

This all appears as I would expect.  I did it in a loop with no faults.

tomdean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: src.patch.4
Type: text/x-patch
Size: 1075 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090205/ceec60c7/attachment.bin 


More information about the Bug-octave mailing list