-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
building 0.8.11 with ssl and tls is broken #496
Comments
Does LDFLAGS="--static -Wl,--start-group" work? |
The problem I'm having is I can dynamically pull in libssl from my host, but when I try to statically link additional libraries my build goes all /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/libgcc_eh.a(unwind-dw2.o): in function You're saying you have a build environment in which statically linking libssl is possible in the first place, and I'm going... alpine maybe? I tried to use the android NDK to statically build android_defconfig but that went ./lib/lsm.h:7:10: fatal error: 'selinux/selinux.h' file not found NDK r25c doesn't have selinux.h. So I tried to set up a fedora kvm to test static libselinux building, but "sudo yum install glibc-static" there didn't give me static libraries for anything else (still only libselinux.so not .a)... This is part of the reason I try to minimize build dependencies. The accelerators are available for android to use them, and Elliott tests them, but they tend to tangle for me. |
yeah, libselinux (which is code you should only look at on a strong stomach: SELinuxProject/selinux#417) is not part of the NDK.
the rules around building these libraries are weird because of FIPS, but i can report "works for me!". |
Link order only matters for static libraries. I can maintain a magic link order (although I'd rather have the compiler just do --start-group and resolve it itself if that still works), but can't test it... |
yes i am using musl static toolchain ... will try the option |
TBO ... my build environment currently looks like this:
|
ok with the option the toybox binary builds fine. the only warning i get is:
|
i also tested the wget bugger, i was getting the build errors in the first place. a simple |
could it make sense to add a |
Does commit 1b6d64f work for you? |
test compiles ... ok good work ! |
In case this is not known yet, this apparently breaks the build on MacOS:
|
is that a missing feature of clang ? |
Apparently, the fix for this seems pretty simple though. Some Actually, since we are doing -l, I don't even think we need the |
@landley after reading your blog, please pardon me as i was not observing enough. i will keep using custom LDFLAGS for my buildsystem. please keep up the good work ! |
i see this command at the final linking stage:
and receive a lot of the following errors:
looks like the intended linking order becomes faulty because of the sort command in
make.sh:70
...at least for tls/ssl the library order should be:
The text was updated successfully, but these errors were encountered: