LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-31-2016, 01:44 PM   #1
end
Member
 
Registered: Aug 2016
Posts: 266

Rep: Reputation: Disabled
Expect5.45 lfs7.9


hi,

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
 
Old 08-31-2016, 02:22 PM   #2
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
I don't think anyone ran the tests in chapter 5 recently. I'd say skip it (the test suite) and move along.
 
1 members found this post helpful.
Old 08-31-2016, 02:36 PM   #3
end
Member
 
Registered: Aug 2016
Posts: 266

Original Poster
Rep: Reputation: Disabled
thanks krejzi.

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
 
Old 08-31-2016, 02:38 PM   #4
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 08-31-2016, 02:46 PM   #5
end
Member
 
Registered: Aug 2016
Posts: 266

Original Poster
Rep: Reputation: Disabled
re

thanks, i was affraid of that. thanks man
 
Old 09-04-2016, 11:59 AM   #6
end
Member
 
Registered: Aug 2016
Posts: 266

Original Poster
Rep: Reputation: Disabled
re

forgot to post my solution

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
 
  


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
Need help installing rtl8192SU LFS7.2 EDDY1 Linux From Scratch 8 01-23-2013 01:17 AM
[SOLVED] About booting of LFS7.2 swatch Linux From Scratch 22 12-10-2012 08:41 PM
About booting of LFS7.2 swatch Linux From Scratch 1 12-07-2012 06:47 AM

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

All times are GMT -5. The time now is 12:28 PM.

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