Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

[HOWTO] how I use to prelink (nvidia included) [x86] [~x86]

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
137 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next
Author
Message
Erlend
Guru
Guru
Posts: 493
Joined: Sun Dec 26, 2004 2:36 pm

  • Quote

Post by Erlend » Sat Feb 12, 2005 11:11 am

compiling from the beginning with pic would save a lot of time!
Sorry, I think I must be missing something. How does using pic save a lot of time? Does it just speed up the prelink process? I've prelinked my system without USE="pic" and it seems okay (although i wouldn't say i noticed much speed up).

Thanks,

Erlend
Top
hds
Advocate
Advocate
User avatar
Posts: 2629
Joined: Sat Aug 21, 2004 11:31 am
Location: Sprockhoevel [GER]
Contact:
Contact hds
Website

  • Quote

Post by hds » Sat Feb 12, 2005 11:26 am

Erlend wrote:I've prelinked my system without USE="pic" and it seems okay (although i wouldn't say i noticed much speed up).
you shouldnt notice any speedup if glibc was compiled without pic ;)
what about reading the previous page? :oops:
http://developer.berlios.de/projects/kdeskel/
His: Athlon 1200TB, Hers: Athlon 1200 Duron, Garden: IBM Thinkpad 600, Server: K6-2, rootserver: P4
http://www.audioscrobbler.com:80/user/hds/
Top
juri
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Sat Dec 13, 2003 1:57 pm
Location: Pistoia - Italy

  • Quote

Post by juri » Sat Feb 12, 2005 11:33 am

From what I understood if you have USE="pic" from the start, that is to say a stage1 install, you don't have to reemerge the entire system later to get all the advantages of prelinking. Maybe you didn't notice any improvement cause you don't have the pic flag enabled.
anyway I'm just guessing cause my first try at prelinking following the how-to on the official site failed.
Top
hds
Advocate
Advocate
User avatar
Posts: 2629
Joined: Sat Aug 21, 2004 11:31 am
Location: Sprockhoevel [GER]
Contact:
Contact hds
Website

  • Quote

Post by hds » Sat Feb 12, 2005 11:41 am

juri wrote:From what I understood if you have USE="pic" from the start, that is to say a stage1 install, you don't have to reemerge the entire system
well, you have to re-emerge glibc at least, not the entire system, though ;)
http://developer.berlios.de/projects/kdeskel/
His: Athlon 1200TB, Hers: Athlon 1200 Duron, Garden: IBM Thinkpad 600, Server: K6-2, rootserver: P4
http://www.audioscrobbler.com:80/user/hds/
Top
Erlend
Guru
Guru
Posts: 493
Joined: Sun Dec 26, 2004 2:36 pm

  • Quote

Post by Erlend » Sat Feb 12, 2005 12:12 pm

you shouldnt notice any speedup if glibc was compiled without pic Wink
what about reading the previous page? Embarassed
Great, now I've got to re-compile glibc, again.

I read the previous page. Nothing explicitly said USE="pic" was required, and since the gentoo-wiki page didn't mention it I guessed it was optional.

Thanks,

Erlend
Top
hds
Advocate
Advocate
User avatar
Posts: 2629
Joined: Sat Aug 21, 2004 11:31 am
Location: Sprockhoevel [GER]
Contact:
Contact hds
Website

  • Quote

Post by hds » Sat Feb 12, 2005 12:18 pm

Erlend wrote: I read the previous page. Nothing explicitly said USE="pic" was required
say what???

Code: Select all

a) enable "pic" to your USEflags.
it says that in the very first step. what about getting a pair of glasses? :lol:
btw.. this howto would be pretty redundant if it wouldnt mention the pic useflag, IMHO :twisted:
http://developer.berlios.de/projects/kdeskel/
His: Athlon 1200TB, Hers: Athlon 1200 Duron, Garden: IBM Thinkpad 600, Server: K6-2, rootserver: P4
http://www.audioscrobbler.com:80/user/hds/
Top
cato`
Guru
Guru
User avatar
Posts: 430
Joined: Mon Jun 03, 2002 2:12 pm
Location: Norway, Trondheim
Contact:
Contact cato`
Website

  • Quote

Post by cato` » Sun Feb 13, 2005 4:32 pm

When I prelink I get absolutly no output, does this mean it was sucessfull or not?

Code: Select all

laptop root # prelink -avmfR
laptop root #
laptop root # prelink -avmqR
laptop root #
Don't mess with the Penguin.
Top
radfoj
Guru
Guru
User avatar
Posts: 490
Joined: Fri Dec 31, 2004 12:02 pm
Location: Tísek, Czech Republic
Contact:
Contact radfoj
Website

  • Quote

Post by radfoj » Sun Feb 13, 2005 4:45 pm

cato` wrote:When I prelink I get absolutly no output, does this mean it was sucessfull or not?

