LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-05-2017, 05:19 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
BLFSS 8.0 stable: TCL fails to compile


TCL, the same version that compiles in chapter five of LFS, fails to compile in my BLFS (version 8.0, stable).

The output is too huge to post. Posting only the last few lines:
Quote:
ION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_MKSTEMPS=1 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1 -DHAVE_CPUID=1 /blfs_compile/tcl8.6.6/unix/tclAppInit.c
gcc -O2 -pipe -m64 -Wl,--export-dynamic tclAppInit.o \
-L/blfs_compile/tcl8.6.6/unix -ltcl8.6 libtclstub8.6.a -ldl -lz -lpthread -lieee -lm \
-Wl,-rpath,/usr/lib -o tclsh
begin sed 1
begin sed 2
sed: can't read pkgs/tdbc1.0.4/tdbcConfig.sh: No such file or directory
root@artemis:# pwd
/blfs_compile
root@artemis:#
How I (attempt to) compile (I've done this so many times that it is now a script):
Code:
#!/bin/bash
tar -xvpf /sources/tcl-core8.6.6-src.tar.gz || exit
cd tcl8.6.6 || exit

 export SRCDIR=`pwd` &&

 cd unix &&

./configure --prefix=/usr           \
            --mandir=/usr/share/man \
            $([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
make &&

echo " begin sed 1 " &&

sed -e "s#$SRCDIR/unix#/usr/lib#" \
    -e "s#$SRCDIR#/usr/include#"  \
    -i tclConfig.sh               &&

echo "begin sed 2 " &&

sed -e "s#$SRCDIR/unix/pkgs/tdbc1.0.4#/usr/lib/tdbc1.0.4#" \
    -e "s#$SRCDIR/pkgs/tdbc1.0.4/generic#/usr/include#"    \
    -e "s#$SRCDIR/pkgs/tdbc1.0.4/library#/usr/lib/tcl8.6#" \
    -e "s#$SRCDIR/pkgs/tdbc1.0.4#/usr/include#"            \
    -i pkgs/tdbc1.0.4/tdbcConfig.sh                        &&

echo "begin sed 3 " &&

sed -e "s#$SRCDIR/unix/pkgs/itcl4.0.5#/usr/lib/itcl4.0.5#" \
    -e "s#$SRCDIR/pkgs/itcl4.0.5/generic#/usr/include#"    \
    -e "s#$SRCDIR/pkgs/itcl4.0.5#/usr/include#"            \
    -i pkgs/itcl4.0.5/itclConfig.sh              

# unset SRCDIR

#   To test the results, issue: make test.
I've no idea. Startpage and google both failed. Can I have a clue please?

p.s. The above script (aside from the echo lines I added is how the book does it) refers to a "itcl4.0.5" directory yet this is version 8.6.6.

p.p.s. The way it is compiled in ch 5 of lfs does not perform any seds, so the problem is avoided. Hmm.
 
Old 05-05-2017, 05:33 PM   #2
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
The TCL covered in BLFS is the full TCL package. The one used in LFS is called TCL Core, because it is different, try using the one on from download the link in the BLFS book. Given that its an interpreter, I suspect the difference is that "core" doesn't include a full standard library and is less to download and compile.

Last edited by Luridis; 05-05-2017 at 05:36 PM.
 
Old 05-05-2017, 08:12 PM   #3
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
Ohhhhhhhhhhhhhhhhhhh. Two different packages. D'oh!

Thank you very much. After getting the correct package, compilation and install went fine.
 
Old 05-06-2017, 10:14 AM   #4
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
It's easy to miss. Also, there are some things customized for LFS that won't work if you download them direct from upstream. Patches for one, and some of the packages shown as coming from anduin.linuxfromscrach.org are customized by the LFS developers. If something doesn't work, double check it's md5sum.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.config file to compile of 4.5.5 Kernel on Stable Debian? Xeratul Debian 15 06-16-2016 04:00 PM
NS2.29.3 TCL script compile errors iamusbah Linux - Newbie 1 03-27-2012 04:20 AM
GCC fails to compile - Chapter 6.14 - C preprocessor "/lib/cpp" fails sanity check jaydoc Linux From Scratch 1 01-28-2009 05:17 PM
Trying to compile tile, can't find tcl configuration... quincy_the_penquin Linux - Software 4 04-25-2007 09:32 PM
Problems to compile the latest stable version of kernel (2.6.15.4) stomach Linux - General 3 02-24-2006 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration