Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Prelinking on amd64...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Mon Jan 17, 2005 3:06 pm    Post subject: Prelinking on amd64... Reply with quote

When I start prelink --all I get tis at the beginning:

Code:

prelink: /usr/bin/localedef: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/iconv: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/locale: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/gencat: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/getconf: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/getent: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/sprof: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/pcprofiledump: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/rpcgen: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/testload: Could not parse `/usr/bin/testload: error while loading shared libraries: libnormvol.so: cannot open shared object file: No such file or directory'
prelink: /usr/sbin/zdump: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/iconvconfig: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/zic: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/rpcinfo: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/nscd_nischeck: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/lib/misc/pt_chown: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker


So it seems to me he does not use x86_64 libs but x86-libs instead. What effect does this have?
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
jeffroman
Apprentice
Apprentice


Joined: 15 Jul 2003
Posts: 183
Location: Louisville, Kentucky

PostPosted: Mon Jan 17, 2005 3:16 pm    Post subject: Reply with quote

i dont think you need to prelink with amd64. For some reason, it's sort of like implied with the stages. or something. i really dont know why. but yeah something like that :)
_________________
Thunder k8w, 2 Opteron 244s, 2GB Corsair, Audigy 2 Platinum eX, 6800 GT OC, 3Ware 9500S-4LP
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Sun Jan 23, 2005 1:03 pm    Post subject: Reply with quote

What?

Why exactly I don't have to prelink with amd64? Can anybody confirm that and explain why?
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Tue Jan 25, 2005 9:24 am    Post subject: Reply with quote

Uhm is nobody able to give any statement about this?
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
Evil Dark Archon
Guru
Guru


Joined: 21 Dec 2002
Posts: 562
Location: Santa Rosa, CA

PostPosted: Tue Jan 25, 2005 9:38 pm    Post subject: Reply with quote

/lib64 is a symlink to /lib, so those are 64bit ld-linux.so's but the fact that at link time the path was specified as /lib instead of /lib64 confuses prelink, you don't need to worry though as the programs listed are so small that prelinking those particular programs is unnecessary. The reason i think they are linked like that is probably because they are part of glibc.
_________________
This post has been over explained for newb-informing purposes.

Registered Linux user 347334
Abit AV8-3rd eye, AMD Athlon64 3500+ 90nm, ATI Radeon x850 pro
Back to top
View user's profile Send private message
zinion
Guru
Guru


Joined: 27 Oct 2004
Posts: 541
Location: Ruhgebietshausen

PostPosted: Tue Jan 25, 2005 11:07 pm    Post subject: Reply with quote

Thank you.
_________________
Es ist schön und warm
hier im Gentoo-Land
Back to top
View user's profile Send private message
rich0
Developer
Developer


Joined: 15 Sep 2002
Posts: 163

PostPosted: Sun Mar 13, 2005 6:14 pm    Post subject: Similar problem Reply with quote

I don't think that prelink is working for me either...

root # prelink -vafR
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
/var/lib/init.d/depcache: line 25: driftfile: command not found
prelink: /usr/bin/localedef: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/iconv: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/locale: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/gencat: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/getconf: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/getent: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/pcprofiledump: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/rpcgen: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/sprof: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/glmovie: Could not parse `/usr/bin/glmovie: /usr/lib64/opengl/xorg-x11/lib/libGL.so.1: no version information available (required by /usr/bin/glmovie)'
prelink: /usr/lib/octave-2.1.57/liboctinterp.so: Could not find one of the dependencies
prelink: /usr/bin/vfyserv: Could not parse `/usr/bin/vfyserv: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/vfyserv)'
prelink: /usr/bin/symkeyutil: Could not parse `/usr/bin/symkeyutil: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/symkeyutil)'
prelink: /usr/bin/vfychain: Could not parse `/usr/bin/vfychain: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/vfychain)'
prelink: /usr/bin/tstclnt: Could not parse `/usr/bin/tstclnt: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/tstclnt)'
prelink: /usr/bin/shlibsign: Could not parse `/usr/bin/shlibsign: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/shlibsign)'
prelink: /usr/bin/strsclnt: Could not parse `/usr/bin/strsclnt: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/strsclnt)'
prelink: /usr/bin/p7content: Could not parse `/usr/bin/p7content: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/p7content)'
prelink: /usr/bin/selfserv: Could not parse `/usr/bin/selfserv: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/selfserv)'
prelink: /usr/bin/sdrtest: Could not parse `/usr/bin/sdrtest: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/sdrtest)'
prelink: /usr/bin/pp: Could not parse `/usr/bin/pp: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/pp)'
prelink: /usr/bin/pk12util: Could not parse `/usr/bin/pk12util: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/pk12util)'
prelink: /usr/bin/p7verify: Could not parse `/usr/bin/p7verify: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/p7verify)'
prelink: /usr/bin/p7sign: Could not parse `/usr/bin/p7sign: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/p7sign)'
prelink: /usr/bin/p7env: Could not parse `/usr/bin/p7env: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/p7env)'
prelink: /usr/bin/checkcert: Could not parse `/usr/bin/checkcert: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/checkcert)'
prelink: /usr/bin/modutil: Could not parse `/usr/bin/modutil: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/modutil)'
prelink: /usr/bin/makepqg: Could not parse `/usr/bin/makepqg: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/makepqg)'
prelink: /usr/bin/derdump: Could not parse `/usr/bin/derdump: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/derdump)'
prelink: /usr/bin/dbtest: Could not parse `/usr/bin/dbtest: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/dbtest)'
prelink: /usr/bin/crlutil: Could not parse `/usr/bin/crlutil: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/crlutil)'
prelink: /usr/bin/cmsutil: Could not parse `/usr/bin/cmsutil: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/cmsutil)'
prelink: /usr/bin/certutil: Could not parse `/usr/bin/certutil: /usr/lib/libnss3.so: version `NSS_3.9' not found (required by /usr/bin/certutil)'
prelink: /usr/sbin/nscd_nischeck: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/iconvconfig: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/zic: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/zdump: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/rpcinfo: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/lib/misc/pt_chown: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
rich64 root # stat /bin/login
File: `/bin/login'
Size: 69780 Blocks: 152 IO Block: 4096 regular file
Device: 305h/773d Inode: 770130 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2005-03-11 21:22:21.000000000 -0500
Modify: 2005-03-11 21:22:21.000000000 -0500
Change: 2005-03-11 21:22:22.000000000 -0500