Code: Select all

laptop root # prelink -avmfR
laptop root #
laptop root # prelink -avmqR
laptop root #
In my opinion prelink wasnt sucessfull. From man prelink:

Code: Select all

-v --verbose 
Verbose mode. Print the virtual address slot assignment to libraries and print what binary or library is currently being prelinked.
It should print out at liest something like this:

Code: Select all

Laying out 23 libraries in virtual address space 41000000-50000000
Random base 0x42f02000
Assigned virtual address space slots for libraries:
........
/usr/lib/MozillaFirefox/libplds4.so                          4bc2b000-4bc2ddf0
/usr/lib/MozillaFirefox/libnspr4.so                          4bbf6000-4bc287c0
/usr/lib/libXmu.so.6                                         4cde6000-4cdfbd2c
/usr/lib/libpopt.so.0                                        4c1dc000-4c1e2f50
/usr/lib/MozillaFirefox/libplc4.so                           4bc30000-4bc34698
/usr/lib/libXp.so.6                                          4bbe5000-4bbec58c
........
cato`, are you sure, you have compiled glibc with "pic" USE-flag?
Top
hds
Advocate
Advocate
User avatar
Posts: 2629
Joined: Sat Aug 21, 2004 11:31 am
Location: Sprockhoevel [GER]
Contact:
Contact hds
Website

  • Quote

Post by hds » Sun Feb 13, 2005 4:54 pm

cato` wrote:When I prelink I get absolutly no output, does this mean it was sucessfull or not?
no, because you have -v (verbose). he process takes time, a few minutes (didnt look at the clock here)
however, if you get no output at all.. there really is something wrong.
@radfoj:
regardless if glibc is compiled with or without pic flag, he should get output and files wil be prelinked. however, it is of no use as long as glibc isnt compiled with "pic". however, the prelink process should work in any case.
http://developer.berlios.de/projects/kdeskel/
His: Athlon 1200TB, Hers: Athlon 1200 Duron, Garden: IBM Thinkpad 600, Server: K6-2, rootserver: P4
http://www.audioscrobbler.com:80/user/hds/
Top
kormoc
Apprentice
Apprentice
Posts: 250
Joined: Mon Jun 17, 2002 7:12 pm

  • Quote

Post by kormoc » Mon Feb 14, 2005 12:05 am

Deleted
Last edited by kormoc on Mon Dec 24, 2018 8:48 am, edited 1 time in total.
Top
[UK]Superdude
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Mon Jul 22, 2002 10:34 am
Location: Adelaide, Australia

  • Quote

Post by [UK]Superdude » Mon Feb 14, 2005 2:51 am

