Discussion:
[lfs-support] LFS 8.1 rc-1. eudev: a suggestion
Hazel Russman
2018-02-24 13:56:30 UTC
Permalink
Most of the commands in this section have a prefix setting LD_LIBRARY_PATH to /tools/lib but the reason for this is not explained anywhere. May I suggest a brief explanation like:

LD_LIBRARY_PATH=/tools/lib: this allows the use of the blkid library installed in chapter 5 as part of util-linux.
--
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/w
William Harrington
2018-02-24 16:12:56 UTC
Permalink
On Sat, 24 Feb 2018 13:56:30 +0000
Post by Hazel Russman
LD_LIBRARY_PATH=/tools/lib: this allows the use of the blkid library installed in chapter 5 as part of util-linux.
--
--
Or even at the start of building LFS:
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

3.3.1. LD_LIBRARY_PATH
You can temporarily substitute a different library for this particular execution. In Linux, the environment variable LD_LIBRARY_PATH is a colon-separated set of directories where libraries should be searched for first, before the standard set of directories; this is useful when debugging a new library or using a nonstandard library for special purposes. The environment variable LD_PRELOAD lists shared libraries with functions that override the standard set, just as /etc/ld.so.preload does. These are implemented by the loader /lib/ld-linux.so. I should note that, while LD_LIBRARY_PATH works on many Unix-like systems, it doesn't work on all; for example, this functionality is available on HP-UX but as the environment variable SHLIB_PATH, and on AIX this functionality is through the variable LIBPATH (with the same syntax, a colon-separated list).

LD_LIBRARY_PATH is handy for development and testing, but shouldn't be modified by an installation process for normal use by normal users; see ``Why LD_LIBRARY_PATH is Bad'' at http://www.visi.com/~barr/ldpath.html for an explanation of why. But it's still useful for development or testing, and for working around problems that can't be worked around otherwise. If you don't want to set the LD_LIBRARY_PATH environment variable, on Linux you can even invoke the program loader directly and pass it arguments. For example, the following will use the given PATH instead of the content of the environment variable LD_LIBRARY_PATH, and run the given executable:
/lib/ld-linux.so.2 --library-path PATH EXECUTABLE
Just executing ld-linux.so without arguments will give you more help on using this, but again, don't use this for normal use - these are all intended for debugging.
Post by Hazel Russman
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style
--
Berzerkula <***@berzerkula.org>
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-m
Bruce Dubbs
2018-02-24 16:32:33 UTC
Permalink
Post by William Harrington
On Sat, 24 Feb 2018 13:56:30 +0000
Post by Hazel Russman
LD_LIBRARY_PATH=/tools/lib: this allows the use of the blkid library installed in chapter 5 as part of util-linux.
--
--
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
3.3.1. LD_LIBRARY_PATH
You can temporarily substitute a different library for this particular execution. In Linux, the environment variable LD_LIBRARY_PATH is a colon-separated set of directories where libraries should be searched for first, before the standard set of directories; this is useful when debugging a new library or using a nonstandard library for special purposes. The environment variable LD_PRELOAD lists shared libraries with functions that override the standard set, just as /etc/ld.so.preload does. These are implemented by the loader /lib/ld-linux.so. I should note that, while LD_LIBRARY_PATH works on many Unix-like systems, it doesn't work on all; for example, this functionality is available on HP-UX but as the environment variable SHLIB_PATH, and on AIX this functionality is through the variable LIBPATH (with the same syntax, a colon-separated list).
/lib/ld-linux.so.2 --library-path PATH EXECUTABLE
Just executing ld-linux.so without arguments will give you more help on using this, but again, don't use this for normal use - these are all intended for debugging.
It really helps if these suggestions are done in tickets so they don't get
forgotten if we don't get to them right away.

