aMSN Forums
May 20, 2019, 12:20:34 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Tcl/Tk won't find TLS  (Read 13982 times)
rowanparker
Super Power User
**
Offline Offline

Posts: 235



View Profile WWW
« on: April 29, 2007, 01:28:45 am »

Hi,
Just spent half an hour reading everything on the first page after searching for "tls".

I installed latest tcl/tk using cvs, compiled, used that to compile amsn.
Now I get asked about tls, I have it in the plugins folder AND /usr/lib.

In both of the pkgIndex.tcl files I have added the extra '0':
Code:
rowan@hal ~ $ cat /usr/lib/tls1.50/pkgIndex.tcl
###<snip>###
package ifneeded tls 1.50 "[list load [file join $dir .. libtls1.50.so] ] ; [list source [file join $dir tls.tcl] ]"


I run this:
Code:
rowan@hal ~ $ tclsh
% package require tls
can't find package tls


It's defo there:
Code:
rowan@hal ~ $ ls /usr/lib/tls1.50
libtls-1.50.so  pkgIndex.tcl  tls.tcl



Any ideas before I go back to tcl/tk 8.4 ?

Thanks, Rowan.
Logged

kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #1 on: April 29, 2007, 04:51:38 am »

Hi,
this should be obvious :
Code:

rowan@hal ~ $ cat /usr/lib/tls1.50/pkgIndex.tcl
###<snip>###
 package ifneeded tls 1.50 "[list load [file join $dir .. libtls1.50.so] ] ; [list source [file join $dir tls.tcl] ]"

and
Code:
rowan@hal ~ $ ls /usr/lib/tls1.50
libtls-1.50.so  pkgIndex.tcl  tls.tcl

as you can see, the pkgIndex.tcl tries to load "$dir/../libtls1.50.so" which would be /usr/lib/tls1.50/../libtls1.50.so which is /usr/lib/libtls1.50.so but the file is in /usr/lib/tls1.50/libtls-1.50.so
so you would need to remove the '..' from the [file join] in pkgIndex.tcl and add the dash to change libtls1.50.so into libtls-1.50.so
or check that the file exists (maybe as a symlink).
Obviously, your tls installation was badly done, I don't remember which distro had that, but there's a bad package out there.
you could also try doing the 'load' and 'source' manually to see if anything is wrong. or do a 'ldd' on libtls to see if any dependency is missing.. and lastly, try to delete the one in plugins, it might cause a version conflict.
Logged

KaKaRoTo
rowanparker
Super Power User
**
Offline Offline

Posts: 235



View Profile WWW
« Reply #2 on: April 29, 2007, 11:03:18 am »

I changed the pkgIndex.tcl file as you said.
I also removed the version in the plugins folder.

I try to load manually:
Code:
rowan@hal ~ $ tclsh
% load /usr/lib/tls1.50/libtls-1.50.so
couldn't load file "/usr/lib/tls1.50/libtls-1.50.so": /usr/lib/tls1.50/libtls-1.50.so: undefined symbol: tclStubsPtr


It worked before I tried to use Tcl/Tk 8.5.
I've now compiled with 8.4 and I can login again.
Logged

kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #3 on: April 29, 2007, 07:33:06 pm »

yeah, tls should be compiled for tcl/tk 8.5 so you probably need to recompile it.
Logged

KaKaRoTo
rowanparker
Super Power User
**
Offline Offline

Posts: 235



View Profile WWW
« Reply #4 on: April 29, 2007, 10:36:13 pm »

Quote from: "kakaroto"
yeah, tls should be compiled for tcl/tk 8.5 so you probably need to recompile it.


I never did compile it.

I'll try it.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!