libsuitesparse-dev and related packages should be compiled with -fPIC option

Bug #1333214 reported by Budo Zindovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
suitesparse (Ubuntu)
New
Undecided
Unassigned

Bug Description

libsuitesparse-dev and related packages should be compiled with -fPIC option. Using libraries installed with package manager, produces following issue when compiling:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libsuitesparseconfig.a(SuiteSparse_config.o): relocation R_X86_64_PC32 against undefined symbol `malloc@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC

The same issue was filed for Debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684116) two years ago but wasn't triaged.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libsuitesparse-dev 1:4.2.1-3ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-29.53-generic 3.13.11.2
Uname: Linux 3.13.0-29-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: GNOME
Date: Mon Jun 23 13:31:08 2014
InstallationDate: Installed on 2014-04-22 (62 days ago)
InstallationMedia: Ubuntu-GNOME 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
SourcePackage: suitesparse
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Budo Zindovic (bzindovic) wrote :
Revision history for this message
Budo Zindovic (bzindovic) wrote :

I've added a fix to official libraries and packaged it in my ppa. To install libraries with a fix of this bug for Ubuntu Trusty, do the following:

1. sudo add-apt-repository ppa:bzindovic/suitesparse-bugfix-1319687
2. sudo apt-get update
3. sudo apt-get upgrade

I hope it will be resolved in the official package.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.