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

            Bug ID: 497034
           Summary: Compile error with Protobuf 29
    Classification: Frameworks and Libraries
           Product: KPublicTransport
           Version: 24.08.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: vkra...@kde.org
          Reporter: ctrlal...@gmail.com
  Target Milestone: ---

SUMMARY

Trying to compile KPublicTransport 24.08.3 using protobuf 29 causes the
following error:

[  9%] Building CXX object
src/osm/io/CMakeFiles/KOSM_pbfioplugin.dir/__/osmpbfparser.cpp.o
In file included from /usr/include/absl/log/internal/vlog_config.h:37,
                 from /usr/include/absl/log/absl_vlog_is_on.h:61,
                 from /usr/include/absl/log/internal/log_impl.h:18,
                 from /usr/include/absl/log/absl_log.h:36,
                 from /usr/include/google/protobuf/io/coded_stream.h:107,
                 from
/tmp/kde_build/applications/kpublictransport-24.08.3/cmake-build/src/osm/io/fileformat.pb.h:20,
                 from
/tmp/kde_build/applications/kpublictransport-24.08.3/src/osm/osmpbfparser.cpp:9:
/usr/include/google/protobuf/message_lite.h: In instantiation of ‘MessageLite*
google::protobuf::internal::MessageCreator::PlacementNew(const MessageLite*,
const MessageLite*, void*, google::protobuf::Arena*) const [with bool test_call
= false; MessageLite = google::protobuf::MessageLite]’:
/usr/include/google/protobuf/message_lite.h:415:40:   required from here
  415 |     return message_creator.PlacementNew(prototype, prototype, mem,
arena);
      |           
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/google/protobuf/message_lite.h:1202:7: error: ambiguous overload
for ‘operator<’ (operand types are ‘const
google::protobuf::internal::MessageCreator::Tag’ and ‘int’)
 1202 |   if (ABSL_PREDICT_FALSE(kMustBeFunc || as_tag < 0)) {
      |       ^~~~~~~~~~~~~~~~~~
/usr/include/google/protobuf/message_lite.h:1202:7: note: candidate:
‘operator<(int, int)’ (built-in)
In file included from
/tmp/kde_build/applications/kpublictransport-24.08.3/src/osm/osmpbfparser.h:11,
                 from
/tmp/kde_build/applications/kpublictransport-24.08.3/src/osm/osmpbfparser.cpp:7:
/tmp/kde_build/applications/kpublictransport-24.08.3/src/osm/datatypes.h:464:13:
note: candidate: ‘bool OSM::operator<(const Elem&, Id) [with Elem =
google::protobuf::internal::MessageCreator::Tag; Id = long int]’
  464 | inline bool operator<(const Elem &elem, Id id)
      |             ^~~~~~~~
make[2]: *** [src/osm/io/CMakeFiles/KOSM_pbfioplugin.dir/build.make:157:
src/osm/io/CMakeFiles/KOSM_pbfioplugin.dir/__/osmpbfparser.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:780:
src/osm/io/CMakeFiles/KOSM_pbfioplugin.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Slackware64-current
KDE Plasma Version: 6.2.4
KDE Frameworks Version:  6.8.0
Qt Version: 6.8.1

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

Reply via email to