bugGNU Octave - Bugs: bug #57938, [octave forge] (video) error:...

 
 

bug #57938: [octave forge] (video) error: declaration of 'panic' has a different language linkage

Submitted by:  Marius Schamschula <mschamschula>
Submitted on:  Mon 02 Mar 2020 01:12:54 PM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  other Operating System:  Mac OS

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 23 Dec 2020 03:57:13 PM UTC, comment #3: 

Indeed! With a little experimentation, I needed two more mach headers, I got it to work.

(file #50556)

Marius Schamschula <mschamschula>
Wed 23 Dec 2020 09:09:39 AM UTC, comment #2: 

It might be best to try and avoid including the header with the conflicting declaration.

Could you try compiling the "video" package with the attached patch?
I don't have a Mac and can't test. So it is very well possible that more headers need to be included for other used functions.

(file #50555)

Markus M├╝tzel <mmuetzel>
Project Member
Sun 20 Dec 2020 09:15:32 PM UTC, comment #1: 

MacPorts just updated Octave to version 6.1.0, andI'm in the process of updating the packages. This problem has not gone away.

However, I see that there was a similar issue with Octave itself in 2015:
https://octave.1599824.n4.nabble.com/Default-does-not-compile-anymore-on-Mac-OS-td4674114.html

I've tried setting the problematic #includes in cap_ffmpeg_impl_ov.hpp to extern "C", but to no avail.

Can someone please help me to resolve this?

Marius Schamschula <mschamschula>
Mon 02 Mar 2020 01:12:54 PM UTC, original submission:  

While building the octave video package 2.0.0 under MacPorts (Mojave), I get the following error:

/usr/bin/clang++ -c -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fPIC -I/opt/local/include/octave-5.2.0/octave/.. -I/opt/local/include/octave-5.2.0/octave -I/opt/local/include  -D_THREAD_SAFE -pthread -pipe -Os -std=c++11 -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64  -Wall -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk  -I/opt/local/include  -DPACKAGE_NAME="Octave-Forge video package" -DPACKAGE_TARNAME="octave-forge-video-package" -DPACKAGE_VERSION="2.0.0" -DPACKAGE_STRING="Octave-Forge video package 2.0.0" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" cap_ffmpeg_wrapper.cc -o /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_math_octave-video/octave-video/work/.tmp/oct-uhPe64.o
In file included from cap_ffmpeg_wrapper.cc:18:
In file included from ./cap_ffmpeg_impl_ov.hpp:139:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/mach/mach.h:86:33: error: declaration of 'panic' has a different language linkage
extern void                     panic(const char *, ...);
                                ^
/opt/local/include/octave-5.2.0/octave/error.h:134:6: note: previous declaration is here
void panic (const char *fmt, ...);
     ^
1 error generated.
make: *** [cap_ffmpeg_wrapper.oct] Error 1

pkg: error running `make' for the video package.

Full log attached.

Marius Schamschula <mschamschula>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #50556:  patch-src-cap_ffmpeg_impl_ov.hpp.diff added by mschamschula (854B - application/octet-stream)
file #48532:  octave-video-main.log added by mschamschula (959KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Updated the item)
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by mschamschula (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-12-23 mschamschula Attached File- => Added patch-src-cap_ffmpeg_impl_ov.hpp.diff, #50556
    2020-12-23 mmuetzel Attached File- => Added bug57938_panic_MacOS.patch, #50555
        Release5.2.0 => other
    2020-03-02 siko1056 Summaryerror: declaration of 'panic' has a different language linkage => [octave forge] (video) error: declaration of 'panic' has a different language linkage
    2020-03-02 mschamschula Attached File- => Added octave-video-main.log, #48532

    Back to the top


    Powered by Savane 3.7