View previous topic :: View next topic |
Author |
Message |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Sat Feb 07, 2004 7:14 pm Post subject: errore prelink [risolto] |
|
|
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 |
|
 |
elbambolo Tux's lil' helper


Joined: 23 Nov 2003 Posts: 98
|
Posted: Sat Feb 07, 2004 8:52 pm Post subject: |
|
|
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 |
|
 |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Sun Feb 08, 2004 9:19 am Post subject: |
|
|
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...........
mi son perso qualche passaggio mi spiegate?
grazie |
|
Back to top |
|
 |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Sun Feb 08, 2004 12:40 pm Post subject: |
|
|
ciao,
sono stato costretto a riemergere emacs,xemacs e xpdf
ora pero' con
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 |
|
 |
MyZelF Bodhisattva


Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
Posted: Sun Feb 08, 2004 12:47 pm Post subject: |
|
|
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 |
|
 |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Sun Feb 08, 2004 1:40 pm Post subject: |
|
|
MyZelf ho fatto come hai detto (credo)
MyZelF wrote: |
# opengl-update xfree
#prelink -afmRv
# opengl-update nvidia
|
GRAZIEEEEEEEEEEEEEEE!!!! Sembra funzionare
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 |
|
 |
MyZelF Bodhisattva


Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
|
Back to top |
|
 |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Sun Feb 08, 2004 2:27 pm Post subject: |
|
|
perfetto
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 |
|
 |
MyZelF Bodhisattva


Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
Posted: Sun Feb 08, 2004 2:45 pm Post subject: |
|
|
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 |
|
 |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Sun Feb 08, 2004 2:53 pm Post subject: |
|
|
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 |
|
 |
lopio Veteran


Joined: 22 Dec 2003 Posts: 1161 Location: savona, Italy
|
Posted: Sun Feb 08, 2004 7:11 pm Post subject: |
|
|
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 |
|
 |
|