dasher-project / dasher

Dasher
http://www.inference.phy.cam.ac.uk/dasher/
GNU General Public License v2.0
158 stars 45 forks source link

Compilation error when running `make` #180

Open Bietola opened 3 years ago

Bietola commented 3 years ago

Hello all,

I can't seem to compile dasher anymore using ./configure && make && sudo make install (as suggested by the INSTALL file). configure runs just fine, but I get this when running make:

[...]
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/at-spi-2.0/atspi/atspi.h:27,
                 from dasher_editor_external_atspi.cpp:5:
/usr/include/c++/10.2.0/type_traits:56:3: error: template with C linkage
   56 |   template<typename _Tp, _Tp __v>
      |   ^~~~~~~~
dasher_editor_external_atspi.cpp:4:1: note: ‘extern "C"’ linkage started here
    4 | extern "C" {
      | ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/at-spi-2.0/atspi/atspi.h:27,
                 from dasher_editor_external_atspi.cpp:5:
[...]

I'm including only the parts of the error which I think are relevant, since the error itself is extremely long (about 5000 lines). I've already tried installing different versions of the glib2 package (I'm using Manjaro), but nothing changed. Any help will be appreciated.

prlw1 commented 3 years ago

On Sat, Apr 24, 2021 at 06:10:50AM -0700, Bietola wrote:

Hello all,

I can't seem to compile dasher anymore using ./configure && make && sudo make install (as suggested by the INSTALL file). configure runs just fine, but I get this when running make:

[...]
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/at-spi-2.0/atspi/atspi.h:27,
                 from dasher_editor_external_atspi.cpp:5:
/usr/include/c++/10.2.0/type_traits:56:3: error: template with C linkage
   56 |   template<typename _Tp, _Tp __v>
      |   ^~~~~~~~
dasher_editor_external_atspi.cpp:4:1: note: ?extern "C"? linkage started here
    4 | extern "C" {
      | ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/at-spi-2.0/atspi/atspi.h:27,
                 from dasher_editor_external_atspi.cpp:5:
[...]

I'm including only the parts of the error which I think are relevant, since the error itself is extremely long (about 5000 lines). I've already tried installing different versions of the glib2 package (I'm using Manjaro), but nothing changed. Any help will be appreciated.

Have a look at Yanko Kaneti's patch:

https://gitlab.gnome.org/GNOME/dasher/-/merge_requests/3

Cheers,

Patrick

Bietola commented 3 years ago

Thanks a lot it worked!