egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

eggdrop not connect

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Alex-Musicman
Voice


Joined: 02 Jun 2008
Posts: 8

PostPosted: Mon Jun 02, 2008 6:22 pm    Post subject: eggdrop not connect Reply with quote

after update from 1.6.18 to 1.6.19 the eggdrop want not connect, else using the -n flag, without it not work
I installed on Linux 2.6.24-16,
downloaded from ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/eggdrop1.6.19.tar.gz
installed with tcl8.5
Later compiled, when I use eggdrop -v, it return:
Eggdrop v1.6.18+SSL (C) 1997 Robey Pointer (C) 2006 Eggheads
(patches: SSL)
and I not used no patches, shoud not return v1.6.19?
when I use eggdrop -n bot.conf it works and connect, but when I use the normal way, It load but not connect in the irc, and not answer telnet, just freeze.
What may be?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Jun 02, 2008 6:38 pm    Post subject: Reply with quote

Most likely, threaded tcl-libraries are not properly detected as threaded. Dirty hack is to edit eggdrop.h (after running ./configure) and define the macro HAVE_TCL_THREADS, and recompile.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Alex-Musicman
Voice


Joined: 02 Jun 2008
Posts: 8

PostPosted: Mon Jun 02, 2008 7:12 pm    Post subject: Reply with quote

ok, it works, thanks a lot..

But it should be fixed in the next version..
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Jun 02, 2008 8:00 pm    Post subject: Reply with quote

Unfortunately, there is no reliable way of detecting whether libtcl is threaded or not. Hence there cannot be a real fix for this, except trusting the user to use --disable-tcl-threads / --enable-tcl-threads to specify this.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Tue Jun 03, 2008 1:10 am    Post subject: Reply with quote

guppy was working on a method for detecting it, it may even be in the 1.6.20 cvs, I'm not sure.... think something involving Tcl_Mutex... I could be wrong.
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Jun 03, 2008 11:09 am    Post subject: Reply with quote

Might be possible, as far as I remember tho, both Tcl_MutexLock() and Tcl_MutexUnlock() are defined as empty macros whenever tcl is not compiled as thread-safe.

Wasn't there an idea way back on just going with the tclConfig.sh shellscript?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Tue Jun 03, 2008 12:26 pm    Post subject: Reply with quote

Now that I think about it, I think yea, they were talking about creating a Tcl interpretter, and checking the env(thread) (threaded?) variable..
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Jun 03, 2008 2:06 pm    Post subject: Reply with quote

Probably would be simpler to just write a bash-script to include the tclConfig.sh script and test the value of $TCL_THREADS, or possibly simply include it into the Makefile and add the $TCL_* variables to the various compiler and linker vars (would add the benefit of defining the HAVE_THREADS macro used in tcl.h). Although I think there were some caveats to this as well.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
boone
Voice


Joined: 24 Jun 2008
Posts: 2

PostPosted: Tue Jun 24, 2008 7:42 pm    Post subject: Reply with quote

I am haveing the same issue as Alex-Musicman but I guess I did not understand what nm375 said todo to fix this issue. Please help and sorry for sounding like a noob. I never had issues with getting eggys to work in the past.
Back to top
View user's profile Send private message
Alex-Musicman
Voice


Joined: 02 Jun 2008
Posts: 8

PostPosted: Tue Jun 24, 2008 8:09 pm    Post subject: Reply with quote

boone wrote:
I am haveing the same issue as Alex-Musicman but I guess I did not understand what nm375 said todo to fix this issue. Please help and sorry for sounding like a noob. I never had issues with getting eggys to work in the past.


Later you do ./configure, in your eggdrop folder, go to src folder and edit the file eggdrop.h or just type as example: nano src/eggdrop.h and add the line:

Code:
#define HAVE_TCL_THREADS


later this, then make config;make;make install

And eggdrop will be with threaded TCL support.
Back to top
View user's profile Send private message
boone
Voice


Joined: 24 Jun 2008
Posts: 2

PostPosted: Tue Jun 24, 2008 8:24 pm    Post subject: Reply with quote

Thanks So Much
That was turely simple I guess I just not had my sleep today.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber