octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #61786] [octave forge] (image) many image pack


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #61786] [octave forge] (image) many image package test failures under Octave 7
Date: Mon, 10 Jan 2022 16:54:09 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

Follow-up Comment #5, bug #61786 (project octave):

The image package cannot even be installed for me. I get the following errors
and warnings on "pkg install -forge image":

Namespace collision error with Octave core, which prevents the package from
building:

In file included from strel.cc:27:
In file included from
/usr/local/include/octave-8.0.0/octave/../octave/parse.h:41:
In file included from /usr/local/include/octave-8.0.0/octave/pt-misc.h:32:
In file included from /usr/local/include/octave-8.0.0/octave/pt-decl.h:36:
In file included from /usr/local/include/octave-8.0.0/octave/pt-cmd.h:35:
In file included from /usr/local/include/octave-8.0.0/octave/pt-bp.h:35:
In file included from
/usr/local/include/octave-8.0.0/octave/interpreter.h:47:
/usr/local/include/octave-8.0.0/octave/graphics.h:8214:21: error: redefinition
of 'image' as different kind of
      symbol
class OCTINTERP_API image : public base_graphics_object
                    ^
./strel.h:50:13: note: previous definition is here
  namespace image
            ^


Multiple deprecated warnings from the Octave API about Range and fortran_vec:

hough_line.cc:50:59: warning: 'Range' is deprecated
[-Wdeprecated-declarations]
  const ColumnVector thetas = (DEF_THETA) ? ColumnVector (Range (-M_PI/2.0,
M_PI/2.0, M_PI/180.0).matrix_value ()) 
                                                          ^
/usr/local/include/octave-8.0.0/octave/Range.h:427:3: note: 'Range' has been
explicitly marked deprecated here
  OCTAVE_DEPRECATED (7, "use the 'octave::range<double>' class instead")
  ^
/usr/local/include/octave-8.0.0/octave/oct-conf-post-public.h:50:57: note:
expanded from macro 'OCTAVE_DEPRECATED'
#    define OCTAVE_DEPRECATED(ver, msg) __attribute__ ((__deprecated__))


80 C++ warnings like these which can be fixed with "std::abs":

__custom_gaussian_smoothing__.cc:58:43: warning: using integer absolute value
function 'abs' when argument is of
      floating point type [-Wabsolute-value]
              const octave_idx_type rur = abs (k*(ct*sqrtv2 - st*sqrtv1)); //
'rur' means 'row-upper-right'
                                         ^
__custom_gaussian_smoothing__.cc:58:43: note: use function 'std::abs' instead
              const octave_idx_type rur = abs (k*(ct*sqrtv2 - st*sqrtv1)); //
'rur' means 'row-upper-right'
                                          ^~~
                                          std::abs



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61786>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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