fre, 05 06 2009 kl. 22:02 +0200, skrev Benjamin Lindner:
> Trying to build symbolic-1.0.8 on octave 3.2 I get the same error as
> when trying to build octcdf-1.0.12
I've applied the attached patch to SVN.
Søren
Index: main/symbolic/src/sym-create.cc
===================================================================
--- main/symbolic/src/sym-create.cc (revision 5896)
+++ main/symbolic/src/sym-create.cc (working copy)
@@ -17,6 +17,7 @@
*/
+#include <octave/oct.h>
#include <octave/config.h>
#include <octave/gripes.h>
#include <octave/defun-dld.h>
@@ -36,6 +37,7 @@
@end deftypefn\n\
")
{
+ mlock ();
octave_value retval;
GiNaC::numeric d;
int nargin = args.length();
@@ -71,6 +73,7 @@
"-*- texinfo -*-\n\
Create an object of type symbol\n")
{
+ mlock ();
octave_value retval;
int nargin = args.length ();
@@ -106,6 +109,7 @@
@end deftypefn\n\
")
{
+ mlock ();
octave_value retval;
GiNaC::ex expression;
int nargin = args.length();
Index: main/symbolic/src/symbols.cc
===================================================================
--- main/symbolic/src/symbols.cc (revision 5896)
+++ main/symbolic/src/symbols.cc (working copy)
@@ -151,16 +151,6 @@
install_ex_ops();
install_vpa_ops();
symbolic_type_loaded = true;
-
- // We should lock the constructor functions of this type in place,
- // otherwise something like
- // "symbols(); a=sym('V_max'); clear functions; a" generates
- // a seg-fault. Note this relies on the fact that Fsym, Fex_matrix
- // and Fvpa are linked into the symbols.oct file. If th
- // moved to this locking needs to be rethought.
- mlock ("sym");
- mlock ("ex_matrix");
- mlock ("vpa");
}
}
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev