← Back to team overview

desktop-packages team mailing list archive

[Bug 1319687] Re: SuiteSparse fails to link in shared library due to missing -fPIC in libsuitesparseconfig.a

 

Hi Budo,
I don't think your approach is the right one, working against the package maintainer's intent to provide both types of libraries, one with -fPIC and one without.
Check out my update to Debian bug #684116: the package already builds a libsuitesparseconfig_pic.a and simply misses to include it in the binary .deb file. I noticed when going through the patches that were already in the package before yours.

** Patch added: "include libsuitesparseconfig_pic.a in libsuitesparse-dev"
   https://bugs.launchpad.net/ubuntu/+source/suitesparse/+bug/1319687/+attachment/4322785/+files/fix-684116.patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to suitesparse in Ubuntu.
https://bugs.launchpad.net/bugs/1319687

Title:
  SuiteSparse fails to link in shared library due to missing -fPIC in
  libsuitesparseconfig.a

Status in suitesparse package in Ubuntu:
  Confirmed

Bug description:
  The config library is only available as a .a which is not compiled
  with -fPIC. Thus, linking into shared libraries fails on AMD64.

  Attaching a minimal program to trigger the bug.

  gcc -shared -fPIC -o test.so suitetest.cpp -lumfpack
  -lsuitesparseconfig

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