On 2016-07-18 17:17, Bruce Dubbs wrote:
> Maxwell Dreytser wrote: > > On 2016-07-18 04:33, Bruce Dubbs wrote: > > Maxwell Dreytser wrote: > > Hello all, > > While compiling the linux kernel using ALFS, I got a bunch of errors for > sign-file.c causing the build to fail. Complete 151-kernel build log: > http://paste.ubuntu.com/19860229/ [1] [1] [1] > /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): > In function `dlfcn_globallookup': > dso_dlfcn.c:(.text+0x11): undefined reference to `dlopen' > dso_dlfcn.c:(.text+0x24): undefined reference to `dlsym' > dso_dlfcn.c:(.text+0x2f): undefined reference to `dlclose' > > Those functions are in /lib/libdl-2.23.so. Do you have that file installed? > It should have been installed as a part of glibc. > Here is the output of a find command executed in chroot: > > root:/lib#$ find / -name "libdl*" > /lib/libdl.so.2 > /lib/libdl-2.23.so > /tools/lib/libdl.a > /tools/lib/libdl.so.2 > /tools/lib/libdl.so > /tools/lib/libdl-2.23.so > /usr/lib/libdl.a > /usr/lib/libdl.so > > As you can see, its there. OK, it's there, but it is not being found. I always build the kernel manually so I'm not sure what jhalfs does for this. Run ldconfig to ensure the library cache is up to date and try configuring/building the kernel manually. -- Bruce So... I tried both suggestions. Did all the command for building the kernel manually. Didn't work. Ran `ldconfig'. Tried `make' again. Same errors: root:/sources/linux-4.6.3#$ ldconfig root:/sources/linux-4.6.3#$ make CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh HOSTCC scripts/sign-file /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup': dso_dlfcn.c:(.text+0x11): undefined reference to `dlopen' dso_dlfcn.c:(.text+0x24): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x2f): undefined reference to `dlclose' /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func': dso_dlfcn.c:(.text+0x334): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x3db): undefined reference to `dlerror' /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var': dso_dlfcn.c:(.text+0x45b): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x514): undefined reference to `dlerror' /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': dso_dlfcn.c:(.text+0x578): undefined reference to `dlopen' dso_dlfcn.c:(.text+0x5db): undefined reference to `dlclose' dso_dlfcn.c:(.text+0x613): undefined reference to `dlerror' /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr': dso_dlfcn.c:(.text+0x69f): undefined reference to `dladdr' dso_dlfcn.c:(.text+0x701): undefined reference to `dlerror' /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../lib64/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': dso_dlfcn.c:(.text+0x752): undefined reference to `dlclose' collect2: error: ld returned 1 exit status make[1]: *** [scripts/Makefile.host:91: scripts/sign-file] Error 1 make: *** [Makefile:554: scripts] Error 2 Links: ------ [1] http://paste.ubuntu.com/19860229/
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
