Giter Club home page Giter Club logo

Comments (5)

moradology avatar moradology commented on July 22, 2024

My container's final words:

Making all in src
make[1]: Entering directory '/root/planet-dump-ng-1.1.3/src'
  CXX      changeset_filter.o
  CXX      changeset_map.o
  CXX      copy_elements.o
copy_elements.cpp: In instantiation of 'bool {anonymous}::is_redacted(const T&) [with T = node]':
copy_elements.cpp:204:23:   required from 'void {anonymous}::extract_element({anonymous}::thread_writer<T>&) [with T = node]'
copy_elements.cpp:318:23:   required from 'void reader_thread(int, boost::exception_ptr, boost::shared_ptr<{anonymous}::control_block<T> >) [with T = node]'
copy_elements.cpp:350:66:   required from 'void run_threads(std::vector<boost::shared_ptr<output_writer> >) [with T = node]'
copy_elements.cpp:385:79:   required from here
copy_elements.cpp:173:48: error: cannot convert 'const boost::optional<long int>' to 'bool' in return
 inline bool is_redacted(const T &t) { return t.redaction_id; }
                                                ^~~~~~~~~~~~
copy_elements.cpp: In instantiation of 'bool {anonymous}::is_redacted(const T&) [with T = way]':
copy_elements.cpp:204:23:   required from 'void {anonymous}::extract_element({anonymous}::thread_writer<T>&) [with T = way]'
copy_elements.cpp:318:23:   required from 'void reader_thread(int, boost::exception_ptr, boost::shared_ptr<{anonymous}::control_block<T> >) [with T = way]'
copy_elements.cpp:350:66:   required from 'void run_threads(std::vector<boost::shared_ptr<output_writer> >) [with T = way]'
copy_elements.cpp:386:78:   required from here
copy_elements.cpp:173:48: error: cannot convert 'const boost::optional<long int>' to 'bool' in return
copy_elements.cpp: In instantiation of 'bool {anonymous}::is_redacted(const T&) [with T = relation]':
copy_elements.cpp:204:23:   required from 'void {anonymous}::extract_element({anonymous}::thread_writer<T>&) [with T = relation]'
copy_elements.cpp:318:23:   required from 'void reader_thread(int, boost::exception_ptr, boost::shared_ptr<{anonymous}::control_block<T> >) [with T = relation]'
copy_elements.cpp:350:66:   required from 'void run_threads(std::vector<boost::shared_ptr<output_writer> >) [with T = relation]'
copy_elements.cpp:387:83:   required from here
copy_elements.cpp:173:48: error: cannot convert 'const boost::optional<long int>' to 'bool' in return
Makefile:422: recipe for target 'copy_elements.o' failed
make[1]: *** [copy_elements.o] Error 1
make[1]: Leaving directory '/root/planet-dump-ng-1.1.3/src'
Makefile:603: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

from planet-dump-ng.

zerebubuth avatar zerebubuth commented on July 22, 2024

I think this is caused by a more recent compiler dropping support for implicit conversions to bool in the return statement.

I've pushed a v1.1.5 up, which is just #17 and #18, plus the change to explicitly cast to bool. Apologies for not testing it; my attempts to test have failed because docker just hangs and virtualbox now crashes my machine (they both worked fine before Christmas!). 😭

Please let me know whether you're able to build the new release.

from planet-dump-ng.

zerebubuth avatar zerebubuth commented on July 22, 2024

NB: If you really need v1.1.4 or previous, it might be worth trying to build with an Ubuntu 16.04 image and compiler.

from planet-dump-ng.

moradology avatar moradology commented on July 22, 2024

I believe 1.1.5 solves the issue entirely. Thanks for cutting such a quick release!

from planet-dump-ng.

zerebubuth avatar zerebubuth commented on July 22, 2024

Thanks very much for pointing out the problem!

from planet-dump-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.