a2b344a34d
Since version 2.34 binutils enables debuginfod support by default if the debuginfod library is found to be available at build time. On Fedora 32, libdebuginfod may be present on the system, and the dependency chain of interest is then: libdebuginfod.so -> libcurl.so -> libk5crypto.so -> libcrypto.so If the Buildroot configuration ever needs to build host-openssl, which may happen when building the kernel to sign modules for example, this leads to an inconsistency between the system-provided libcrypto and ours, leading to missing symbols: $ make defconfig $ make host-binutils $ ./output/host/bin/i686-buildroot-linux-uclibc-objdump --help [--snip some help text--] $ make host-openssl $ ./output/host/bin/i686-buildroot-linux-uclibc-objdump --help ./output/host/bin/i686-buildroot-linux-uclibc-objdump: symbol lookup error: /lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b EVP_KDF_ctrl comes from libcrypto: $ nm -D /usr/lib64/libcrypto.so.1.1 |grep EVP_KDF_ctrl 0000000000176000 T EVP_KDF_ctrl $ nm -D output/host/lib/libcrypto.so.1.1 |grep EVP_KDF_ctrl [--empty--] So, if host-binutils tools, like objdump et al., are called after our host-openssl is built, then when run, the system-provided libk5crypto.so is used, but our libcrypto.so is used, because of the RPATH we set on our host tools. And boom. Note that there is also a latent similar issue if we were to build our host-libcurl too... Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> [yann.morin.1998@free.fr: rewrite commit log with a bit more info] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> |
||
---|---|---|
arch | ||
board | ||
boot | ||
configs | ||
docs | ||
fs | ||
linux | ||
package | ||
support | ||
system | ||
toolchain | ||
utils | ||
.defconfig | ||
.flake8 | ||
.gitignore | ||
.gitlab-ci.yml | ||
CHANGES | ||
Config.in | ||
Config.in.legacy | ||
COPYING | ||
DEVELOPERS | ||
Makefile | ||
Makefile.legacy | ||
README |
Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation. The documentation can be found in docs/manual. You can generate a text document with 'make manual-text' and read output/docs/manual/manual.text. Online documentation can be found at http://buildroot.org/docs.html To build and use the buildroot stuff, do the following: 1) run 'make menuconfig' 2) select the target architecture and the packages you wish to compile 3) run 'make' 4) wait while it compiles 5) find the kernel, bootloader, root filesystem, etc. in output/images You do not need to be root to build or run buildroot. Have fun! Buildroot comes with a basic configuration for a number of boards. Run 'make list-defconfigs' to view the list of provided configurations. Please feed suggestions, bug reports, insults, and bribes back to the buildroot mailing list: buildroot@buildroot.org You can also find us on #buildroot on Freenode IRC. If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches