On 7/17/20 12:31 AM, Theodore Planinsek wrote:
Hello all,

I'm writing only after checking the FAQS and IRC sections on linuxfromscratch.org <http://linuxfromscratch.org>.

To that end,  I've ran into (and fixed?) an apparent missed dependency of Tcl-8.6.10.

The issue was tclsh was segfaulting after make (close attention was given to the LFS v. 9.1 book). I had found that it wasn't finding Zlib. To my understanding, Tcl must be linked against the shared libraries in the "temporary system" (/tools), hence the "--prefix=/tools" passed to configure. However configure was not finding Zlib / Zlib headers in the temp system, therefore no Zlib linking happened, which caused segfault during dlopen in glibc.

My fix was to install Zlib (1.2.11) in the "temporary system" and tell configure to use gcc that was compiled for the temp system, allowing configure to properly search and find Zlib / Zlib headers in the temp system.

Does anyone know if this is a solid approach? Or was my understanding correct? The book did not specify Zlib in the temporary system during chapter 5.

When building tcl in Chapter 5 you should see:

checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no

In gcc, you should see:

*** This configuration is not supported in the following subdirectories:
zlib gnattools gotools target-libada target-libhsail-rt target-libphobos target-zlib target-libbacktrace target-libgfortran target-libgo target-libffi target-libobjc target-liboffloadmic
    (Any other directories should still work fine.)

See the logs at http://www.linuxfromscratch.org/lfs/build-logs/9.1/

I think you are somehow getting the host system mixed up with the LFS tools.

  -- 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/wiki/Posting_style

Reply via email to