errors in installing package miscellaneous

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

errors in installing package miscellaneous

ishi soichi
Octave3.6.4

Installing a package called miscellaneous gives errors.

Can anyone tell me why?

soichi

octave>  pkg install -forge miscellaneous
In file included from cell2cell.cc:16:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/../octave/oct.h:36:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/defun-dld.h:30:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/defun-int.h:28:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/ov-builtin.h:28:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/ov-fcn.h:35:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/symtab.h:34:
/usr/local/Cellar/octave/3.6.4/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
  ^
/usr/local/Cellar/octave/3.6.4/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 /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/../octave/oct.h:36:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/defun-dld.h:30:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/defun-int.h:28:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/ov-builtin.h:28:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/ov-fcn.h:35:
In file included from /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/symtab.h:34:
/usr/local/Cellar/octave/3.6.4/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
  ^
/usr/local/Cellar/octave/3.6.4/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 /usr/local/Cellar/octave/3.6.4/share/octave/3.6.4/m/pkg/pkg.m near line 1385, column 9
error: called from:
error:   /usr/local/Cellar/octave/3.6.4/share/octave/3.6.4/m/pkg/pkg.m at line 827, column 5
error:   /usr/local/Cellar/octave/3.6.4/share/octave/3.6.4/m/pkg/pkg.m at line 383, column 9

_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: errors in installing package miscellaneous

marco atzeri-2
On 2/24/2013 2:22 AM, ishi soichi wrote:

> Octave3.6.4
>
> Installing a package called miscellaneous gives errors.
>
> Can anyone tell me why?
>
> soichi
>
> octave>  pkg install -forge miscellaneous
> In file included from cell2cell.cc:16:
> In file included from
> /usr/local/Cellar/octave/3.6.4/include/octave-3.6.4/octave/../octave/oct.h:36:

Hi Ishi,
1) your system ?

2) have you tried to download miscellaneous-1.2.0.tar.gz
and run "pkg -verbose install miscellaneous-1.2.0.tar.gz"  ?

I just built and package it for cygwin and I had no problem at all:

---------------------------------------------------------------------
pkg ('install', '-noauto', '-global', '-verbose',
'miscellaneous-1.2.0.tar.gz')
mkdir (/tmp/oct-28c1e0.1)
untar (miscellaneous-1.2.0.tar.gz, /tmp/oct-28c1e0.1)
make: Entering directory `/tmp/oct-28c1e0.1/miscellaneous/src'
mkoctfile -Wall text_waitbar.cc
mkoctfile -Wall partarray.cc
mkoctfile -Wall sample.cc
mkoctfile -Wall partint.cc
mkoctfile -Wall cell2cell.cc
make: Leaving directory `/tmp/oct-28c1e0.1/miscellaneous/src'
copyfile /tmp/oct-28c1e0.1/miscellaneous/src/cell2cell.oct
/tmp/oct-28c1e0.1/miscellaneous/src/partarray.oct
/tmp/oct-28c1e0.1/miscellaneous/src/partint.oct
/tmp/oct-28c1e0.1/miscellaneous/src/sample.oct
/tmp/oct-28c1e0.1/miscellaneous/src/text_waitbar.oct
/tmp/oct-28c1e0.1/miscellaneous/inst/i686-pc-cygwin-api-v48+
For information about changes from previous versions of the
miscellaneous package, run 'news ("miscellaneous")'.
-------------------------------------------------------------


Regards
Marco


_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: errors in installing package miscellaneous

Olaf Till-2
In reply to this post by ishi soichi
On Sun, Feb 24, 2013 at 10:22:18AM +0900, ishi soichi wrote:

> Octave3.6.4
>
> Installing a package called miscellaneous gives errors.
>
> Can anyone tell me why?
>
> soichi
>
> <snip>
>
> 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];
Not all compilers allow this. 'partarray' is now removed from
miscellaneous in SVN, but I think there is not yet a release of
miscellaneous without it. We should do this soon. According to the
Makefile, you could download the current release and just remove
src/partarray.cc before compiling and installing.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave

signature.asc (853 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: errors in installing package miscellaneous

ishi soichi
thanks. After downloading the package, I have removed the partarray.cc file. 
Then it was fine to install it!

soichi


2013/2/24 Olaf Till <[hidden email]>
On Sun, Feb 24, 2013 at 10:22:18AM +0900, ishi soichi wrote:
> Octave3.6.4
>
> Installing a package called miscellaneous gives errors.
>
> Can anyone tell me why?
>
> soichi
>
> <snip>
>
> 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];

Not all compilers allow this. 'partarray' is now removed from
miscellaneous in SVN, but I think there is not yet a release of
miscellaneous without it. We should do this soon. According to the
Makefile, you could download the current release and just remove
src/partarray.cc before compiling and installing.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJRKcMoAAoJEMDkvsXq/gWRzpwP/Rz7ALOlSLZrZrPpTCNtT4Im
1h4LmA7FCgCTmWb4CEPK302xa7OyyxPKTCUr6HSrD0TvHoAxhEmSbL35+Y8mZ9kL
DAJCr8QqQlXMjmU7q0Q8g55NR/pTSP7qqu5Y5ReXrYvVcqQ/bgUoC3s13sjy1ENL
eteOsSKXluRX4bKHd+hvo1QZBkVrYIk4X43v4igp7biMGyS/LGBwnSb/3DgKe6TH
JNrvl6jeSrIo03ZQJuu00EhPbkPugeEsxaz2wESEjwwkgIkWe1sTeSoJfqptR89z
ylTFY7NfW+YtoWnL63vCvLBjyeHOtIZbDNqSPCSSDbX0jBshvF6kVD95DA81eqG9
jk5j5l3va/FjG85CjkARLvHGE1zRjWuYyF4SRm8/Cz+hCAkSEE4MR/WoGO6kjpI5
l+z6lqRJ25h/RZTUB4xJnY8vnN62XcE6ztCjJ7m1Qwc3BNRy7ImPRnhN4y/es7GH
DXjv4ET2B3Vnp/Je7jkWunDl8JCYLLFGtc/2GzHISdyaJSPosSK95ZFZi6lrfkLS
7Z2ADYnLQVaSxSQ8SwXMQEsJy8ZK0QZmrcJ9EVQyBm0SmAYSAmZMV9D+pZ9HU0d+
IsneEXaMXtZYCysunKBQAkE65QtrJIuHgdinFF2YRcqCaFhMKiHg1OPmBq3pMhUr
DFV7EC8LirRtUXCA15bk
=1pUY
-----END PGP SIGNATURE-----



_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave