Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
im installing expect on lfs and configure go well, bat make return errors and make check shows 15passes 11failed. Does anybody expirienced similar issue and what could go wrong if i continue compiling other packages.
thanks
make check output
Code:
(echo 'if {![package vsatisfies [package provide Tcl] 8.6]} {return}' ; \
echo 'package ifneeded Expect 5.45 \[list load [file join $dir libexpect5.45.so]]'\
) > pkgIndex.tcl
TCL_LIBRARY=`echo /mnt/lfs/sources/tcl8.6.4/library` LD_LIBRARY_PATH=".:/tools/lib:" PATH=".:/tools/lib:/tools/bin:/bin:/usr/bin" TCLLIBPATH="." /tools/bin/tclsh8.6 `echo ./tests/all.tcl`
cat.test
expect.test
==== expect-1.4 glob pattern FAILED
==== Contents of test case:
expect "*"
exp_send "a\r"
set timeout 10
set x 0
expect "a" {set x 1}
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expect: spawn id exp6 not open
while executing
"expect "*""
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== expect-1.4 FAILED
==== expect-1.5 glob pattern buffering FAILED
==== Contents of test case:
expect "*"
exp_send "a\r"
set timeout 10
set x 0
expect "*" {set x 1}
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expect: spawn id exp6 not open
while executing
"expect "*""
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== expect-1.5 FAILED
==== expect-1.6 glob buffer FAILED
==== Contents of test case:
expect "*"
exp_send "philosophic\r"
set timeout 10
set x 0
expect "hi"
set x [string match *phi $expect_out(buffer)]
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expect: spawn id exp6 not open
while executing
"expect "*""
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== expect-1.6 FAILED
==== expect-1.7 glob string FAILED
==== Contents of test case:
expect "*"
exp_send "philosophic\r"
set timeout 10
set x 0
expect "hi"
set expect_out(0,string)
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expect: spawn id exp6 not open
while executing
"expect "*""
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== expect-1.7 FAILED
==== expect-1.10 re pattern, gate keeping FAILED
==== Contents of test case:
expect "*"
exp_stty raw < $spawn_out(slave,name)
exp_send "\rats-sw-8>show clock"
#exp_internal 1
set timeout 10
set x 0
expect -re {(.*)show clock$} {set x 1}
#exp_internal 0
exp_stty -raw < $spawn_out(slave,name)
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expect: spawn id exp6 not open
while executing
"expect "*""
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== expect-1.10 FAILED
couldn't open /dev/pts/1: no such file or directory
==== expect-1.11 re pattern, gate keeping FAILED
==== Contents of test case:
exp_stty raw < $spawn_out(slave,name)
expect "*"
exp_send "enable"
#exp_internal 1
set timeout 10
set x 0
expect -re {(.*)enable$} {set x 1}
exp_stty -raw < $spawn_out(slave,name)
#exp_internal 0
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo:
while executing
"exp_stty raw < $spawn_out(slave,name)"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ENOENT {no such file or directory}
==== expect-1.11 FAILED
couldn't open /dev/pts/1: no such file or directory
==== expect-1.12 re pattern, gate keeping FAILED
==== Contents of test case:
exp_stty raw < $spawn_out(slave,name)
expect "*"
exp_send "sh clock"
#exp_internal 1
set timeout 10
set x 0
expect -re {(.*)sh clock$} {set x 1}
exp_stty -raw < $spawn_out(slave,name)
#exp_internal 0
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo:
while executing
"exp_stty raw < $spawn_out(slave,name)"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ENOENT {no such file or directory}
==== expect-1.12 FAILED
couldn't open /dev/pts/1: no such file or directory
==== expect-1.13 re pattern, gate keeping FAILED
==== Contents of test case:
exp_stty raw < $spawn_out(slave,name)
expect "*"
exp_send "Password: "
#exp_internal 1
set timeout 10
set x 0
expect -re {^.*Password: ?$} {set x 1}
exp_stty -raw < $spawn_out(slave,name)
#exp_internal 0
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo:
while executing
"exp_stty raw < $spawn_out(slave,name)"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ENOENT {no such file or directory}
==== expect-1.13 FAILED
spawn_id: spawn id exp6 not open
logfile.test
via sendvia send_uservia send_stdoutvia send_ttypid.test
send.test
==== send-1.1 basic send operation FAILED
==== Contents of test case:
spawn cat
after 1000
send "foo\r"
expect foo
after 1000
send "\u0004"
expect eof
regexp "\r\nfoo\r\n" $expect_out(buffer)
---- Result was:
0
---- Result should have been (exact matching):
1
==== send-1.1 FAILED
==== send-1.2 send null FAILED
==== Contents of test case:
spawn od -c
send "a\u0000b\r"
after 1000
send \u0004
expect eof
regexp "a \\\\0 b" $expect_out(buffer)
---- Result was:
0
---- Result should have been (exact matching):
1
==== send-1.2 FAILED
spawn.test
==== spawn-1.4 spawn open file FAILED
==== Contents of test case:
set x 0
set y 0
set file [open /tmp/[pid] w]
puts $file "testing expect's spawn -open"
exp_close $file
set pid [exp_spawn -open [open /tmp/[pid]]]
expect "testing expect's spawn -open" {set x 1}
expect eof {set y 1}
exec rm /tmp/[pid]
exp_wait
list $x $y $pid
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: child killed: segmentation violation
while executing
"exec rm /tmp/[pid]"
("uplevel" body line 11)
invoked from within
"uplevel 1 $script"
---- errorCode: CHILDKILLED 11593 SIGSEGV {segmentation violation}
==== spawn-1.4 FAILED
stty.test
all.tcl: Total 26 Passed 15 Skipped 0 Failed 11
Sourced 0 Test Files.
Files with failing tests: logfile.test send.test spawn.test
i realize that i dont know how to uninstall package from system. i now make clean but how to removit from filesystem /bin /lib completly uninstall is there any way to do this.
So i now installed expect or any other package and i wont removit completly from filesistem so that system is let say clean from previous installation.
i will prichiate this
Last edited by end; 08-31-2016 at 02:39 PM.
Reason: update
You don't need to uninstall anything related to lfs.
Some packages do provide make uninstall, but I wouldn't say it's really reliable. LFS doesn't employ any package manager, so you're up on your own to track the package contents and remove them the way you see fit.
at the end of chapter 5, i reinstalled expect two times, first time with same test failures, but second time i got only two errors not pass.i will continue with that.
i needed delete untared dir, and /tools/bin/expect, and start over but it works in my case only when i finished all soft at chapter5.
Last edited by end; 09-04-2016 at 12:04 PM.
Reason: up
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.