This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

eggdrop only run with -n

General support and discussion of Eggdrop bots.
Post Reply
n
neox
Voice
Posts: 6
Joined: Fri May 25, 2007 1:10 pm

eggdrop only run with -n

Post by neox »

Hello I've a problem with the eggdrop.
If I run the eggdrop with ./eggdrop eggdrop.conf then i cant connect to telnet and the bot doesn't connect to the irc.
I think he is freezed withouth -n.
How can i fix it?
I'm using debian on my root
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Most likely, your tcl-libraries are compiled with --enable-threads, yet eggdrop's autoconf-script fails to detect this...

Do you still have the config.h and config.log files from running ./configure lying around?
NML_375
n
neox
Voice
Posts: 6
Joined: Fri May 25, 2007 1:10 pm

Post by neox »

...
Last edited by neox on Fri May 25, 2007 3:34 pm, edited 1 time in total.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Odd, it would seem your configure-script skips alot of tests, including any tests on availability, version, and functions of tcl..

A quickfix to get your eggie working properly, assuming your tcl-libs are indeed compiled with --enable-threads (most likely). would be to change this line in your config.h and recompile:

Code: Select all

/* Define for Tcl that has threads. */
/* #undef HAVE_TCL_THREADS */
into

Code: Select all

/* Define for Tcl that has threads. */
#define HAVE_TCL_THREADS 1
This however will not solve the issues with the configure-script.

Think you could start fresh, run configure again dumping the output into a file , and post it aswell? (ie: ./configure ... > myconf.log)
NML_375
n
neox
Voice
Posts: 6
Joined: Fri May 25, 2007 1:10 pm

Post by neox »

same problem.
Last edited by neox on Fri May 25, 2007 3:33 pm, edited 1 time in total.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Seems your post got trimmed? (possible to put them on a webserver and post a link?)
And was also hoping for the console output from ./configure (hence the > myconf.log).
As for --enable-threads, I was referring to how tcl was compiled, not eggdrop (as --enable-threads won't affect the result with eggdrop).

And, regarding the quickfix, this has to be done after ./configure is run, but before you run make.
NML_375
n
neox
Voice
Posts: 6
Joined: Fri May 25, 2007 1:10 pm

Post by neox »

Here is the link for the config.log von tcl8.4.14:

http://nopaste.php-quake.net/569
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I believe you mis-understood me there.
It's the config.h, config.log and actual output from ./configure for eggdrop I'm looking for.
What I'm trying to do, is determine why it fails to detect that your tcl-libraries was compiled with --threads-enabled...
NML_375
n
neox
Voice
Posts: 6
Joined: Fri May 25, 2007 1:10 pm

Post by neox »

here is the configure.log, cinfig.log, config.h

http://nopaste.php-quake.net/570
I've tcl compiled with enable threads
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

This is odd...
Now it seems to correctly identify tcl as threaded. Does the issue with eggdrop requiring -n to operate still persist?
NML_375
n
neox
Voice
Posts: 6
Joined: Fri May 25, 2007 1:10 pm

Post by neox »

same problem.
it goes with -n but not without
o
osva
Voice
Posts: 1
Joined: Wed May 30, 2007 5:07 pm

Post by osva »

I have the exact same problem.. eggdrop will connect only in -n mode.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

@osva:
Most likely the same scenario occurs for you aswell. The autoconf-script fails to detect that your tcl-libraries are threaded, and thus excludes some important code to get around issues regarding fork() and pthreads..
One workaround would be to define the macro HAVE_TCL_THREADS in your config.h after you've run ./configure, but before you start compiling.
NML_375
Post Reply