Code Monkey home page Code Monkey logo

Comments (7)

enh-google avatar enh-google commented on June 28, 2024 1

i think if you add xcrypt to this line in scripts/make.sh, it should work for you?

  for i in util crypt m resolv selinux smack attr crypto z log iconv tls ssl

(i don't think we can remove crypt without breaking older versions of glibc, and i don't know whether this is something we could check in, because i think there will be systems with both, and you don't want both? though maybe there aren't realistic systems that don't have xcrypt, so replacing crypt with xcrypt would actually be fine in practice? my [vague] understanding of what glibc has done here. i'm assuming musl already had this just in libc.so?)

from toybox.

landley avatar landley commented on June 28, 2024 1

My plan is to have my own crypt() in lib/ using the existing internal md5sum and sha1sum code and adding other has functions as needed. I'm slowly shoveling out this area, commit 20eb458 last night was a step in that direction. Won't be this coming release (which is already 2 days overdue), but I'm aiming at the release after that.

from toybox.

enh-google avatar enh-google commented on June 28, 2024

i think this is probably a dupe of #450 --- i'm guessing you have a glibc new enough to have removed crypt()? ldd --version will tell you your glibc version if you're not sure.

from toybox.

newtime94 avatar newtime94 commented on June 28, 2024

ldd (GNU libc) 2.38 yup your on the money ok let me read #450 then I will close this thanks

from toybox.

newtime94 avatar newtime94 commented on June 28, 2024

"if you build against glibc 2.38 or later, dont declare crypt but rather include crypt.h and link against libxcrypt with -lcrypt."

I'm not clear on how to do this? I know have libxcrypt installed going through toybox docs now

from toybox.

newtime94 avatar newtime94 commented on June 28, 2024

OK so i updated the script to for i in util crypt m resolv selinux smack attr crypto z log iconv tls ssl xcrypt
same build error then I tried for i in util xcrypt m resolv selinux smack attr crypto z log iconv tls ssl
still the same error . I used sudo find / -name "libcrypt*" the output is below

/usr/include/libcryptsetup.h
/usr/lib/pkgconfig/libcryptsetup.pc
/usr/lib/pkgconfig/libcrypto.pc
/usr/lib/pkgconfig/libcrypt.pc
/usr/lib/libcryptsetup.so
/usr/lib/libcryptsetup.so.12
/usr/lib/libcryptsetup.so.12.9.0
/usr/lib/cryptsetup/libcryptsetup-token-systemd-fido2.so
/usr/lib/cryptsetup/libcryptsetup-token-systemd-pkcs11.so
/usr/lib/cryptsetup/libcryptsetup-token-systemd-tpm2.so
/usr/lib/libcrypto.so
/usr/lib/libcrypto.so.3
/usr/lib/musl/lib/libcrypt.a
/usr/lib/libcrypt.so
/usr/lib/libcrypt.so.2
/usr/lib/libcrypt.so.2.0.0

from toybox.

CameronNemo avatar CameronNemo commented on June 28, 2024

/usr/lib/musl/lib/libcrypt.a

Hmm... this is archlinux? Maybe you can try to build against musl if you have it / know how to (I don't, on Arch Linux). Musl doesn't suffer from #450.

from toybox.

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.