Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Library-Rechte korrekt? [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Sun Dec 23, 2007 10:45 am    Post subject: Library-Rechte korrekt? [solved] Reply with quote

Hallo zusammen,

ich bin gerade dabei eine Firefox-Komponente zu schreiben, aber leider klappt da was mit meinen Libraries nicht:
Code:
# /usr/lib/mozilla-firefox/run-mozilla.sh `which ldd` -r /usr/lib/mozilla-firefox/components/SelectIFSocketProvider.so
undefined symbol: PR_Bind       (/usr/lib/mozilla-firefox/components/SelectIFSocketProvider.so)
undefined symbol: PR_OpenTCPSocket      (/usr/lib/mozilla-firefox/components/SelectIFSocketProvider.so)
undefined symbol: PR_SetNetAddr (/usr/lib/mozilla-firefox/components/SelectIFSocketProvider.so)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libstdc++.so.6 (0x00002b71e3b16000)
        libm.so.6 => /lib/libm.so.6 (0x00002b71e3d14000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002b71e3f95000)
        libc.so.6 => /lib/libc.so.6 (0x00002b71e40a3000)
        /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)


Komischweise hab ich keine Executive-Rechte für die betroffenen Libraries:
Code:
# ls -l
insgesamt 756
-rw-r--r-- 1 root root 448374 16. Aug 12:08 libnspr4.a
lrwxrwxrwx 1 root root     13 16. Aug 12:08 libnspr4.so -> libnspr4.so.6
-rw-r--r-- 1 root root 225496 16. Aug 12:08 libnspr4.so.6
-rw-r--r-- 1 root root  37430 16. Aug 12:08 libplc4.a
lrwxrwxrwx 1 root root     12 16. Aug 12:08 libplc4.so -> libplc4.so.6
-rw-r--r-- 1 root root  20416 16. Aug 12:08 libplc4.so.6
-rw-r--r-- 1 root root  13648 16. Aug 12:08 libplds4.a
lrwxrwxrwx 1 root root     13 16. Aug 12:08 libplds4.so -> libplds4.so.6
-rw-r--r-- 1 root root  11936 16. Aug 12:08 libplds4.so.6
Ist das nicht falsch? - allerdings, wenn ich es mit
Code:
# chmod +x *
# env-update
>>> Regenerating /etc/ld.so.cache...
# source /etc/profile
änder klappt es auch nicht.

So richtig hab ich ehrlich gesagt das mit den Libraries noch nicht raus.
Wo ist mein Denkfehler?

btw:
Code:
# ldconfig  -p | grep nspr
        libplds4.so.6 (libc6,x86-64) => /usr/lib64/nspr/libplds4.so.6
        libplds4.so (libc6,x86-64) => /usr/lib64/nspr/libplds4.so
        libplc4.so.6 (libc6,x86-64) => /usr/lib64/nspr/libplc4.so.6
        libplc4.so (libc6,x86-64) => /usr/lib64/nspr/libplc4.so
        libnspr4.so.6 (libc6,x86-64) => /usr/lib64/nspr/libnspr4.so.6
        libnspr4.so (libc6,x86-64) => /usr/lib64/nspr/libnspr4.so

_________________
Build your own live cd with catalyst 2.0!


Last edited by manuels on Tue Dec 25, 2007 12:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2406
Location: Germany

PostPosted: Mon Dec 24, 2007 11:33 am    Post subject: Reply with quote

Libs wollen doch nur gelesen werden!

Und das wird auch bei den Rechten von dir jedem gewährt.

Diese Undefiniereten Symbole deuten eher darauf hin das dir dir eine aktuellere Version fehlt, du sie falsch implementiert hast. Oder dir eine andere Lib fehlt.
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Mon Dec 24, 2007 11:38 am    Post subject: Reply with quote

Achso, ich dachte, man müsse die auch ausführen können. Dann scheint das ja korrekt zu sein.

Wieso sind das dann immer noch undefined symbols? Komisch.
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
STiGMaTa_ch
Veteran
Veteran


Joined: 28 Dec 2004
Posts: 1686
Location: Rüti ZH / Schweiz

PostPosted: Mon Dec 24, 2007 9:20 pm    Post subject: Reply with quote

Hat doch ChrisJumper eben geschrieben... Du verwendest die Symbole PR_Bind, PR_OpenTCPSocket und PR_SetNetAddr. Diese sollen angeblich in /usr/lib/mozilla-firefox/components/SelectIFSocketProvider.so zu finden sein. Nur dummerweise sind die dort eben NICHT DEFINIERT (undefined symbol).

Also ersetzt du nun entweder SelectIFSocketProvider.so durch eine Version, welche diese Symbole beinhaltet, schaust nach ob die Symbole wirklich so heissen oder prüfst ob die noch eine andere lib fehlt.

STiGMaTa
_________________
Ich bin Schuldknappe. Das bedeutet ich bin immer an allem Schuld. Und das nicht zu knapp! | Der alltägliche Familienwahnsinn auf meinem BLOG
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5340

PostPosted: Mon Dec 24, 2007 9:42 pm    Post subject: Reply with quote

du musst deine lib noch gegen libnspr4.so linken.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Tue Dec 25, 2007 12:14 pm    Post subject: Reply with quote

Ahhrg! Habt recht. Das ganze wurde nicht gegen die library gelinkt, da in meinem Makefile folgendes drinstand:
Code:
# Auskommentierte Zeile \
Korrigierte Zeile

Leider versteht BASH eine auskommentierte Zeile, die mit einem Backslash endet, so, dass die nächste Zeile auch noch eine Kommentarzeile sei.
So ein Mist.
Danke für die Hilfe.

Jetzt nimmt Firefox meine Komponente zwar immer noch nicht an, aber das gehört hier nicht hin.
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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