[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #29794] --enable-64 keeps OCTAVE_IDX_TYPE=int
From: |
Alois Schlögl |
Subject: |
[Octave-bug-tracker] [bug #29794] --enable-64 keeps OCTAVE_IDX_TYPE=int |
Date: |
Wed, 05 May 2010 16:29:44 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100402 Ubuntu/9.10 (karmic) Firefox/3.5.9 |
URL:
<http://savannah.gnu.org/bugs/?29794>
Summary: --enable-64 keeps OCTAVE_IDX_TYPE=int
Project: GNU Octave
Submitted by: schloegl
Submitted on: Wed 05 May 2010 04:29:43 PM GMT
Category: Configuration and Build System
Severity: 3 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Alois Schlögl
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
I tried to use a mex-file on 64-bit Octave and got memory allocation problem.
The problem was casued by the fact
that mwSize and mwIndex were defined as int in src/mxarray.h, although
configure has been ran with --enable-64
The following patch defines mwSize and mwIndex as long, and solves this
problem.
diff -r 580c8d3baf11 configure.ac
--- a/configure.ac Wed May 05 16:08:43 2010 +0200
+++ b/configure.ac Wed May 05 18:18:33 2010 +0200
@@ -194,9 +194,7 @@
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
if test $ac_cv_sizeof_void_p -eq 8; then
- if test $ac_cv_sizeof_int -eq 8; then
- OCTAVE_IDX_TYPE=int
- elif test $ac_cv_sizeof_long -eq 8; then
+ if test $ac_cv_sizeof_long -eq 8; then
OCTAVE_IDX_TYPE=long
AC_DEFINE(IDX_TYPE_LONG, 1, [Define to 1 if octave index type is
long])
else
Alois
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29794>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #29794] --enable-64 keeps OCTAVE_IDX_TYPE=int,
Alois Schlögl <=