aMSN Forums
September 20, 2018, 11:35:25 am *
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] 2 3
  Print  
Author Topic: Solved: aMSN keeps trying to download tls (and failing)  (Read 71185 times)
davef
Newbie

Offline Offline

Posts: 3


View Profile
« on: July 04, 2007, 07:22:18 pm »

Main point - try installing the tls1.5 package in /lib with tls 8.4

I installed aMSN 0.97rc1 and it refused to get beyond the opening login screen. It kept asking me to download tls.
When I said OK it failed to access the location.

I downloaded tls from sourceforge and un-tar-ed it in /usr/lib
As recommended in various posts in the forum I made two edits to pkgIndex.tcl
In:- package ifneeded tls 1.5 "[list load [file join $dir .. libtls1.50.so] ] ; etc.
1. I changed  tls 1.5 to tls 1.50 - i.e. added the 0
2. I changed $dir .. libtls to $dir libtls - i.e. removed the two dots
I renamed the /usr/lib/tsl1.5 folder to /usr/lib/tls1.50
in tclsh, running 'package require tls' now failed with :-
couldn't load file "/usr/lib/tls1.50/libtls1.50.so": libssl.so.0.9.7
I found I had /lib/libssl.so.0.9.7a so I linked it to /usr/lib/libssl.so.0.9.7
in tclsh, running 'package require tls' now failed with :-
couldn't load file "/usr/lib/tls1.50/libtls1.50.so": libcrypto.so.0.9.7:
Once again I had /lib/libcrypto.so.0.9.7a so I linked it to /usr/lib/libcrypto.so.0.9.7
Then I ran ldconfig - just to be on the safe side.
'Package require tls' in tclsh now loaded without error.
aMSN opened, logged in and fetched my buddy list.
I collapsed exhausted on the floor!
Mostly because it only ocured to me at this point, that if I had un-tar-ed the tls package in /lib - instead of /usr/lib it all might have worked first time.
Linux FC3
Tcl 8.4
Logged
Lekz
Newbie

Offline Offline

Posts: 1


View Profile
« Reply #1 on: July 17, 2007, 02:53:22 am »

I'm a Linux n00b (installed Xubuntu 6.10 Edgy yesterday 'cause I got tired of Windows XP), and I dunno what you did there.
I managed to change "tls 1.5" to "tls 1.50" and remove the dots, but after that, I'm completely lost..

Halp Please!  Sad
Logged
davef
Newbie

Offline Offline

Posts: 3


View Profile
« Reply #2 on: July 17, 2007, 10:18:33 am »

Hi Lekz
Obviously not that much of a n00b - to get that far!
So excuse me if I'm repeating the obvious.

aMSN is written in a programming language called tcl using the tk toolkit - ie tcl/tk.
It saves a lot of messing around if you use the tcl interpreter to get the tls module installed.

I've only tried Ubuntu once - ages ago, so I'm a bit vague on the details - probably the last thing you need - sorry!

You will need a 'root shell' or a 'root terminal' - a command line interface that has a '#' prompt - I think you use sudo
(You've probably found this to do the editing you've already done)

When you get a terminal window with the '#' prompt, you need to type (followed by ENTER) :-
tclsh

This will get you a different prompt, probably '%' but YMMV
At this new prompt, type (followed by ENTER):-
package require tls

If it goes away and returns to the tcl prompt without comment - then everything is working
If it gives you an error message - then that's the (first) problem that has to be fixed.

Let me know what it says

To leave tclsh and return to the 'root terminal' '#' prompt
type (followed by ENTER):-
exit

David
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #3 on: July 17, 2007, 12:07:49 pm »

@Lekz, you're using ubuntu so you just need to do :
Code:
sudo apt-get install tcltls

and you're done, it should work right there.

@davef, thanks for all the details and taking the time to try and help others in the same situation as you.
Indeed the problem might be that the libraries tls depends on are not the ones installed on the system. We had tls linked against lisll0.9.7 because that's what was available at the time ,but now other versions are out and many people start using them...
We'll probably create a libtls tarball with statically linked ssl in it so it doesn't depend on anything anymore.
Logged

KaKaRoTo
davef
Newbie

Offline Offline

Posts: 3


View Profile
« Reply #4 on: July 17, 2007, 12:50:24 pm »

Thanks for your input Kakaroto - a library tar-ball would certainly make it a lot easier to get aMSN up and running!
David
Logged
pompeyrodney
Newbie

