"skipping incompatible /usr/lib/libc.so when searching for -lc" issue while make tls package in Linux

pankmish picture pankmish · Oct 10, 2014 · Viewed 7.7k times · Source

I am facing below issue while doing make tls1.6.

/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
: libtls1.6.so
(echo 'package ifneeded tls 1.6 \
        "[list source [file join $dir tls.tcl]] ; \
         [list tls::initlib $dir libtls1.6.so]"'\
    ) > pkgIndex.tcl

What could be the possible resolutions ?

Answer

deimus picture deimus · Oct 10, 2014

Go over the following steps.

  1. Check against what architecture you are compiling tls with make
  2. Reconfigure the tls package with the same architecture as you have for libc.so lib.

You can determine target architecture of binary file libc.so with file linux command like this :

file /usr/lib/libc.so