[Bug 1221154] Re: Please build with -fPIC

Julian Andres Klode julian.klode at canonical.com
Fri Apr 26 16:02:28 UTC 2019


Since you're building a shared library, you should link the shared
library, not the static one - that one is for static linking, and hence,
like most static libraries, not build with -fPIC

** Changed in: slang2 (Ubuntu)
       Status: New => Opinion

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to slang2 in Ubuntu.
https://bugs.launchpad.net/bugs/1221154

Title:
  Please build with -fPIC

Status in slang2 package in Ubuntu:
  Opinion

Bug description:
  Impossible to link against static.

  cc -shared -fpic -lslang -o ../priv/eslang_drv.so slang_drv.o /usr/lib/x86_64-linux-gnu/libslang.a
  /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libslang.a(sltermin.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
  /usr/lib/x86_64-linux-gnu/libslang.a: could not read symbols: Bad value

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/slang2/+bug/1221154/+subscriptions



More information about the foundations-bugs mailing list