Maxwell Dreytser wrote:


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.

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

Your listing is weird.  I did:

make defconfig
make
scripts/kconfig/conf  --silentoldconfig Kconfig
  SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
SYSHDR arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_64.h
SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
  WRAP    arch/x86/include/generated/asm/clkdev.h
  WRAP    arch/x86/include/generated/asm/cputime.h
  WRAP    arch/x86/include/generated/asm/dma-contiguous.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/mm-arch-hooks.h
  CHK     include/generated/uapi/linux/version.h
  UPD     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  CC      kernel/bounds.s
  CHK     include/generated/bounds.h
  UPD     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  UPD     include/generated/timeconst.h
  CC      arch/x86/kernel/asm-offsets.s
  CHK     include/generated/asm-offsets.h
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/sortextable

As you can see, I have CALL scripts/checksyscalls.sh but no HOSTCC scripts/sign-file. I also have a lot of things you don't (unless you edited the listing for brevity.)

To see what is actually being called, use 'make V=1' If we can see what is actually being run, perhaps we can run down the problem.

  -- Bruce


--
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

Reply via email to