Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
errore prelink [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Sat Feb 07, 2004 7:14 pm    Post subject: errore prelink [risolto] Reply with quote

ciao volevo provare a fare prelink

ma con
Code:

bash-2.05b# prelink -afmR


ottengo
Code:

prelink: /sbin/insmod.static: Using /usr/lib/libc.so.1, not /lib/ld-linux.so.2 as dynamic linker
prelink: /usr/bin/xpdf: Could not parse `/usr/bin/xpdf: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory'
prelink: /usr/bin/pdftopbm: Could not parse `/usr/bin/pdftopbm: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory'
prelink: /usr/bin/xemacs-21.4.12: Could not parse `/usr/bin/xemacs-21.4.12: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory'
prelink: /usr/bin/emacs-21.3: Could not parse `/usr/bin/emacs-21.3: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory'
prelink: /usr/bin/emacs-21.3: Could not parse `/usr/bin/emacs-21.3: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory'
Segmentation fault


Potete dirmi qualcosa?
grazie


Last edited by lopio on Sun Feb 08, 2004 3:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
elbambolo
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2003
Posts: 98

PostPosted: Sat Feb 07, 2004 8:52 pm    Post subject: Reply with quote

Quote:
libraries: libXm.so.3: cannot open shared object file: No such file or directory'

ma le librerie libXm.so.3 ce le hai?
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Sun Feb 08, 2004 9:19 am    Post subject: Reply with quote

elbambolo wrote:
Quote:
libraries: libXm.so.3: cannot open shared object file: No such file or directory'

ma le librerie libXm.so.3 ce le hai?


....sembra proprio di no...........:oops:
mi son perso qualche passaggio mi spiegate?
grazie
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Sun Feb 08, 2004 12:40 pm    Post subject: Reply with quote

ciao,
sono stato costretto a riemergere emacs,xemacs e xpdf

ora pero' con
Code:

prelink -afmRv



ottengo
Code:

prelink: /sbin/insmod.static: Using /usr/lib/libc.so.1, not /lib/ld-linux.so.2 as dynamic linker
prelink: Warning: /usr/lib/libavformat.so has undefined non-weak symbols
prelink: Warning: /usr/lib/libgmodule-1.2.so.0 has undefined non-weak symbols
prelink: Warning: /usr/lib/libgtk-1.2.so.0 has undefined non-weak symbols
prelink: Warning: /usr/lib/libgimpui-1.2.so.0 has undefined non-weak symbols
prelink: Warning: /usr/lib/libgimp-1.2.so.0 has undefined non-weak symbols
prelink: Warning: /usr/lib/libwwwapp.so.0 has undefined non-weak symbols
prelink: Warning: /usr/lib/opengl/nvidia/lib/libGLcore.so.1 has undefined non-weak symbols
Segmentation fault


e non mi sembra un semplice warning come dice doc
Quote:

I have problems with Nvidia openGL libraries
The accelerated openGL libraries that come in the nvidia-glx package have been compiled in a non-standard way and so prelink will throw warnings. This is nothing to worry about and cannot be fixed by anyone except nvidia. You can always revert to the xfree version of libGL.so if you don't need 3D acceleration. The nvidia xfree driver works fine though.


grazie ciao
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Sun Feb 08, 2004 12:47 pm    Post subject: Reply with quote

Hai provato a dare un

Code:
# opengl-update xfree


prima di dare il prelink? Poi non dimenticare di ripristinare il supporto opengl di nvidia

Code:
# opengl-update nvidia
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Sun Feb 08, 2004 1:40 pm    Post subject: Reply with quote

MyZelf ho fatto come hai detto (credo)
MyZelF wrote:

# opengl-update xfree
#prelink -afmRv
# opengl-update nvidia

GRAZIEEEEEEEEEEEEEEE!!!! Sembra funzionare :D
ma non mi e' chiaro il passaggio

Poi visto che e' la prima volta che faccio prelink chiedo
1) Come faccio a sapere quando fare prelink o meglio tener memoria di quali sono le librerie che una volta modificate obbligano a fare prelink?
2) Se non faccio prelink dopo la modifica di tali librerie che succede? Solo che non viene usata la feature o cosa?
3) inserire come da doc PRELINK_PATH_MASK="/opt"in 99prelink evita di prelinkare binari li' sotto ma sembra un modo per evitare problemi in ogni caso vero?

grazie infinite
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Sun Feb 08, 2004 2:03 pm    Post subject: Reply with quote

Questo post

https://forums.gentoo.org/viewtopic.php?t=119422

dovrebbe rispondere ad alcune delle tue domande.
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Sun Feb 08, 2004 2:27 pm    Post subject: Reply with quote

perfetto :lol:

ultima cosina (scritta in altro post chiedo scusa) che ripeto per correttezza visto che forse il topic giusto e' questo
Cerri ha detto
Quote:

Il prelink necessita di due requisit:
1) che le applicazioni sia compilate con -fPIC, quindi o pic come use o -fPIC nelle cflags.;
2) che l'applicazione sia stata prelinkata e le librerie nel frattempo non siano cambiate.


se uso
Code:

 Portage 2.0.50 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-gentoo)
 =================================================================
 System uname: 2.6.1-gentoo i686 AMD Athlon(tm) XP 1900+
 Gentoo Base System version 1.4.3.10
 ccache version 2.3 [enabled]
 Autoconf: sys-devel/autoconf-2.58
 Automake: sys-devel/automake-1.7.7
 ACCEPT_KEYWORDS="x86"
 AUTOCLEAN="yes"
 CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
 CHOST="i686-pc-linux-gnu"
 COMPILER="gcc3"
 CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
 CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
 CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
 DISTDIR="/usr/portage/distfiles"
 FEATURES="autoaddcvs ccache sandbox"
 GENTOO_MIRRORS="http://212.219.247.20/sites/www.ibiblio.org/gentoo/"
 MAKEOPTS="-j2"
 PKGDIR="/usr/portage/packages"
 PORTAGE_TMPDIR="/var/tmp"
 PORTDIR="/usr/portage"
 PORTDIR_OVERLAY=""
 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
 USE="X aalib alsa apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd tetex truetype x86 xml2 xmms xv zlib"

il prelink non mi da' errore ma non serve a nulla....o no?
Come mi accorgo dei vantaggi, annullo prelink, misuro tempi e rifaccio prelink?
grazie ciao
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Sun Feb 08, 2004 2:45 pm    Post subject: Reply with quote

Non capisco quale sia il problema.

Buona parte delle applicazioni del tuo sistema dovrebbero essere già compilate con -fPIC: in genere è un'opzione utilizzata (se non è così è perchè potrebbe dare problemi, come detto nella doc relativa al prelink). Per gli ebuild per cui è prevista come opzionale questa flag puoi mettere in USE "pic" e ricompilare.

Per il resto ti basta effettuare il prelink nuovamente quando aggiorni il sistema (eseguibili e librerie prima prelinkati).
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Sun Feb 08, 2004 2:53 pm    Post subject: Reply with quote

MyZelF wrote:
Non capisco quale sia il problema.

Buona parte delle applicazioni del tuo sistema dovrebbero essere già compilate con -fPIC: in genere è un'opzione utilizzata (se non è così è perchè potrebbe dare problemi, come detto nella doc relativa al prelink). Per gli ebuild per cui è prevista come opzionale questa flag puoi mettere in USE "pic" e ricompilare.

Per il resto ti basta effettuare il prelink nuovamente quando aggiorni il sistema (eseguibili e librerie prima prelinkati).


scusa mi sfuggiva il fatto che il flag -fPIC e' inserito direttamente nell'ebuild quindi il fatto che io lo includa nelle flag non e' importante se non nei casi in cui e' previsto come flag opzionale
Grazie ancora
ciao
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Sun Feb 08, 2004 7:11 pm    Post subject: Reply with quote

Ciao siccome non vedo alcuna differenza in temini di prestazioni
(per esempio kmail mi da' tempi sui 1,2 sec) ho paura che il messaggio iniziale del prelink (che arriva in fondo senza errori)
Code:

/sbin/insmod.static: Using /usr/lib/libc.so.1, not /lib/ld-linux.so.2 as dynamic linker

sia in realta' un indice di malfunzionamento

Va bene che processore, configurazione ,.... sono diversi ma nel nel benchmark http://www.gentoo.org/main/en/performance.xml
con un P3 si riportano valori per kmail che passano da 0,4 secondi a 0,04 (10 volte + veloce).
Qui invece sembra non ci sia differenza.

grazie
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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