#858 closed defect (invalid)
chapter 5 build of bzip2 is dynamically linked and fails in chroot chapter 6
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | Book | Version: | 5.1.1 |
Severity: | normal | Keywords: | |
Cc: |
Description
Hi, This is my first bug report ever, so my apologies if it is low quality. I am building LFS 511 and the instructions for building bzip2 in chapter 5 resulted in a dynamically linked bzip2 ("file bzip2" says so). This results in bzcat failing when at the make devices step in chapter 6. I don't know how reproducable it is for others but I've recompiled several times and always got the dynamically linked bzip2. The solution I found was to build bzip2 with "make LDFLAGS=-static PREFIX=/tools install" but the LDFLAGS option is not in the LSF instructions. My base system is Debian Unstable if that helps. It seems to me that including the LDFLAGS as the default instructions in the book, even if unnecessary in most cases, adds a bit of certainty and can't really hurt. Anyway, I just wanted the LFS maintainers to be aware of this. Feel free to contact me if you need more info. Thanks for LFS, its great and I'm learning tons. Krys Wilken
Change History (4)
comment:1 by , 20 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 20 years ago
Hi Jim, Thanks for looking into this for me. However, the link you gave is exactly what I followed in the first place and it resulted in the dynamically linked bzip2. Perhaps you could explain why the LDFLAGS is no longer necessary. How does 'make' know to make it static if we don't tell it? Or does bzip2 not need to be statically linked because it's library is supposed to be in the chrooted envirement? If it's something I did wrong, I just want to understand what that is. If it's nothing I've done wrong then I'd like to understand what is supposed to happen so I can find out how my system is different. If you'd be willing to explain, then I'd appreciate it. Thanks again, Krys
comment:3 by , 20 years ago
The new build structure doesn't build it statically anymore. When you adjust the tool chain it should be using the correct linker.
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/adjusting.html
Still marked as invalid.
comment:4 by , 20 years ago
Hi Jim, Okay. Well, for whatever reason, it didn't, but the static bzip2 is fine for the temporary tools. Thanks for the info. It's appreciated. Krys
The current build does not require the LDFLAGS=-static, refer to this link http://www.linuxfromscratch.org/lfs/view/stable/chapter05/bzip2.html Marking as invalid.