Bug 54520 - Oscar & ICQ plugin not connecting
Summary: Oscar & ICQ plugin not connecting
Status: RESOLVED WORKSFORME
Alias: None
Product: kopete
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-12 08:08 UTC by Chris Smith
Modified: 2003-03-23 09:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2003-02-12 08:08:29 UTC
Version:           0.6 (using KDE KDE 3.1)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2.1  gcc version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)
OS:          Linux

Hi there,

My ICQ and AIM (Oscar) plugins refuse to connect to their respective servers. When I start Kopete, MSN auto-connects, but the other two (AIM and ICQ) won't. I'll select to connect the AIM plugin and I'll get this on stdout:

QServerSocket: failed to bind or listen to the socket

Which makes me think it may have more to do with my system than Kopete, but I thought you guys could help.

When I try to connect using ICQ, I get this on stdout:

kopete: WARNING: 19:45:16 [WRN] Connection closed

Is this anything to do with kopete, or is something screwey with my system?

Thanks guys,
Chris
Comment 1 Martijn Klingens 2003-02-12 09:59:14 UTC
Subject: Re: [Kopete-devel]  New: Oscar & ICQ plugin not connecting

On Wednesday 12 February 2003 08:08, Chris Smith wrote:
> QServerSocket: failed to bind or listen to the socket
> 
> Which makes me think it may have more to do with my system than Kopete, but 
> I thought you guys could help.
> 
> When I try to connect using ICQ, I get this on stdout:
> 
> kopete: WARNING: 19:45:16 [WRN] Connection closed
> 
> Is this anything to do with kopete, or is something screwey with my system?

What glibc version do you have? This sounds like bug 53072 to me, actually.

Comment 2 Chris Smith 2003-02-12 10:38:28 UTC
Thanks for the reply Martijn, 
 
I had a look at bug 53072 when i submitted this bug (bugzilla's smart submit system) and I 
decided that my problem was decidedly different. As even GAIM doesn't connect to 
AIM/ICQ either! 
 
Anyway, I use glibc version 2.3.1 
 
Hope you can help me, 
Chris. 
 
 
Comment 3 Martijn Klingens 2003-02-12 10:50:17 UTC
Subject: Re: [Kopete-devel]  Oscar & ICQ plugin not connecting

On Wednesday 12 February 2003 10:38, Chris Smith wrote:
> Hope you can help me, 

Actually, I'm afraid I can't. Your setup is so much different from mine that I 
cannot really reproduce. The symptoms sounded very familiar and your glibc 
version is the one of which some sub-releases caused problems, but if that's 
not it, I have no idea :(

Comment 4 Stefan Gehn 2003-02-16 11:21:23 UTC
if gaim won't connect then it's not a kopete problem but a  problem with your system, 
thus closed. 
Comment 5 Chris Smith 2003-02-17 04:12:58 UTC
Well, I reopened the bug because KDE's AIM client (Kit) connects to the server with my 
user/pass fine. So it's not really to do with my system. GAIM has always been weird on my 
machine, but I'll try it again. 
 
LICQ also connects to its server fine. Yet Kopete still packs a sad. 
 
Thanks, 
Chris 
Comment 6 Chris Smith 2003-02-18 07:49:20 UTC
More news: Now when i run kopete and try to connect to my AIM server, this gets 
spammed to stderr: 
 
"select: Bad file descriptor" 
 
I ended up with 965MB ~/.xsession-errors file, and is displayed to console when I run it 
from the command line. 
 
Does this help? 
Comment 7 Martijn Klingens 2003-02-18 10:33:00 UTC
Could you try updating glibc to a newer version? This helped for all other people 
that had this problem. 
 
Alternatively, ask TrollTech for a workaround in QDns (if possible, this really seems 
to be a very weird problem in recent glibc's resolver code). 
 
A last option is to remove the #undef HAVE_KEXTSOCK_H in client.{h,cpp} as 
suggested in http://bugs.kde.org/show_bug.cgi?id=53072, but since no released 
distro uses this glibc (Debian and Mandrake at least already updated their 
packages to a newer patchlevel that doesn't have the problem. I don't think we 
should remove this in CVS yet. 
 
As for why you get this with some code, but not all: it depends on how the 
resolver lib is used. QDns does it in a way that triggers the bug, 
KExtendedSocket's synchronous (blocking) lookup as used in e.g. MSN does not. 
Plain libc may or may not trigger it as well, etc. Not too much we can (or will) do 
about it. 
 
Martijn 
 
Comment 8 Chris Smith 2003-02-19 08:18:11 UTC
There, GAIM works perfectly fine with ICQ, AIM and MSN. 
 
About GLibc, I'm using the latest version available for my distro (gentoo) and normally they 
are pretty bleeding edge, so whatever fixes made it in I'm pretty sure I have :\ 
Comment 9 Martijn Klingens 2003-02-19 10:37:54 UTC
Subject: Re: [Kopete-devel]  Oscar & ICQ plugin not connecting

On Wednesday 19 February 2003 08:18, Chris Smith wrote:
> There, GAIM works perfectly fine with ICQ, AIM and MSN. 
>  
> About GLibc, I'm using the latest version available for my distro (gentoo)
> and normally they are pretty bleeding edge, so whatever fixes made it in I'm
> pretty sure I have :\

Then please file a bug against Qt, since it's QDns that chokes on glibc 2.3.1 
or against kdelibs/KExtendedSocket.

We use the socket code from Qt and kdelibs, so besides adding ugly workarounds 
(if possible) we for sure can't fix the real cause of the problem.

(btw: the workaround that I mentioned for ICQ didn't work either?)

Comment 10 Chris Smith 2003-02-20 01:23:23 UTC
Okay, I will file a bug with Qt about the problem. 
 
I understand you use the socket code from kdelibs, but wouldn't Kit (the KDE AOL client) 
use that exact same code? Kit connects fine on my machine. 
 
And no, the ICQ fix you mentioned didn't work. 
 
Thanks for all your help so far Martijn, It is greatly appreciated. 
Chris. 
Comment 11 Martijn Klingens 2003-02-20 10:10:17 UTC
Subject: Re: [Kopete-devel]  Oscar & ICQ plugin not connecting

On Thursday 20 February 2003 01:23, Chris Smith wrote:
> And no, the ICQ fix you mentioned didn't work. 

It did not? That's strange. It worked for the Mandrake and Debian people with 
a buggy glibc.

I'm beginning to believe that your problem is different then, but *what* could 
it be?

Does Kopete 0.6.1a (the one we released last night, not the non-A version from 
2 days ago :) fix the issues for you?

Comment 12 Chris Smith 2003-02-20 22:53:24 UTC
I tried Kopete 0.6.1a and that didn't fix the problem :( 
 
I tried removing all my kopete config files, and moving my contact list etc... but still the same 
error. 
 
Perhaps I'll try recompiling QT against my latest Glibc? I'll give it a shot. 
 
Thanks, 
Chris. 
Comment 13 Chris Smith 2003-02-21 03:32:13 UTC
Nope, none of that worked. 
 
I guess Kopete is going to be my new MSN client :P 
 
Thanks for all your help Martijn, If I figure something out, I'll get in touch with you. 
 
Thanks again, 
Chris. 
Comment 14 Martijn Klingens 2003-02-21 10:21:08 UTC
Subject: Re: [Kopete-devel]  Oscar & ICQ plugin not connecting

Do you have any debug output on the console while running Kopete from there 
that might be useful btw?

Comment 15 Chris Smith 2003-02-22 00:07:48 UTC
When I start kopete, and try to connect to AIM, I get this: 
 
chris@chris icq_new $ kopete 
chris@chris icq_new $ QServerSocket: failed to bind or listen to the socket 
QServerSocket: failed to bind or listen to the socket 
QServerSocket: failed to bind or listen to the socket 
QServerSocket: failed to bind or listen to the socket 
 
Then when I try to connect to ICQ, I get this: 
 
QObject::connect: No such slot ICQServerSocket::activated() 
QObject::connect:  (sender name:   'unnamed') 
QObject::connect:  (receiver name: 'unnamed') 
 
Which is different than what I used to get. Anyway, After a while, I get this spammed 
thousands of times (puffs my log files up to over 1 Gb if I leave kopete open) or floods the 
console, depending on how I started kopete. 
 
select: Bad file descriptor 
 
Is there a special debug mode for kopete? The debug window under the AIM menu doesn't 
show anything helpful. 
Comment 16 nbetcher 2003-02-22 05:19:12 UTC
> chris@chris icq_new $ QServerSocket: failed to bind or listen to the socket 
> QServerSocket: failed to bind or listen to the socket 
> QServerSocket: failed to bind or listen to the socket 
> QServerSocket: failed to bind or listen to the socket 
 
Well, there's the problem. That's definately going to cause those file descriptor 
errors. Few questions: 
 
	- What version of Gentoo? 
 
	- Do you have any kernel patches that improse extra security? 
 
	- Do you know if the Gentoo kernel is stock vanilla kernel? 
 
	- Where'd you get your Qt package? 
 
For some reason your kernel is disallowing QServerSocket to listen on a random port, 
which makes be believe this will also cause unexpected behavior. 
 
I know of many users using Kopete on Gentoo and I've never heard of such a 
problem. Do you have other systems to test with to make sure it's not an internal 
connection problem? 
Comment 17 Chris Smith 2003-02-22 20:25:26 UTC
Hi There, Thanks for the fresh perspective. 
 
I'm running Gentoo version 1.4, KDE 3.1 and kopete cvs now. My kernel is the WOLK 
3.8.1 kernel, with no extra security patches installed (I need that kernel, because of the 
other driver patches it has installed in it, But will compile another vanilla kernel to see if that 
fixes the problem. 
 
gentoo-sources != vanilla sources. Gentoo Sources has many performance, stability and 
feature rich patches installed on it, but I don't use it. 
 
And my QT package is straight from TrollTech, compiled from source. 
 
Thanks for the hint about the kernel, I'll scour the config tonight after work and see if there 
is anything there that jumps out at me. Any suggestions at what the option could be? 
 
Thanks for your help, 
Chris. 
Comment 18 Chris Smith 2003-03-23 09:10:22 UTC
OMFG. 
 
I have no idea what I did. Don't ask me, I don't know. I just started Kopete today and it 
worked. 
 
Whatever was wrong has ironed itself out. 
 
Sorry, and Thanks guys! 
Chris 
Comment 19 Chris Smith 2003-03-23 09:12:47 UTC
Closing Bug. 
 
Thanks!