nsz32 / docklike-plugin

A Dock-like Taskbar Plugin for XFCE
GNU General Public License v3.0
334 stars 44 forks source link

Compiling on Fedora 34 fails #91

Closed lig closed 3 years ago

lig commented 3 years ago

Steps to reproduce:

Multiple errors of this kind:

/usr/include/c++/11/type_traits:2900:3: error: template with C linkage
 2900 |   template<typename _Fn, typename... _Args>
      |   ^~~~~~~~
In file included from Dock.cpp:7:
Dock.hpp:10:1: note: ‘extern "C"’ linkage started here
   10 | extern "C"
      | ^~~~~~~~~~

Log make.log.gz

davekeogh commented 3 years ago

Thank you for the bug report. I'll try to investigate this on the weekend. I don't have time to set up a virtual machine to test this right now.

@nsz32 Any idea what's causing this? It looks like the compiler thinks a C++ template is being used within the extern "C" block? I'm not familiar with this stuff.

lig commented 3 years ago

@davekeogh I've tried to remove extern "C" as suggested in an answer on SO and that allowed me to build the thing. However, XFCE reported that it was constantly restarting. I haven't got more time to test it after that.

Btw, it took me around 10 minutes to set up Fedora 34 VM using Boxes on Fedora 33.

davekeogh commented 3 years ago

Hi. Try the version from my branch please. https://github.com/davekeogh/xfce4-docklike-plugin

I think this is because these spins are using gcc 11 which isn't in any other distros yet. There are few changes to default behaviour that must be causing this error.

lig commented 3 years ago

@davekeogh It works! Builds, installs, and works. Thanks a lot!

lig commented 3 years ago

@davekeogh I see PR closed but it looks like it wasn't merged. So, the main branch still doesn't compile.