help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help installing miscellaneous-1.2.0


From: Alexander Hansen
Subject: Re: Help installing miscellaneous-1.2.0
Date: Tue, 04 Jun 2013 21:27:16 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

On 6/4/13 8:50 PM, Engineero wrote:
Hello,

I am trying to install miscellaneous-1.2.0 for my Octave-3.6.4 on Mac OSX
10.7.5. I have C-compilers (plural) installed, Octave is installed and
running just fine, and I am having no issues installing other packages so it
does not seem to be a mkoctfile issue.

I am getting a few errors that look like they are in the sources for the
components within miscellaneous-1.2.0, specifically in declarations of
Array<octave_idx_type> objects. I cannot tell whether this is a source issue
or a compiler issue or something else, and I am not sure how to figure this
out. Any help would be greatly appreciated.

The full screen dump is below.

pkg install miscellaneous-1.2.0.tar.gz
In file included from cell2cell.cc:16:
In file included from /sw/include/octave-3.6.4/octave/../octave/oct.h:36:
In file included from /sw/include/octave-3.6.4/octave/defun-dld.h:30:
In file included from /sw/include/octave-3.6.4/octave/defun-int.h:28:
In file included from /sw/include/octave-3.6.4/octave/ov-builtin.h:28:
In file included from /sw/include/octave-3.6.4/octave/ov-fcn.h:35:
In file included from /sw/include/octave-3.6.4/octave/symtab.h:34:
/sw/include/octave-3.6.4/octave/regexp.h:90:3: warning: 'opts' defined as a
struct here but previously declared as a class [-Wmismatched-tags]
   struct opts
   ^
/sw/include/octave-3.6.4/octave/regexp.h:40:3: note: did you mean struct
here?
   class opts;
   ^~~~~
   struct
1 warning generated.
In file included from partarray.cc:16:
In file included from /sw/include/octave-3.6.4/octave/../octave/oct.h:36:
In file included from /sw/include/octave-3.6.4/octave/defun-dld.h:30:
In file included from /sw/include/octave-3.6.4/octave/defun-int.h:28:
In file included from /sw/include/octave-3.6.4/octave/ov-builtin.h:28:
In file included from /sw/include/octave-3.6.4/octave/ov-fcn.h:35:
In file included from /sw/include/octave-3.6.4/octave/symtab.h:34:
/sw/include/octave-3.6.4/octave/regexp.h:90:3: warning: 'opts' defined as a
struct here but previously declared as a class [-Wmismatched-tags]
   struct opts
   ^
/sw/include/octave-3.6.4/octave/regexp.h:40:3: note: did you mean struct
here?
   class opts;
   ^~~~~
   struct
partarray.cc:42:31: error: variable length array of non-POD element type
'Array<octave_idx_type>'
   Array<octave_idx_type> bidc [maxdims], eidc [maxdims];
                               ^
partarray.cc:55:11: error: use of undeclared identifier 'eidc'
           eidc[i] = eidx;
           ^
partarray.cc:70:11: error: use of undeclared identifier 'eidc'
           eidc[i] = octave_value (arg.matrix_value ().column (1)).
           ^
partarray.cc:74:37: error: use of undeclared identifier 'eidc'
               if (bidc[i](j) < 1 || eidc[i](j) > alldims(i))
                                     ^
partarray.cc:77:32: error: use of undeclared identifier 'eidc'
               if (bidc[i](j) > eidc[i](j))
                                ^
partarray.cc:79:17: error: use of undeclared identifier 'eidc'
                 eidc[i](j) = bidc[i](j) - 1;
                 ^
partarray.cc:106:33: error: use of undeclared identifier 'eidc'
           octave_idx_type end = eidc[j](cidx(j));
                                 ^
1 warning and 7 errors generated.
make: *** [partarray.oct] Error 1
'make' returned the following error: mkoctfile -Wall cell2cell.cc
mkoctfile -Wall partarray.cc
error: called from 'pkg>configure_make' in file
/sw/share/octave/3.6.4/m/pkg/pkg.m near line 1385, column 9
error: called from:
error:   /sw/share/octave/3.6.4/m/pkg/pkg.m at line 827, column 5
error:   /sw/share/octave/3.6.4/m/pkg/pkg.m at line 383, column 9

Thanks a lot!




You appear to be using Fink. Is there any particular reason that you didn't just use "fink install miscellaneous-oct364"?

The problem is that Fink's octave build sets clang as the default C/C++compiler on 10.7 or 10.8, and miscellaneous is incompatible with it (I believe a bug report to that effect has been filed). Fink's miscellaneous-oct364 package is tweaked to avoid this problem.

In general, if you want to install release versions of the Octave Forge packages, it is often easier to install them via Fink rather than through "pkg install", because any required modifications (library paths, using different compilers than default, etc.) are taken care of automatically.
--
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]