LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-24-2010, 09:31 AM   #1
brand3389
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Rep: Reputation: 0
libtcl repo differs from libtcl manually built


I have a program written in 'C' which executes a tcl/expect script. The system(Debian 64-bit Lenny) I'm running was installed with tcl 8.4.19-2, and expect 5.43. When the tcl script is ending it calls 'close', then 'wait -nowait'. At this point my 'c' program aborts with the following stack trace listed below. However, if I build libtcl from the source on a debian 64-bit lenny, then it works fine. I need to know why this is happening? Thanks

/lib/libc.so.6(gsignal+0x35)[0x7f3a224e0ed5]
/lib/libc.so.6(abort+0x183)[0x7f3a224e23f3]
/usr/lib/libtcl8.4.so.0[0x7f3a2161cb5e]
/usr/lib/libtcl8.4.so.0(Tcl_Panic+0x8d)[0x7f3a2161cbed]
/usr/lib/libtcl8.4.so.0(Tcl_CutChannel+0x53)[0x7f3a21605e23]
/usr/lib/libtcl8.4.so.0[0x7f3a21605c39]
/usr/lib/libtcl8.4.so.0[0x7f3a21605b21]
/usr/lib/libtcl8.4.so.0(Tcl_Close+0xf0)[0x7f3a21606040]
/usr/lib/libtcl8.4.so.0(Tcl_UnregisterChannel+0xdf)[0x7f3a21604e0f]
/usr/lib/libexpect.so.5.43.0[0x7f3a2137ed93]
/usr/lib/libtcl8.4.so.0(TclInvokeStringCommand+0x77)[0x7f3a215ceb57]
/usr/lib/libtcl8.4.so.0(TclEvalObjvInternal+0x2f6)[0x7f3a215cfcc6]
/usr/lib/libtcl8.4.so.0[0x7f3a215f6b92]
/usr/lib/libtcl8.4.so.0(TclCompEvalObj+0x9e)[0x7f3a215f4dde]
/usr/lib/libtcl8.4.so.0(TclObjInterpProc+0x202)[0x7f3a216249f2]
/usr/lib/libtcl8.4.so.0(TclEvalObjvInternal+0x2f6)[0x7f3a215cfcc6]
/usr/lib/libtcl8.4.so.0(Tcl_EvalEx+0x39d)[0x7f3a215d085d]
/usr/lib/libtcl8.4.so.0(Tcl_Eval+0x15)[0x7f3a215d0a55]
 
Old 04-25-2010, 07:28 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Is the source file the same version or newer?
Also, prebuilt packages are not optimized for individual machines. Using
Code:
./configure --help
will always give you more options than the default.
 
Old 04-26-2010, 06:21 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
.. And Debian adds patches 1) [tcl8.4_8.4.19-2.diff.gz]
http://packages.debian.org/lenny/tcl8.4

2...6
ls debian/patches/
manpages.diff non-linux.diff rpath.diff
tclinc.diff tcllibrary.diff tclpackagepath.diff

The used configure options: --enable-shared --enable-threads
( See the file rules ).

And : Tcl compiled on different ( almost identical ) computers
may sometimes behave different. I have no idea why .....
..

Last edited by knudfl; 04-26-2010 at 06:30 AM.
 
Old 04-26-2010, 08:00 AM   #4
brand3389
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Original Poster
Rep: Reputation: 0
This is Debian 64-bit platform.

I'm now using the expect-tcl8.3 package and all is working.
This is a better solution than building the package myself,
but not sure what side-effects of going to an older version will be.
Does anyone see a problem with having to revert back to tcl 8.3.
I saw reference somewhere that this is the solution to some sort
of fork/thead problem in 8.4?
Thanks
 
Old 05-05-2010, 07:06 AM   #5
brand3389
LQ Newbie
 
Registered: Apr 2010
Posts: 3

Original Poster
Rep: Reputation: 0
This was resolved by reverting to the expect-tcl8.3 package
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Preventing aptitude installing a package that I have built manually Simon Fisher Debian 3 06-30-2006 05:48 AM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 04:49 PM
rpm cant find libtcl or libtk but there is libtcl8.* arkamir Linux - Software 1 12-19-2003 04:13 PM
libtcl.so.0 libtk.so.0 are present but not detected aseedb Linux - Newbie 6 12-15-2003 11:47 AM
Help finding libtcl.so.0 Lotmr Linux - Software 7 12-12-2003 08:52 AM


All times are GMT -5. The time now is 06:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration