FS#20009 - [libtar] the library is not compiled with -fPIC

Attached to Project: Community Packages
Opened by Antony Martin (Yno) - Monday, 28 June 2010, 20:44 GMT
Last edited by Chris Brannon (cmb) - Saturday, 03 July 2010, 18:09 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The static library of libtar is not compiled with relocation support on x86_64 (-fPIC). Thus it is not possible to "link" it into a shared library.

Additional info:
* version 1.2.11-1

Steps to reproduce:
Try to create a shared library which uses and links libtar:
$ gcc -shared foo.o -ltar

For instance:
$ echo "void foo (void) { tar_open (0, 0, 0, 0, 0, 0); }" > foo.c
$ gcc -c foo.c -o foo.o -fPIC
$ gcc -shared foo.o -ltar -o foo.so
This task depends upon

Closed by  Chris Brannon (cmb)
Saturday, 03 July 2010, 18:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed.
Thanks to Bluewind on IRC for the patch.
Comment by Eric Belanger (Snowman) - Tuesday, 29 June 2010, 02:48 GMT
Jaroslav: libtar is orphaned but as only osmo needs it, you might want to consider adopting it as well.

Loading...