Public bug reported:

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-client0               0.6.0-2build1                   amd64   
     library implementing json-rpc C++ clients
ii  libjsonrpccpp-common0               0.6.0-2build1                   amd64   
     common functionality for server and client library
ii  libjsonrpccpp-dev                   0.6.0-2build1                   amd64   
     development files for JSON-RPC C++ framework
ii  libjsonrpccpp-server0               0.6.0-2build1                   amd64   
     library implementing json-rpc C++ servers
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/x86_64-linux-gnu/libjsonrpccpp-common.a(specificationparser.cpp.o): 
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a 
shared object; recompile with -fPIC
/usr/lib/x86_64-linux-gnu/libjsonrpccpp-common.a: error adding symbols: Bad 
value

gcc:
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libjsonrpccpp-common.a(procedure.cpp.o): 
relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a 
shared object; recompile with -fPIC
/usr/lib/x86_64-linux-gnu/libjsonrpccpp-common.a: error adding symbols: Bad 
value
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_380/final)
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)
     Importance: Undecided
         Status: New

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

Title:
  libjsonrpccpp-common.a is not compiled with -fPIC flag

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to