docker-glibc-builder icon indicating copy to clipboard operation
docker-glibc-builder copied to clipboard

symbol not found error

Open day0ops opened this issue 9 years ago • 1 comments

Any idea why Im seeing these errors ? This is happening with all dynamic libs.

bash-4.3# ldd /usr/glibc-compat/lib/libc-2.23.so
    /usr/glibc-compat/lib/ld-linux-x86-64.so.2 (0x559ec0a0d000)
    ld-linux-x86-64.so.2 => /usr/glibc-compat/lib/ld-linux-x86-64.so.2 (0x7ffb6f7a3000)
Error relocating /usr/glibc-compat/lib/libc-2.23.so: unsupported relocation type 37
Error relocating /usr/glibc-compat/lib/libc-2.23.so: unsupported relocation type 37
Error relocating /usr/glibc-compat/lib/libc-2.23.so: unsupported relocation type 37
Error relocating /usr/glibc-compat/lib/libc-2.23.so: unsupported relocation type 37
Error relocating /usr/glibc-compat/lib/libc-2.23.so: unsupported relocation type 37
Error relocating /usr/glibc-compat/lib/libc-2.23.so: unsupported relocation type 37
Error relocating /usr/glibc-compat/lib/libc-2.23.so: unsupported relocation type 37
Error relocating /usr/glibc-compat/lib/libc-2.23.so: unsupported relocation type 37
Error relocating /usr/glibc-compat/lib/libc-2.23.so: _res: symbol not found
Error relocating /usr/glibc-compat/lib/libc-2.23.so: __ctype32_tolower: symbol not found
Error relocating /usr/glibc-compat/lib/libc-2.23.so: __ctype_tolower: symbol not found
Error relocating /usr/glibc-compat/lib/libc-2.23.so: __ctype_toupper: symbol not found
Error relocating /usr/glibc-compat/lib/libc-2.23.so: __ctype_b: symbol not found
Error relocating /usr/glibc-compat/lib/libc-2.23.so: __ctype32_b: symbol not found
Error relocating /usr/glibc-compat/lib/libc-2.23.so: __ctype32_toupper: symbol not found

day0ops avatar Jun 29 '16 06:06 day0ops

ldd on PATH is the musl LDD version that cannot properly process the glibc libraries. You must call /usr/glibc-compat/bin/ldd program instead. But before you can use it, you must

  • have bash installed, else you will have an error '/usr/glibc-compat/bin/ldd: not found' apk add --no-cache bash
  • create a missing link, else you will have an error 'not a dynamic executable'
cd /usr/glibc-compat
ln -s lib lib64

Then you can execute the command:

/ # /usr/glibc-compat/bin/ldd /usr/glibc-compat/lib/libc-2.27.so
        /usr/glibc-compat/lib/ld-linux-x86-64.so.2 => /usr/glibc-compat/lib64/ld-linux-x86-64.so.2 (0x00007fbf0532e000)
        linux-vdso.so.1 (0x00007ffe081a9000)

xfournet avatar Jul 24 '18 14:07 xfournet