Coder Social home page Coder Social logo

htole64 / le64toh on old glibc about pixz HOT 8 CLOSED

vasi avatar vasi commented on July 20, 2024
htole64 / le64toh on old glibc

from pixz.

Comments (8)

wookietreiber avatar wookietreiber commented on July 20, 2024

Do you know which glibc version introduced both htole64 and le64toh? We should apply these defines only for glibc version lesser than the one introducing these.

from pixz.

wookietreiber avatar wookietreiber commented on July 20, 2024

Apparently, they are introduced in glibc 2.9. I think, the best way to address this is to check for both of these functions in configure and if they do not exist, define them ourselves.

from pixz.

cicku avatar cicku commented on July 20, 2024

Being as a person dealing with RHEL for several years, I'd say RHEL6 ships GLIBC 2.12.

from pixz.

andreasstieger avatar andreasstieger commented on July 20, 2024

As a correction to the original report, this affects CentOS 5 and RHEL 5 which have glibc-2.5, not 6. So yes this is a portability issue for glibc < 2.9.

from pixz.

wookietreiber avatar wookietreiber commented on July 20, 2024

@andreasstieger would you please test this patch on both RHEL 5 and RHEL 6 (alternative to the patch, you can checkout the endian-conversion-checks branch on my fork)?

from pixz.

andreasstieger avatar andreasstieger commented on July 20, 2024

👌 wookietreiber@5d831e6 works as intended on all affected targets, does not break others and would fix this issue.

from pixz.

wookietreiber avatar wookietreiber commented on July 20, 2024

Great, @andreasstieger thanks for reporting back. I am going to merge and cut a new release.

from pixz.

wookietreiber avatar wookietreiber commented on July 20, 2024

Done, new release is up.

from pixz.

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.