FS#28498 - [mupdf] build with -fPIC flag

Attached to Project: Community Packages
Opened by Moritz Lipp (mlq) - Saturday, 18 February 2012, 09:23 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Saturday, 10 March 2012, 11:34 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
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:

The mupdf package provides a static built library file called libmupdf.a - If you are trying to build a shared library and link against libmupdf.a it will fail since libmupdf.a has not been build with the -fPIC flag. This is supposable only an issue on x86_64 systems.

Steps to reproduce:
If you are trying to build e.g. the zathura-pdf-mupdf-git package from the AUR, it will fail with the following error:

/usr/bin/ld: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libmupdf.a(pdf_page.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib/libmupdf.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Saturday, 10 March 2012, 11:34 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 0.9-2.

Loading...