Git Product home page Git Product logo

Comments (3)

michalvasko avatar michalvasko commented on June 24, 2024

So I have tested it and reproduced, the cause is timgm() returning -1 (without setting errno for some reason). And based on what I read about this, it seems it is a "feature" of 32b systems so I am not sure what you expect from libyang to make it work.

from sysrepo.

jktjkt avatar jktjkt commented on June 24, 2024

In case you can recompile everything (and I mean it, everything, since this is obviously a huge ABI change), and you're already on kernel 5.1+ and glibc 2.34+, then you can set -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 and you're good to go. Beware, though, that you might face some nasty surprises if you have, say, a time_t in some binary on-disk file. If you're using a system such as Buildroot, there's a config option for this already, BR2_TIME_BITS_64.

TL;DR: this fix IMHO belongs to the "system library", not into libyang.

from sysrepo.

awesomenode avatar awesomenode commented on June 24, 2024

Thank you for the answers!

from sysrepo.

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.