Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5642 - [x86_64] missing -fPIC in some static libraries iptable

Attached to Project: Arch Linux
Opened by Olivier Médoc (oliv) - Sunday, 22 October 2006, 09:55 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To No-one
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I use Arch64 with an AMD64. With this architecture, it seems that every object (.o) need to be compiled with the -fPIC option.

When I wan't to build shared libraries with "not -fPIC object files" or "not -fPIC .a libraries", I get an error.

In this case with iptables, I can't build nepenthes with the current iptables package because of this issue : the library libipq.a isn't built with -fPIC. I checked the build process, the other parts of iptables are built with -fPIC

I fixed it in the PKGBUILD using
sed '3 iCC+= -fPIC' -i libiptc/Makefile || return 1
sed '3 iCC+= -fPIC' -i libipq/Makefile || return 1

I already had this issue with some packages in AUR. It seems to be a global issue with x86_64 architecture, when Makefiles are missing to build some objects with CFLAGS.

What is -fPIC exacly doing ? Why is it needed ?
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 18 December 2006, 13:15 GMT
Reason for closing:  Deferred
Comment by Olivier Médoc (oliv) - Monday, 23 October 2006, 14:09 GMT
I have the same issue with libnet. in extra/lib/libnet/PKGBUILD I added
sed "s/CC = gcc/CC = gcc -fPIC/" -i Makefile || return 1
sed "s/CC = gcc/CC = gcc -fPIC/" -i sample/Makefile || return 1
sed "s/CC = gcc/CC = gcc -fPIC/" -i src/Makefile || return 1

Yet I can link libnet in my programs.
Comment by Andreas Radke (AndyRTR) - Monday, 18 December 2006, 13:14 GMT
about fPIC issues: http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3

i cannot find fPIC hacks in other major x86_64 bit distros. so if the problem still exists please open new tasks for each pkg you think needs to be fixed. mark it with [arch64] or x86_64 in the topic. also report what depending pkg you try to build.

Loading...