https://bugs.kde.org/show_bug.cgi?id=441055

            Bug ID: 441055
           Summary: kdiff3 fails to build with glibc 2.34
           Product: kdiff3
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: reeves...@gmail.com
          Reporter: rikmi...@kde.org
  Target Milestone: ---

SUMMARY

kdiff3 fails to build with glibc 2.34

Build: https://launchpad.net/ubuntu/+source/kdiff3/1.9.2-2/+build/21986068

In file included from /<<PKGBUILDDIR>>/src/LineRef.h:10,
                 from /<<PKGBUILDDIR>>/src/gnudiff_diff.h:17,
                 from /<<PKGBUILDDIR>>/src/gnudiff_io.cpp:14:
/<<PKGBUILDDIR>>/src/LineRef.h: In constructor ‘LineRef::LineRef(qint64)’:
/<<PKGBUILDDIR>>/src/TypeUtils.h:15:26: error: ‘numeric_limits’ is not a member
of ‘std’
   15 | #define TYPE_MAX(x) std::numeric_limits<x>::max()
      |                          ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/LineRef.h:28:17: note: in expansion of macro ‘TYPE_MAX’
   28 |         if(i <= TYPE_MAX(LineType))
      |                 ^~~~~~~~
/<<PKGBUILDDIR>>/src/TypeUtils.h:15:42: error: expected primary-expression
before ‘>’ token
   15 | #define TYPE_MAX(x) std::numeric_limits<x>::max()
      |                                          ^
/<<PKGBUILDDIR>>/src/LineRef.h:28:17: note: in expansion of macro ‘TYPE_MAX’
   28 |         if(i <= TYPE_MAX(LineType))
      |                 ^~~~~~~~
/<<PKGBUILDDIR>>/src/TypeUtils.h:15:45: error: ‘::max’ has not been declared;
did you mean ‘std::max’?
   15 | #define TYPE_MAX(x) std::numeric_limits<x>::max()
      |                                             ^~~
/<<PKGBUILDDIR>>/src/LineRef.h:28:17: note: in expansion of macro ‘TYPE_MAX’
   28 |         if(i <= TYPE_MAX(LineType))
      |                 ^~~~~~~~
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:142,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtGlobal:1,
                 from /<<PKGBUILDDIR>>/src/TypeUtils.h:13,
                 from /<<PKGBUILDDIR>>/src/LineRef.h:10,
                 from /<<PKGBUILDDIR>>/src/gnudiff_diff.h:17,
                 from /<<PKGBUILDDIR>>/src/gnudiff_io.cpp:14:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to