Comments (7)
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.
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.
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.
ldd (GNU libc) 2.38 yup your on the money ok let me read #450 then I will close this thanks
from toybox.
"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.
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.
/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)
- Implement -execdir for safety and security HOT 2
- xargs has non-conforming behavior (failing to exit) when a child exits with exit status 255 HOT 3
- install does not handle the creation of "drwxr-s---" correctly HOT 6
- xsendfile error checking
- add a useful common ip HOT 3
- Request diff -I/--ignore-matching-lines
- [Documentation] Differences to busybox? HOT 3
- [Feature request] Could a static-option be added to the menu interface? HOT 5
- [Documentation / Question] Can toybox be combined with e. g. mruby? HOT 9
- building a rootfs without a kernel HOT 10
- Most scripts use /bin/bash, which not all systems have. Use /usr/bin/env instead? HOT 11
- [Q] Can `bash` compatibility in toysh be turned off during build time and during run time? HOT 2
- building 0.8.11 with ssl and tls is broken HOT 15
- When running shell scripts, the process coredump.
- POSIX deviation: test arithmetic operands must support decimal only HOT 12
- find -size <number-without-suffix> not POSIX HOT 7
- Can you include oksh? HOT 1
- On incremental builds' reproducibility HOT 1
- ASAN failures in various file processing commands HOT 1
- [Feature Suggestion] progress meter (pv subcommand) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toybox.