cato` wrote:When I prelink I get absolutly no output, does this mean it was sucessfull or not?

Code: Select all

laptop root # prelink -avmfR
laptop root #
laptop root # prelink -avmqR
laptop root #
I get the same result....

hmmmmm

Anyone have any ideas or suggestions?
Top
vagus
n00b
n00b
User avatar
Posts: 59
Joined: Fri Jul 02, 2004 4:43 pm

  • Quote

Post by vagus » Mon Feb 14, 2005 4:10 am

I don't have any output here either... :(
Top
provicemo
Apprentice
Apprentice
User avatar
Posts: 201
Joined: Fri Dec 12, 2003 8:57 pm
Location: Detroit, MI
Contact:
Contact provicemo
Website

  • Quote

Post by provicemo » Mon Feb 14, 2005 4:53 am

No output for me either,
just recently upgraded to prelink-20041123.
Perhaps its related to the new version.
Top
[UK]Superdude
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Mon Jul 22, 2002 10:34 am
Location: Adelaide, Australia

  • Quote

Post by [UK]Superdude » Mon Feb 14, 2005 8:05 am

I too recently upgraded to the new prelink and wondered if it was related.

Hmmmm
Top
hds
Advocate
Advocate
User avatar
Posts: 2629
Joined: Sat Aug 21, 2004 11:31 am
Location: Sprockhoevel [GER]
Contact:
Contact hds
Website

  • Quote

Post by hds » Mon Feb 14, 2005 8:13 am

prelink -V gives "1.0" here as version. if you have a different version, have a look at "man prelink". maybe some options changed?
http://developer.berlios.de/projects/kdeskel/
His: Athlon 1200TB, Hers: Athlon 1200 Duron, Garden: IBM Thinkpad 600, Server: K6-2, rootserver: P4
http://www.audioscrobbler.com:80/user/hds/
Top
simondo42
n00b
n00b
Posts: 42
Joined: Mon Nov 22, 2004 10:42 pm
Location: Dunedin, New Zealand

  • Quote

Post by simondo42 » Mon Feb 14, 2005 9:12 am

If you're not getting output from prelink check your /etc/prelink.conf file. If it contains duplicate directory entries prelink will look busy briefly and then won't do anything. I've found that removing the duplicate entries (manually each time, alas) will allow prelink to run fine.

HTH,
simon
Top
vagus
n00b
n00b
User avatar
Posts: 59
Joined: Fri Jul 02, 2004 4:43 pm

  • Quote

Post by vagus » Mon Feb 14, 2005 9:41 am

Well, true enough my prelink.conf has duplicated entries:

Code: Select all

# prelink.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
-l /bin
-l /sbin
-l /usr/bin
-l /usr/sbin
-l /lib
-l /usr/lib
-h /usr/local/lib
-h /usr/lib/opengl/xorg-x11/lib
-h /lib
-h /usr/lib
-h /usr/local/lib
-h /usr/lib/gcc/i686-pc-linux-gnu/3.4.3
-h /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4
-h /usr/lib/MozillaFirefox
-h /usr/lib/mozilla
-h /usr/lib
-h /opt/sun-jdk-1.5.0.01/jre/lib
-h /usr/qt/3/lib
-h /usr/kde/3.3/lib
-h /usr/lib/nspr
-h /usr/lib/nss
-h /usr/games/lib
-h /usr/lib/fltk-1.1
-h /usr/lib/libstdc++-v3/
-h /usr/lib/R/lib
-h /opt/bin
-h /usr/i686-pc-linux-gnu/gcc-bin/3.4.3
-h /opt/Acrobat5
-h /opt/xxe
-h /opt/sun-jdk-1.5.0.01/bin
-h /opt/sun-jdk-1.5.0.01/jre/bin
-h /usr/qt/3/bin
-h /usr/kde/3.3/bin
-h /usr/games/bin
-b /usr/lib/wine
-b /usr/lib/valgrind
Following simondo42's advice, I commented out the duplicated entries:

Code: Select all

# prelink.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
-l /bin
-l /sbin
-l /usr/bin
-l /usr/sbin
#-l /lib
#-l /usr/lib
-h /usr/local/lib
-h /usr/lib/opengl/xorg-x11/lib
-h /lib
#-h /usr/lib
-h /usr/local/lib
-h /usr/lib/gcc/i686-pc-linux-gnu/3.4.3
-h /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4
-h /usr/lib/MozillaFirefox
-h /usr/lib/mozilla
-h /usr/lib
-h /opt/sun-jdk-1.5.0.01/jre/lib
-h /usr/qt/3/lib
-h /usr/kde/3.3/lib
-h /usr/lib/nspr
-h /usr/lib/nss
-h /usr/games/lib
-h /usr/lib/fltk-1.1
-h /usr/lib/libstdc++-v3/
-h /usr/lib/R/lib
-h /opt/bin
-h /usr/i686-pc-linux-gnu/gcc-bin/3.4.3
-h /opt/Acrobat5
-h /opt/xxe
-h /opt/sun-jdk-1.5.0.01/bin
-h /opt/sun-jdk-1.5.0.01/jre/bin
-h /usr/qt/3/bin
-h /usr/kde/3.3/bin
-h /usr/games/bin
-b /usr/lib/wine
-b /usr/lib/valgrind
But prelink still gives me no output! :( Is there something wrong with prelink.conf?
Top
cato`
Guru
Guru
User avatar
Posts: 430
Joined: Mon Jun 03, 2002 2:12 pm
Location: Norway, Trondheim
Contact:
Contact cato`
Website

  • Quote

Post by cato` » Mon Feb 14, 2005 9:54 am

@vagus: delete /etc/env.d/99prelink and edit 60prelink to your needs. Then do a env-update and the multiple entries are gone.

But I still get no output. Upgraded to newest prelink version, glibc is "PICed" ...
Don't mess with the Penguin.
Top
simondo42
n00b
n00b
Posts: 42
Joined: Mon Nov 22, 2004 10:42 pm
Location: Dunedin, New Zealand

  • Quote

Post by simondo42 » Mon Feb 14, 2005 10:40 am

Vagus: There are still multiple entries in your prelink.conf (/usr/local/lib, /usr/lib). There should be only one reference to a directory, regardless of whether it has -h or -l at the beginning of the line. I generally leave the -l lines alone and remove the duplicate -h lines.

I'm not sure that just altering the 60prelink file helps, as the duplicates are generated by other files in the /etc/env.d directory as well.

Cheers,
simon
Top
vagus
n00b
n00b
User avatar
Posts: 59
Joined: Fri Jul 02, 2004 4:43 pm

  • Quote

