First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 52813
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: SpanKY <vapier@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Joe Jezak <josejx@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ppc-libcap-emerge.txt Requested output text/plain Joe Jezak 2004-06-03 07:48 0000 44.25 KB Details
ppc-ppp-emerge.txt Same as above for net-dialup/ppp text/plain Joe Jezak 2004-06-03 07:54 0000 29.49 KB Details
libcap-pic-fixup.diff libcap-pic-fixup.diff patch solar 2004-06-03 09:20 0000 4.07 KB Details | Diff
abiword.err Another log text/plain Joe Jezak 2004-06-04 07:18 0000 980.89 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 52813 depends on: Show dependency tree
Bug 52813 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-06-02 13:43 0000
Compiling net-dialup/ppp, sys-libs/libcap causes an error with ld:
Error: The symbol <NAME OF SYMBOL> has a R_PPC_REL24 relocation, that means <lib_name> was compiled without -fPIC.

Compiling with -fPIC in my CFLAGS fixes the problem, but the ebuilds should be fixed.

net-dialup/ppp/ppp-2.4.2-r2.ebuild
5c5
< inherit eutils gnuconfig
---
> inherit eutils gnuconfig flag-o-matic
60a61
>       append-flags "-fPIC"

sys-libs/libcap/libcap-1.10-r4.ebuild
43a44
>       use ppc && append-flags -fPIC

This probably needs a line for ppc64 as well?

I have a Powerbook G4 Ti 500Mhz.
CFLAGS="-O2 -pipe -mpowerpc-gfxopt -mcpu=7400 -maltivec -mabi=altivec"
I would be happy to provide any other information required.

------- Comment #1 From solar 2004-06-02 18:01:31 0000 -------
libpcap is a library so it should append-flags -fPIC all the time if the build
does not provision for it. I know spanky and myself a while ago talked about
this problem in libcap a good some many months ago. We opted to take a debain
patch. which solves the problem. So... How the heck is this showing up for you
on a ppc.

So what you could do to help us out is. 
hop on your ppc and double check that fPIC is not one of it's CFLAGS.

emerge info >> ppc-libcap-emerge.txt
ACCEPT_KEYWORDS="ppc" emerge libcap >> ppc-libcap-emerge.txt
grep fPIC ppc-libcap-emerge.txt

If nothing here then we must fix. Please attach it none the less.

I don't think net-dialup@ is the right place for bug # this either.

------- Comment #2 From SpanKY 2004-06-03 06:27:05 0000 -------
i can get my ppc back from my gf in the next few days (the weekend for
sure) ... then i can track down this bug

------- Comment #3 From Joe Jezak 2004-06-03 07:48:55 0000 -------
Created an attachment (id=32589) [edit]
Requested output

Here's the output from the compile of sys-libs/libcap.	I added stderr to the
output to show the error.  It looks like libcap_wrap isn't being compiled with
-fPIC but needs to be.

------- Comment #4 From Joe Jezak 2004-06-03 07:54:30 0000 -------
Created an attachment (id=32592) [edit]
Same as above for net-dialup/ppp

Here's the output from net-dialup/ppp.	It looks like buildreq needs to be
built with -fPIC.

------- Comment #5 From solar 2004-06-03 09:20:11 0000 -------
Created an attachment (id=32594) [edit]
libcap-pic-fixup.diff

SpanKY want to bless or curse this diff?
libcap is a shared library so it should always be PIC and not just the cases
for alpha/hppa/amd64/ppc
internal reference http://www.gentoo.org/proj/en/hardened/pic-internals.xml

------- Comment #6 From solar 2004-06-03 09:26:41 0000 -------
net-dialup will want to do the same sort of thing for the shared library parts
of pppd but not on the global scale or people will byte your head off ;/

------- Comment #7 From Joe Jezak 2004-06-04 07:18:49 0000 -------
Created an attachment (id=32637) [edit]
Another log

When linking abiword, I get relocation errors as well, it looks like the
problem is in ncurses: '/usr/lib/libcurses.a(lib_termcap.o)' was compiled
without -fPIC.

------- Comment #8 From SpanKY 2004-06-07 05:26:55 0000 -------
here's the fix for ppp:
last line of src_unpack()
sed -i -e '/^CFLAGS/s:$: -fPIC:' pppd/plugins/radius/radiusclient/lib/Makefile.in || die

------- Comment #9 From SpanKY 2004-06-07 09:52:30 0000 -------
added the -fPIC fix for ppp to cvs

the libcap error is related to swig ... disable the python module when emerge libcap and it'll work ...

------- Comment #10 From SpanKY 2004-06-23 19:49:13 0000 -------
libcap PIC was fine ... it was the python module that was screwing up
everything ...

i updated the python patch to utilize the PIC object files

oh and i have bless your patch solar :) i removed the append-flags crap but
fixed the python patch to keep fPIC out of CFLAGS

as for the abiword bug, i'm not even going to touch that ... file a bug with
gnome if you care

------- Comment #11 From SpanKY 2004-06-23 19:50:23 0000 -------
although that curses bug looks like a broken toolchain ... it selected the .a
in /usr/lib instead of the .so in /lib ...

i'd suggest updating your binutils/gcc to the latest stable on ppc

------- Comment #12 From Joe Jezak 2004-06-23 22:33:43 0000 -------
Upgrading the toolchain to ~ppc latest fixed the remainder of my problems. 
Thanks!

First Last Prev Next    No search results available      Search page      Enter new bug