libjsonrpccpp-common.a is not compiled with -fPIC flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libjson-rpc-cpp (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have C++11 application that uses libjsonrpccpp. The application was working fine with previous library packages.
Packages are installed using apt-get:
ii libjsonrpccpp-
ii libjsonrpccpp-
ii libjsonrpccpp-dev 0.6.0-2build1 amd64 development files for JSON-RPC C++ framework
ii libjsonrpccpp-
ii libjsonrpccpp-stub0 0.6.0-2build1 amd64 library for stub generation of libjsonrpccpp based applications
ii libjsonrpccpp-tools 0.6.0-2build1 amd64 stub generator for libjsonrpccpp based applications
Currently, during compilation (for both, clang and gcc) I`m getting the following error.
clang:
/usr/bin/ld: /usr/lib/
/usr/lib/
gcc:
/usr/bin/ld: /usr/lib/
/usr/lib/
collect2: error: ld returned 1 exit status
GCC ver:
gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413
Copyright (C) 2015 Free Software Foundation, Inc.
CLang Ver:
clang version 3.8.0-2ubuntu3 (tags/RELEASE_
Target: x86_64-pc-linux-gnu
Ubuntu:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
affects: | pigz (Ubuntu) → libjson-rpc-cpp (Ubuntu) |
You are trying to link against the static versions of the library, which are not -fPIC compiled by design.