Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pan pan
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 88
    • Issues 88
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • panpan
  • Issues
  • #128

Closed
Open
Created Apr 04, 2021 by Petr Zaytsev@entrop921

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 Apr 05, 2021 by Andre Klapper
Assignee
Assign to
Time tracking