Offline Offline

Posts: 2


View Profile
« Reply #5 on: August 18, 2007, 10:47:23 pm »

This is what I get at a terminal
julian@feisty:~$ sudo apt-get install tcltls
Reading package lists... Done
Building dependency tree
Reading state information... Done
tcltls is already the newest version.
tcltls set to manual installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
julian@feisty:~$ tclsh
% package require tls
attempt to provide package tls 1.5 failed: package tls 1.50 provided instead

Help
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #6 on: August 19, 2007, 12:31:14 am »

Quote
attempt to provide package tls 1.5 failed: package tls 1.50 provided instead

It works, it's just a warning, not an error, tls package is installed and is loaded correctly, you shouldn't have any problems.
Logged

KaKaRoTo
pompeyrodney
Newbie

Offline Offline

Posts: 2


View Profile
« Reply #7 on: August 19, 2007, 08:58:12 am »

You are correct my friend it works, thanks a lot.
Logged
Dark
Newbie

Offline Offline

Posts: 3


View Profile
« Reply #8 on: August 20, 2007, 11:34:45 am »

I had the same problem with amsn not able to download tls so i did manually. But now it doesn't complain about tls but it segfaults when connecting.
Relevant data:

 ls -la /usr/lib/tls1.50/
total 123
drwxr-xr-x  2 root root     6 2007-08-19 22:49 .
drwxr-xr-x 99 root root  1492 2007-08-19 22:49 ..
-rwxr-xr-x  1 root root 37933 2007-08-19 22:49 libtls1.50.so
-rwxr-xr-x  1 root root   279 2007-08-19 22:49 pkgIndex.tcl
-rwxr-xr-x  1 root root  5289 2007-08-19 22:49 tls.tcl

package ifneeded tls 1.50 in pkgIndex.tcl

lrwxrwxrwx 1 root root 17 2007-08-19 22:49 /usr/local/lib/tls1.50 -> /usr/lib/tls1.50/

# tclsh
% package require tls
1.50
% exit
#

So, any ideas on how to debug/fix this?
Thanks
Oh, btw, I'm using slackware with tcl 8.4 and amsn is 0.97rc1
Logged
vivia
Administrator
Super Power User
*****
Offline Offline

Posts: 2464


View Profile
« Reply #9 on: August 21, 2007, 12:49:50 pm »

Oh well, we had another user with a strange segfault on Slackware which seemed to be caused by TLS... It surely does not come from aMSN, because I gave him a simple testcase in plain TCL where it just tried to fetch a plain https page, and it segfaulted. I have no idea what might cause this...
Logged
Dark
Newbie

Offline Offline

Posts: 3


View Profile
« Reply #10 on: August 21, 2007, 02:24:02 pm »

Well, that would be me.. This was the 1st place to ask for help.. Freenode was the 2nd Smiley.. Still no luck with amsn.
Logged
Dark
Newbie

Offline Offline

Posts: 3


View Profile
« Reply #11 on: August 23, 2007, 02:11:21 pm »

In case someone else has a similar problem, mine was solved with new tls library downloaded from http://www.amsn-project.net/~lephilousophe/tls-1.5.0-linux-x86.tar.gz

It rocks now Smiley

Thanks to Kakaroto, vivia and Le_Philousophe for the library!

Cheers
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #12 on: August 23, 2007, 09:57:13 pm »

mainly it was lephilousophe who created the lib Smiley
thx
Logged

KaKaRoTo
Phil
Administrator
Super Power User
*****
Offline Offline

Posts: 653


View Profile
« Reply #13 on: August 25, 2007, 12:24:29 pm »

This link is now outdated as the package has been upload on Sourceforge : the downloader will grab the good version automatically...
Logged

Phil

AMsn is great, and it will be greater :wink:
mxl2003
Newbie

Offline Offline

Posts: 5


View Profile
« Reply #14 on: October 08, 2007, 12:56:38 pm »

I'm using Ubuntu Feisty, which I installed last week on a clean hard drive. Everything was running fine; aMSN detected the TLS module (tcltls) that was (and is) running on my system. All was fine until it updated itself this morning - now it will not detect/install the TLS module. If I try to install it automatically, it gives this error. So I downloaded the TLS module manually from SF, saved it in /usr/share/amsn (in addition to the module already installed on my system in /usr/lib), and set the prefs to point to that folder, however, it still will not detect the module.

Any advice?
Logged
Pages: [1] 2 3
  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!