I created ticket http://wiki.linuxfromscratch.org/lfs/ticket/4224 for this
issue.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.w
Hazel Russman
2018-02-24 16:42:53 UTC
Permalink
On Sat, 24 Feb 2018 10:32:33 -0600
Post by Bruce Dubbs
Post by William Harrington
On Sat, 24 Feb 2018 13:56:30 +0000
Post by Hazel Russman
LD_LIBRARY_PATH=/tools/lib: this allows the use of the blkid library installed in chapter 5 as part of util-linux.
--
--
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
It really helps if these suggestions are done in tickets so they don't get
forgotten if we don't get to them right away.
I created ticket http://wiki.linuxfromscratch.org/lfs/ticket/4224 for this
issue.
-- Bruce
How do I create a ticket? Is there a HOWTO somewhere?
--
Hazel
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mai
Bruce Dubbs
2018-02-24 16:53:32 UTC
Permalink
Post by Hazel Russman
On Sat, 24 Feb 2018 10:32:33 -0600
Post by Bruce Dubbs
Post by William Harrington
On Sat, 24 Feb 2018 13:56:30 +0000
Post by Hazel Russman
LD_LIBRARY_PATH=/tools/lib: this allows the use of the blkid library installed in chapter 5 as part of util-linux.
--
--
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
It really helps if these suggestions are done in tickets so they don't get
forgotten if we don't get to them right away.
I created ticket http://wiki.linuxfromscratch.org/lfs/ticket/4224 for this
issue.
How do I create a ticket? Is there a HOWTO somewhere?
Go to any ticket, for example the above url, and click on register. Then
tell me your handle and I'll give permissions (We don't want spam).

Note that lfs and blfs require separate registration.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en
Michael Shell
2018-02-26 06:01:29 UTC
Permalink
On Sat, 24 Feb 2018 10:12:56 -0600
Post by William Harrington
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
.
.
see ``Why LD_LIBRARY_PATH is Bad'' at http://www.visi.com/~barr/ldpath.html
for an explanation of why.
For those interested in that article by David Barr, the link to it no
longer works. However, it has been reposted to:

http://xahlee.info/UnixResource_dir/_/ldpath.html

The original is still archived here:

http://web.archive.org/web/20060719201954/http://www.visi.com/~barr/ldpath.html


Cheers,

Mike Shell
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org
Bruce Dubbs
2018-02-26 06:20:16 UTC
Permalink
Post by Michael Shell
On Sat, 24 Feb 2018 10:12:56 -0600
Post by William Harrington
http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html
.
.
see ``Why LD_LIBRARY_PATH is Bad'' at http://www.visi.com/~barr/ldpath.html
for an explanation of why.
For those interested in that article by David Barr, the link to it no
http://xahlee.info/UnixResource_dir/_/ldpath.html
http://web.archive.org/web/20060719201954/http://www.visi.com/~barr/ldpath.html
Mike, maybe you didn't look at how we use LD_LIBRARY_PATH. It is set as a
temporary variable for specific calls to build instructions in the lfs
chroot environment.

We have to tell the installing programs to look in /tools/lib because we
have not built and installed the needed libraries into /usr/lib yet.

That is really one of the intents of the variable: using temporary
libraries. It is not permanent.

-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/
Michael Shell
2018-02-27 09:50:08 UTC
Permalink
On Mon, 26 Feb 2018 00:20:16 -0600
Post by Bruce Dubbs
Mike, maybe you didn't look at how we use LD_LIBRARY_PATH. It is set as a
temporary variable for specific calls to build instructions in the lfs
chroot environment.
Bruce,

Yeah, my post really didn't have anything to do with LFS per say. The
article is a broader commentary about the way things are done in Unix.
He even comments on /etc/ld.so.conf:

: Half-hearted attempts to improve things
:
: Some OS's (For example, Linux) have a configurable loader. You can
: configure what run-time paths to look in by modifying /etc/ld.so.conf.
: This is almost as bad a LD_LIBRARY_PATH! Install scripts should never
: modify this file! This file should contain only the standard library
: locations as shipped with the OS.


He wants the linking framework itself to be changed to allow for
more customization at the individual application level.


Anyway, that site sure has a lot of interesting articles:

http://xahlee.info/comp/comp_index.html

There's a little bit of everything in there.


Cheers,

Mike
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia
Loading...