FS#30010 - [qhull] recompile with -fPIC

Attached to Project: Arch Linux
Opened by Sébastien (sebcactus) - Friday, 25 May 2012, 09:27 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 17 November 2012, 13:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Ronald van Haren (pressh)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
-fPIC flag is missing while building the libraries
This prevents other software to build with this library
A quick fix was to add -DCMAKE_CXX_FLAGS=-fPIC -CMAKE_C_FLAGS=-fPIC (see PKGBUILD)
Also the md5sum is wrong.

Additional info:
* package version(s): qhull 2012.1-1

* config and/or log files etc.
This is the error message I get (can't provide the source code)
/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libqhullstatic.a(global.c.o): relocation R_X86_64_32S against `qh_qh' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libqhullstatic.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status

Steps to reproduce:
Sorry I am not allowed to share the original code.
   PKGBUILD (1.1 KiB)
This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 17 November 2012, 13:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  qhull-2012.1-2
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 25 August 2012, 20:15 GMT
With a title will look much better!
Comment by Allan McRae (Allan) - Friday, 16 November 2012, 12:48 GMT
Only do this for x86_64.

Loading...