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.

mysqltcl problem

Old posts that have not been replied to for several years.
Locked
r
reddevil
Voice
Posts: 2
Joined: Sun Dec 19, 2004 9:22 am

mysqltcl problem

Post by reddevil »

I have searched and searched but not found the sollution for my problem..

I have mysqltcl 2.30 installed on my debian system (testning) i think it was installed when i installed something else because i cant remember how i got there, anyway..

When i try to use my .tcl that needs mysqltcl i get this error:
Eggdrop v1.6.17 (C) 1997 Robey Pointer (C) 2004 Eggheads
[15:13] --- Loading eggdrop v1.6.17 (Sun Dec 19 2004)
[15:13] Listening at telnet port 3996 (all).
[15:13] Module loaded: dns
[15:13] Module loaded: channels
[15:13] Module loaded: server
[15:13] Module loaded: ctcp
[15:13] Module loaded: irc
[15:13] Module loaded: notes (with lang support)
[15:13] Module loaded: console (with lang support)
[15:13] Module loaded: blowfish
[15:13] Module loaded: uptime
[15:13] Can't load modules libmysqltcl2.30: No start function defined.
[15:13] egghttp.tcl API v1.1.0 by strikelight now loaded.
[15:13] Tcl error in file 'eggdrop.conf':
[15:13] This interpreter does not support stubs-enabled extensions.
while executing
"load /usr/lib/mysqltcl-2.30/libmysqltcl2.30.so"
("package ifneeded" script)
invoked from within
"package require mysqltcl $mysql(vers) "
(file "scripts/log.tcl" line 12)
invoked from within
"source scripts/log.tcl"
(file "eggdrop.conf" line 1333)
[15:13] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
im out of ideas.. I have tried to install many different modules and nothing seems to work on my debian system, i ALLWAYS get error when compiling, thats why im trying this.. but it doesnt seems to work eather..

any ideas? thx
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

that means your (likely pre-compiled) mysqltcl uses Tcl's stub mechanism (which allows extensions to load with different Tcl version or load dynamically with statically linked apps) and your Tcl is compiled with no support for stubs

try to compile mysqltcl yourself; if you are getting errors, paste it here
r
reddevil
Voice
Posts: 2
Joined: Sun Dec 19, 2004 9:22 am

Post by reddevil »

ok... thx

I will try that..
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

...or, build your eggdrop linking it against libtclstub ;)

if you know C, check out tcl.tk docs on how to do it (hint: Tcl_InitStubs()
s
spyda
Halfop
Posts: 64
Joined: Mon Aug 12, 2002 2:22 am
Location: Australia

might help you

Post by spyda »

I had a sorta same problem with fedora..

I used this lines

Code: Select all

pkg_mkIndex /usr/local/lib/mysqltcl-2.51
lappend auto_path /usr/local/lib/mysqltcl-2.51
package require mysqltcl 2.51
Hope that helps you with mysqltcl.

------------
ThePope
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Re: might help you

Post by demond »

ThePope wrote:I had a sorta same problem with fedora..

I used this lines

Code: Select all

pkg_mkIndex /usr/local/lib/mysqltcl-2.51
lappend auto_path /usr/local/lib/mysqltcl-2.51
package require mysqltcl 2.51
Hope that helps you with mysqltcl.

------------
ThePope
nope, that's unrelated...

your problem was that [package require] command couldn't find mysqltcl; his problem is that mysqltcl extension (which is already located by [package require]) won't load, because it's been compiled to use Tcl stubs mechanism, and the bot's Tcl interpreter doesn't support that
Locked