Post by vagus » Mon Feb 14, 2005 2:16 pm

Oh I didn't realize that I still missed out 1 duplicated entry! After the commented the last one out, prelink finally gives me a lot of output!!! :D (and my last line was Executing /sbin/init U)

I have yet found a way to prevent duplicated entries in prelink.conf. I don't really know how to change the 60prelink file. This is rather irritating. But I am glad enough that it works!

Thanks everybody! :D
Top
radfoj
Guru
Guru
User avatar
Posts: 490
Joined: Fri Dec 31, 2004 12:02 pm
Location: Tísek, Czech Republic
Contact:
Contact radfoj
Website

  • Quote

Post by radfoj » Mon Feb 14, 2005 3:01 pm

My opinion, I have /etc/prelink.conf and first two lines are saying:

Code: Select all

# prelink.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
So I never modified it. I also have /etc/env.d/60prelink, and my defaults were:

Code: Select all

PRELINK_PATH_MASK=/usr/lib/wine:/usr/lib/valgrind
PRELINK_PATH=""
During first prelinking it print such messages:

Code: Select all

prelink: /usr/lib/transgaming_cedega/winex/bin/wine: Could not find one of the dependencies
So I modified 60prelink:

Code: Select all

PRELINK_PATH_MASK=/usr/lib/wine:/usr/lib/valgrind:/usr/lib/transgaming_cedega/winex/bin
PRELINK_PATH=""
Afterwards I typed env-update and in /etc/prelink.conf was automaticly added this line:

Code: Select all

-b /usr/lib/transgaming_cedega/winex/bin
Look what you have in 60prelink and whether prelink.conf will be changed after env-update.
Top
simondo42
n00b
n00b
Posts: 42
Joined: Mon Nov 22, 2004 10:42 pm
Location: Dunedin, New Zealand

  • Quote

Post by simondo42 » Mon Feb 14, 2005 7:06 pm

radfoj: From what I've been able to tell, many of the files in the /etc/env.d directory have a LDPATH= entry in them which env-update uses to create the ld.so.conf and prelink.conf files. I'm running on ~x86, and many of the files list the same directories in the LDPATH lines. I think that's why you end up with duplicates in the prelink.conf. I'm not really game to start messing with these files too much, but I do add in the Ximian-OpenOffice and Firefox-bin installations so that they get prelinked as well :).

simon
Top
radfoj
Guru
Guru
User avatar
Posts: 490
Joined: Fri Dec 31, 2004 12:02 pm
Location: Tísek, Czech Republic
Contact:
Contact radfoj
Website

  • Quote

Post by radfoj » Mon Feb 14, 2005 8:33 pm

simondo42 wrote:radfoj:..... I think that's why you end up with duplicates in the prelink.conf.
It was not my case. I never had any duplicates. I was only answering to these people, who tried comment some lines in prelink.conf and after this they prelinked succesfully. .... I am only afraid, that they will have duplicates there again in near future after next env-update. Yes, probably due something wrong in /etc/env.d. And their next prelink - maybe from cron - will not work.
Top
simondo42
n00b
n00b
Posts: 42
Joined: Mon Nov 22, 2004 10:42 pm
Location: Dunedin, New Zealand

  • Quote

Post by simondo42 » Mon Feb 14, 2005 8:40 pm

radfoj: I agree -- unless a script is prepended to remove the duplicate entries in prelink.conf at the beginning of the cron job, prelink will fail. I personally just manually edit the prelink.conf file whenever I run prelink, which I do whenever I install something which I use a lot or other packages depend on. Irritating, but ultimately not a major issue.

Cheers,
simon
Top
Mikos
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 91
Joined: Wed Feb 04, 2004 1:04 pm
Location: Prague, Czech Republic
Contact:
Contact Mikos
Website

  • Quote

Post by Mikos » Mon Feb 14, 2005 9:00 pm

I am sorry to say that, but this HOWTO is completely wrong... The "trick" to prelink against binary NVidia drivers by temporarily switching to xorg-x11 opengl implementation doesn't work in reality. Because if you switch back to NVidia opengl implementation, your OpenGL applications will be using non-prelinked libraries, so you gain nothing.

But nevertheless this is non-issue, because new versions of qt and kde can be prelinked even if you are using NVidia opengl:
To the best of my knowledge, Qt >= 3.3.0 offers a configure option (--dlopen-opengl) that removes its hard-wired dependency on libGL (which is then loaded on demand); this allows you to prelink Qt/KDE applications even with the NVIDIA driver present on your system.
o Athlon-XP 2600+ (512kB cache), 512MB DDR400 RAM, GeForce FX-5600 128MB
o using Arch Linux now, but still love Gentoo ;-)
Top
Post Reply

137 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic