pan fails to build with glib 2.68: error: template with C linkage
pan fails to build with glib 2.68
Here is how it fails
root@build-vm:/build/pan-0.146# make
make all-recursive
make[1]: Entering directory '/build/pan-0.146'
Making all in .
make[2]: Entering directory '/build/pan-0.146'
make[2]: Leaving directory '/build/pan-0.146'
Making all in uulib
make[2]: Entering directory '/build/pan-0.146/uulib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/build/pan-0.146/uulib'
Making all in pan
make[2]: Entering directory '/build/pan-0.146/pan'
Making all in general
make[3]: Entering directory '/build/pan-0.146/pan/general'
CXX file-util.o
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 file-util.cc:30:
/usr/include/c++/10.2.0/type_traits:56:3: error: template with C linkage
56 | template<typename _Tp, _Tp __v>
| ^~~~~~~~
file-util.cc:25:1: note: ‘extern "C"’ linkage started here
25 | 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 file-util.cc:30:
/usr/include/c++/10.2.0/type_traits:71:3: error: template with C linkage
Edited by Andre Klapper