Shouldn't a forced prelink modify just about every binary on the system? The mtime was not touched for anything as far as I can tell.

Also:

root # ls -l /etc/prelink.cache
-rw-r--r-- 1 root root 546138 Jan 27 20:39 /etc/prelink.cache
root # prelink -p
0 objects found in prelink cache `/etc/prelink.cache'

That seems strange. I get 200 pages of library addresses if I do that under my 32-bit chroot.

Can any harm come out of rm'ing prelink.cache and seeing if that is the problem?
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Sun Mar 13, 2005 8:08 pm    Post subject: Reply with quote

my prelink.cache is
Code:
-rw-r--r--  1 root root 76474  9. Mär 14:34 /etc/prelink.cache
and i noticed a speedup by using it at first time. if you're sure that prelink wont work, use LDFLAGS.
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
rich0
Developer
Developer


Joined: 15 Sep 2002
Posts: 163

PostPosted: Sun Mar 13, 2005 8:58 pm    Post subject: Reply with quote

ahorn wrote:
my prelink.cache is
Code:
-rw-r--r--  1 root root 76474  9. Mär 14:34 /etc/prelink.cache
and i noticed a speedup by using it at first time. if you're sure that prelink wont work, use LDFLAGS.


The size of the file really doesn't matter - I was just illustrating that there must be SOMETHING in it at that size, but the prelink -p output shows no records.

I do not dispute that prelink should yield a program-launch performance improvement.
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Sun Mar 13, 2005 9:14 pm    Post subject: Reply with quote

Ok, prelink -p shows me nothing, too. But if i cat /etc/prelink.cache there're listed all the programs, what's with that? I have no clue why prelink wont work at adm64 but the -p option let me wonder. If prelink doesn't fit at amd64, LDFLAGS will not work, too?
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
Birtz
Apprentice
Apprentice


Joined: 09 Feb 2005
Posts: 272
Location: Osijek / Croatia

PostPosted: Mon Mar 14, 2005 9:42 am    Post subject: Reply with quote

Hm, for one thing, I consider myself pretty lazy so I dropped the prelink thing at the beginning (you do need to babysit your packages if you update them often). I just use "-Wl,-O1" on my LDFLAGS :wink:

Actually, does this make a difference speed wise, I wouldn't know, if it does I can't seem to notice it :wink:

Cheers
_________________
It is not enough to have a good mind. The main thing is to use it well.
-- Rene Descartes

Don't have a childhood hero? How about Rob Hubbard http://www.freenetpages.co.uk/hp/tcworh/profile.htm
Back to top
View user's profile Send private message
yokem55
Guru
Guru


Joined: 18 Apr 2002
Posts: 360
Location: Oregon

PostPosted: Mon Mar 14, 2005 5:21 pm    Post subject: Reply with quote

I used prelink for a while to speed up load times in kde, but since support for fvisibility stuff went in for 3.4, I've had no need for it as everything loads nearly instantly....
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Mon Mar 14, 2005 5:58 pm    Post subject: Reply with quote

yokem55 wrote:
but since support for fvisibility stuff went in for 3.4, I've had no need for it as everything loads nearly instantly....
What do you mean? I don't get it.
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
ahorn
Guru
Guru


Joined: 01 Nov 2004
Posts: 366
Location: Ol' europe

PostPosted: Mon Mar 14, 2005 8:12 pm    Post subject: Reply with quote

Code:
ACCEPT_KEYWORDS="~amd64" emerge =prelink-20040707

did the job, the newest prelink is maybe broken.
_________________
Too many connections. Please try again later.
Back to top
View user's profile Send private message
Dillius
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 119

PostPosted: Mon Mar 14, 2005 10:54 pm    Post subject: Reply with quote

I attempted to prelink and this happened:

bash-2.05b# prelink -amR
prelink: /usr/bin/iconv: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/locale: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/localedef: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/gencat: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/getconf: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/getent: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/rpcgen: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/pcprofiledump: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/bin/sprof: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/nscd_nischeck: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/iconvconfig: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/zic: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/zdump: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/sbin/rpcinfo: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /usr/lib/misc/pt_chown: Using /lib/ld-linux-x86-64.so.2, not /lib64/ld-linux-x86-64.so.2 as dynamic linker
prelink: /lib/modules/2.6.9-gentoo-r14/source/scripts/kconfig/mconf: Could not find one of the dependencies
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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