Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-ftp/kbear
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Fri Feb 10, 2006 2:59 pm    Post subject: net-ftp/kbear Reply with quote

I can't start kbear after a fine emerge:
Code:
$ kbear
kbear: error while loading shared libraries: /usr/lib/libkbear.so.2: R_PPC_REL24 relocation at 0x0e977698 for symbol `_ZN11KMessageBox5errorEP7QWidgetRK7QStringS4_i' out of range
It was built with these flags:
Code:
[ebuild   R   ] net-ftp/kbear-2.1.1-r1  -arts -debug -gnome -xinerama 0 kB

So far I use gftp. But kbear seems to integrate well in kde.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
bpfowler
n00b
n00b


Joined: 10 Aug 2005
Posts: 13
Location: West Riding

PostPosted: Tue Mar 07, 2006 5:59 pm    Post subject: Reply with quote

I am seeing exactly the same thing, and have found this info from Google:

Your system is having difficulties mixing PIC [position indepedent code]
with non-PIC code. Recompile with "-fPIC" to force the creation of
position independent code.

http://lists.terrasoftsolutions.com/pipermail/yellowdog-general/2005-January/017767.html

Most likely, you didn't compile the library with -fpic (or -fPIC).
There should not be a R_PPC_REL24 reloc in a shared library compiled
with -fpic, and libraries not compiled with -fpic or -fPIC are not
guaranteed to work.

http://sourceware.org/ml/libc-alpha/2001-06/msg00172.html

I am guessing that there is some library that kbear links to, that should be a shared
library, and in fact was not compiled as position independent code. The kbear
project is fairly difficult to configure and build, and I have not yet succeeded
in so doing, so this is rather speculative at the moment.

I was hoping to speak to one of the Gentoo devs, whom I know has had
a hand in this in the past, at the Sheffield Linux User
Group last Saturday, but either did not see or did not recognise him.

I am sorry that I don't have a working solution at present!
Back to top
View user's profile Send private message
bpfowler
n00b
n00b


Joined: 10 Aug 2005
Posts: 13
Location: West Riding

PostPosted: Fri Mar 10, 2006 1:44 pm    Post subject: Reply with quote

Guided by HOWTO Locate and Fix .text Relocations (TEXTRELs), I used the scanelf utility with these results, which seem strongly suggestive:

Code:
scanelf -lpqt
TEXTREL  /usr/lib/libkbeardirsynchpart.so
TEXTREL  /usr/lib/libkbearfilesyspart.so
TEXTREL  /usr/lib/libkbear.so.2.0.0
TEXTREL  /usr/lib/libccm.so


Examining the object code with objdump gives results like this:

Code:
   9c368:       3c 80 00 00     lis     r4,0
   9c36c:       38 84 00 00     addi    r4,r4,0


and I wonder whether every load immediate is affected. (See Mac OS X PPC Shellcode Tricks for a primer onto how to load immediate values into a 32-bit register).

I have been able to compile the HEAD of the kbear project, but this is version 3 and you want version 2 per http://gentoo.linuxhowtos.org/browseportage/browseportage.htm?portagecat=net-ftp/kbear . You are probably right to switch to gftp, and you might want to investigate kasablanca
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Fri Mar 10, 2006 2:13 pm    Post subject: Reply with quote

I was using gftp for a long time and still content with it.
But I like the interaction and homogenous look of konqueror and Co.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum