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

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

[Octave-bug-tracker] [bug #65497] fits 1.0.7: type cast issue


From: Marius Schamschula
Subject: [Octave-bug-tracker] [bug #65497] fits 1.0.7: type cast issue
Date: Wed, 20 Mar 2024 16:46:50 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?65497>

                 Summary: fits 1.0.7: type cast issue
                   Group: GNU Octave
               Submitter: mschamschula
               Submitted: Wed 20 Mar 2024 08:46:50 PM UTC
                Category: Octave Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 9.1.0
         Discussion Lock: Any
        Operating System: Mac OS
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 20 Mar 2024 08:46:50 PM UTC By: Marius Schamschula <mschamschula>
While rebuilding fits 1.0.7 against octave 9.1.0 (under MacPorts) I get the
following error:

/usr/bin/clang++ -c -I/opt/local/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -fPIC
-I/opt/local/include/octave-9.1.0/octave/..
-I/opt/local/include/octave-9.1.0/octave -I/opt/local/include  -pthread -pipe
-Os -std=c++11 -stdlib=libc++
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 
-Wall   save_fits_image.cc -o
/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-fits/octave-fits/work/.tmp/oct-eam4YP.o
save_fits_image.cc:132:41: error: 'this' argument to member function
'fortran_vec' has type 'const NDArray', but function is not marked const
  double * datap = const_cast<double*>( image.fortran_vec() );
                                        ^~~~~
/opt/local/include/octave-9.1.0/octave/Array.h:666:20: note: 'fortran_vec'
declared here
  OCTARRAY_API T * fortran_vec ();
                   ^
1 error generated.









    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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