Giter VIP home page Giter VIP logo

Comments (7)

tarcieri avatar tarcieri commented on June 12, 2024 1

Fixed in #132

https://circleci.com/gh/tendermint/kms/362

from crates.

tarcieri avatar tarcieri commented on June 12, 2024

Grabbed this from the CircleCI container:

[developer@340a0b0b642b project]$ /usr/bin/ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
[developer@340a0b0b642b project]$ echo $?
0

from crates.

tarcieri avatar tarcieri commented on June 12, 2024

Looks like the problem is the string glibc does not appear anywhere in the output:

https://github.com/iqlusioninc/crates/blob/master/zeroize/build.rs#L89

from crates.

amrali avatar amrali commented on June 12, 2024

I just saw #134. I think a better way for library detection is needed, depending on the output of --version to determine library type is ought to be problematic. Though unlikely for some time in the future, maybe if this becomes an issue again we can try to do something proper there.

from crates.

tarcieri avatar tarcieri commented on June 12, 2024

Offhand I'm not sure of a better way. I guess we can see if other edge cases come up.

Hopefully eventually either support for older versions of glibc/musl can be dropped, or Rust will stabilize the LLVM intrinsics needed to securely zero memory so this crate doesn't even need to exist.

from crates.

tarcieri avatar tarcieri commented on June 12, 2024

Well, one thing did just come to mind... information about the libc a crate is being linked against is available at compile time via the target_env attribute, which on Linux is either gnu (for glibc) or musl, so that could at least eliminate build.rs guesswork there.

You're right ldd is still a bad way of detecting the version as it will probably break cross-compilation which, as it were, is the way I was hoping to produce static musl builds.

from crates.

amrali avatar amrali commented on June 12, 2024

I was thinking something that could extract version information at compile time, something similar to M4 scripts testing version requirements of libraries. If target_env has it, then that's work already done for us.

from crates.

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.