[gentoo-user] Adding a dir to ldcache

2004-01-09 Thread David Gethings
Hi,

I'm using prelink. Everytime I update prelink I get a number of messages
like the following:

prelink: /usr/lib/MozillaFirebird/timebombgen: Could not parse
`/usr/lib/MozillaFirebird/timebombgen: error while loading shared
libraries: libxpcom.so: cannot open shared object file: No such file or
directory'

Obviously the problem here is that the lib libxpcom.so could not be
found by the prelinker. A quick locate shows that it is in:
/usr/lib/MozillaFirebird/ which iirc is not in the LDPATH so won't be in
the cache.

My question is how do I add this dir to the ldcache?
More over shouldn't the ebuild do this for me?
If so I'll raise a bug for Firebird.

Cheers

-- 
Dg


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Adding a dir to ldcache

2004-01-09 Thread Kim Ingemann
On Fri, 2004-01-09 at 10:57, David Gethings wrote:
 My question is how do I add this dir to the ldcache?

You can add directories to ldcache by changing /etc/ld.so.conf and
running ldconfig afterwards.

-- 
Med venlig hilsen / Best regards,

Kim Ingemann
http://pingvinland.dk/


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] Adding a dir to ldcache

2004-01-09 Thread David Gethings
On Fri, 2004-01-09 at 10:32, Kim Ingemann wrote:
 You can add directories to ldcache by changing /etc/ld.so.conf and
 running ldconfig afterwards.
Well I checked /etc/ld.so.conf and it said:

# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory

so I went to /etc/env.d but wasn't how safe it was to edit these files.

Anyway I read the ENV.d documentation on the Gentoo website. It appears
that it is safe to edit these files. Then all you have to do is run
env-update. ld.so.conf is updated and won't get over written the next
time you emerge a package!

Cheers anyway.

-- 
Dg


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Adding a dir to ldcache

2004-01-09 Thread Joshua Banks

--- Kim Ingemann [EMAIL PROTECTED] wrote:
 On Fri, 2004-01-09 at 10:57, David Gethings wrote:
  My question is how do I add this dir to the ldcache?
 
 You can add directories to ldcache by changing /etc/ld.so.conf and
 running ldconfig afterwards.
 

What does ldconfig do. Or whats its purpose and what kind of
ramifications does it have.

Not trying to HiJack your thread but I'm curious. I was installing a
stage 2 tarball and got upto the point where I do:
emerge -u system
This would run and then I would get and error when autoconf-2.57-r1
was trying to compile complaining that it needed Perl and I was
basically stuck. One suggestion was:
# ldconfig
# env-update
#source /etc/profile

What does this do? 

What ever it does  I couldn't understand from man ldconfig. Plus it
didn't solve my problem. Still got the same error when retrying system
-u update
Finally I just did what I thought was logical and emerged perl. This
seems to have worked so far. I'm still compiling 80 some packages from
system -u update still. 

Thanks,
JBanks


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Adding a dir to ldcache

2004-01-09 Thread Bill Roberts
On 09:57 Fri 09 Jan , David Gethings wrote:
 I'm using prelink. Everytime I update prelink I get a number of messages
 like the following:
 
 prelink: /usr/lib/MozillaFirebird/timebombgen: Could not parse
 `/usr/lib/MozillaFirebird/timebombgen: error while loading shared
 libraries: libxpcom.so: cannot open shared object file: No such file or
 directory'
 
 Obviously the problem here is that the lib libxpcom.so could not be
 found by the prelinker. A quick locate shows that it is in:
 /usr/lib/MozillaFirebird/ which iirc is not in the LDPATH so won't be in
 the cache.
 
 My question is how do I add this dir to the ldcache?
 More over shouldn't the ebuild do this for me?
 If so I'll raise a bug for Firebird.

MozillaFirebird and certain libraries will not prelink. Don't
really know the issues involved. There is some info in
http://www.gentoo.org/doc/en/prelink-howto.xml
-- 
Bill Roberts

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Adding a dir to ldcache

2004-01-09 Thread Kim Ingemann
On Fri, 2004-01-09 at 11:36, David Gethings wrote:
 On Fri, 2004-01-09 at 10:32, Kim Ingemann wrote:
  You can add directories to ldcache by changing /etc/ld.so.conf and
  running ldconfig afterwards.
 Well I checked /etc/ld.so.conf and it said:
 
 # ld.so.conf autogenerated by env-update; make all changes to
 # contents of /etc/env.d directory
 
 so I went to /etc/env.d but wasn't how safe it was to edit these files.
 
 Anyway I read the ENV.d documentation on the Gentoo website. It appears
 that it is safe to edit these files. Then all you have to do is run
 env-update. ld.so.conf is updated and won't get over written the next
 time you emerge a package!

That is sweet.

I didn't know that - but of course, I just only started using the Gentoo
distribution for around two weeks ago, so I haven't really got around
with all the changes from the other distributions I've played with (for
about 8 years).

-- 
Med venlig hilsen / Best regards,

Kim Ingemann
http://pingvinland.dk/


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] Adding a dir to ldcache

2004-01-09 Thread David Gethings
On Fri, 2004-01-09 at 10:52, Bill Roberts wrote:
 MozillaFirebird and certain libraries will not prelink. Don't
 really know the issues involved. There is some info in
 http://www.gentoo.org/doc/en/prelink-howto.xml
I saw nothing specific about MozillaFirebird in that how-to. However it
did remind me of the /etc/prelink.conf file.

It would appear that the prelink.conf file is updated by the prelink
binary when a lib dir is added or removed. So it would appear that the
best place to add such lib dirs is in /etc/env.d/

Cheers

-- 
Dg


--
[EMAIL PROTECTED] mailing list