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 

dict (tcl module)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Apr 22, 2007 4:19 pm    Post subject: dict (tcl module) Reply with quote

Problems relating to dict in particular, and tvrage.tcl which seems to be the only modern eggdrop tcl implementing its use, can be discussed here. This topic is getting buried in the tvrage thread and it's a FAQ at this point, with the number of people asking about dict, and the level of intelligence in that thread rapidly shrinking Razz

You can find dict here:
http://wiki.tcl.tk/5042

If you're on a windoze platform and can't get dict to work, try it under Cygwin (I'll trust you to be intelligent enough to google Cygwin and find out what it is and how to install/run it. I'm not supporting windoze or Cygwin, although if you have problems compiling/installing eggdrop and tcl, you can ask in the Eggdrop Support forum where such questions belong, and maybe someone will have a clue for you. Otherwise, ask on a Cygwin forum somewhere else..)
Back to top
View user's profile Send private message
Killerchronic
Voice


Joined: 25 Apr 2007
Posts: 4

PostPosted: Wed Apr 25, 2007 8:18 am    Post subject: Reply with quote

hi, im getting this error when running ./configure, ive also tried ./configure --enable-threads --enable-shared and a few other ./configure options.

Quote:
checking system version (for dynamic loading)... ./configure: line 9892: syntax error near unexpected token `('
./configure: line 9892: ` case `(ac_space=' '; set | grep ac_space) 2>&1` in'


its always the same error, using tcl8.4.9 on gentoo 2.6.20-r6

its referenced here in the dict wiki:
Quote:
tried installing this ... but get the following error:

./configure --with-tcl=/usr/local/lib/tcl8.4 --with-tclinclude=/usr/local/include/tcl8.4
.................. skip some stuff ....................
checking for Tcl public headers... /usr/local/include/tcl8.4
checking for building with threads... no (default)
checking how to build libraries... shared
checking if 64bit support is enabled... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: line 9892: syntax error near unexpected token `('
./configure: line 9892: ` case `(ac_space=' '; set | grep ac_space) 2>&1` in'

(/tmp/tclDict-8.5.2)-> uname -sr
FreeBSD 5.4-RELEASE-p16

i'll keep checking here for any help. this is using tclDict-8.5.2.tar.gz (it says use that for tcl 8.4...)

(NEM: Is this comment still in need of answering? See also comp.lang.tcl for general questions.)


but there seems to be no info regarding this.

any help would be greatly appreciated.

thanks

edit: i have had dict working under debian before with no problems.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed Apr 25, 2007 12:31 pm    Post subject: Reply with quote

I recently came across a somewhat similar error with a shell script, fixed it by changing #!/bin/sh to #!/bin/bash, see if changing that in your configure script helps. No idea why it made a diff, since /bin/sh is /bin/bash but in non-interactive mode..
Back to top
View user's profile Send private message
GaveUp
Op


Joined: 19 Jan 2006
Posts: 139

PostPosted: Wed Apr 25, 2007 8:26 pm    Post subject: Reply with quote

That's a known bug in the configure script. The fix is mentioned in the other thread.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Apr 26, 2007 8:39 am    Post subject: Reply with quote

@rosc: actually, /bin/sh is'nt always the same binary as /bin/bash. Many systems do symlink /bin/sh to point to bash, but you cannot rely on it.
Especially, according to the Single UNIX Specification, /bin/sh should provide a shell environment that mimic's the Bourne shell (Linux uses bash - Bourne Again SHell - which extends Bourne shell).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Killerchronic
Voice


Joined: 25 Apr 2007
Posts: 4

PostPosted: Thu Apr 26, 2007 10:28 am    Post subject: Reply with quote

GaveUp wrote:
That's a known bug in the configure script. The fix is mentioned in the other thread.


ok my bad, went through the whole of that thread a few times i dunno how the hell i missed that bit lol Embarassed

but thanks yer that fixed it, removed the extra quote on line 7555 ran with no probs.

edit: thanks rosc aswell, ill have to remember that one, might come in handy Smile
Back to top
View user's profile Send private message
scr1pt
Voice


Joined: 30 Mar 2007
Posts: 11

PostPosted: Thu May 10, 2007 3:17 pm    Post subject: Reply with quote

ive installed tcl, tcldict
but still - [16:48] tvrage.tcl error: dict required.

what can be wrong?

ive tried almost everything
it worked perfectly on my previous box, where i also installed above mentioned packages

when i do test

Tests running in interp: /usr/bin/tclsh8.4
Tests running with pwd: /root/tclDict-8.5.2
Tests running in working dir: /root/tclDict-8.5.2/tests
Only running tests that match: *
Skipping test files that match: l.*.test
Only sourcing test files that match: *.test
Tests began at Thu May 10 23:06:10 CEST 2007
dict.test
attempt to provide package dict 8.5 failed: package dict 8.5.2 provided instead
not a wide 0

Tests ended at Thu May 10 23:06:10 CEST 2007
all.tcl: Total 215 Passed 214 Skipped 1 Failed 0
Sourced 0 Test Files.
Number of tests skipped for each constraint:
1 memory
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu May 10, 2007 5:49 pm    Post subject: Reply with quote

attempt to provide package dict 8.5 failed: package dict 8.5.2 provided instead

So it loaded 8.5.2.. What's the problem?
Back to top
View user's profile Send private message
scr1pt
Voice


Joined: 30 Mar 2007
Posts: 11

PostPosted: Fri May 11, 2007 1:57 pm    Post subject: Reply with quote

tvrage says:tvrage.tcl error: dict required.
Back to top
View user's profile Send private message
ace0174
Voice


Joined: 25 May 2007
Posts: 2

PostPosted: Mon May 28, 2007 9:30 pm    Post subject: Reply with quote

tvrage.tcl + dict in windrop up and running.
Check http://forum.egghelp.org/viewtopic.php?p=73010#73010 for more info.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Jan 06, 2008 4:29 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
darkwolf
Voice


Joined: 26 Feb 2007
Posts: 9

PostPosted: Tue Mar 04, 2008 8:08 pm    Post subject: Reply with quote

Do you have to manually load the dict module in the eggdrop config file or is the tvrage script should automaticly load it up ?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed Mar 05, 2008 2:19 pm    Post subject: Reply with quote

The script will load it, if it's available.
Back to top
View user's profile Send private message
tassat
Voice


Joined: 06 Jun 2008
Posts: 5

PostPosted: Sun Sep 20, 2009 12:17 pm    Post subject: Reply with quote

ok i need some direction i have

version

tcl8.5-dev_8.5.3-2


how do i get dict to work with it??? near as i can tell there is no how to to do this just bits and pieces scattered accross the web.
Back to top
View user's profile Send private message
godzirra
Voice


Joined: 23 Feb 2010
Posts: 1

PostPosted: Tue Feb 23, 2010 1:12 pm    Post subject: Reply with quote

This is driving me insane. Someone please tell me wtf to do.

I consider myself a linux poweruser, and I've been screwing with this script and tclDict for 2 days now.

CentOS 5.3 (Final) x86_64

Code:

# rpm -qa |grep tcl
tcl-8.4.13-4.el5.x86_64
tcl-devel-8.4.13-4.el5.x86_64
tcl-devel-8.4.13-4.el5.i386
tcl-8.4.13-4.el5.i386

# make
gcc -pipe -DPACKAGE_NAME=\"dict\" -DPACKAGE_TARNAME=\"dict\" -DPACKAGE_VERSION=\"8.5.2\" -DPACKAGE_STRING=\"dict\ 8.5.2\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TCL_STUBS=1   -I"/usr/local/include"    -O -Wall -Wconversion -Wno-implicit-int -fPIC -c `echo ./generic/tclDictObj.c` -o tclDictObj.o
In file included from ./generic/tclDictObj.c:43:
./generic/tclDict.h:56: error: conflicting types for ‘Tcl_DictSearch’
/usr/local/include/tcl.h:1279: error: previous declaration of ‘Tcl_DictSearch’ was here
./generic/tclDictObj.c: In function ‘DupDictInternalRep’:
./generic/tclDictObj.c:198: warning: passing argument 1 of ‘tclStubsPtr->tcl_Alloc’ with different width due to prototype
./generic/tclDictObj.c: In function ‘UpdateStringOfDict’:
./generic/tclDictObj.c:355: warning: passing argument 1 of ‘tclStubsPtr->tcl_Alloc’ with different width due to prototype
./generic/tclDictObj.c: In function ‘SetDictFromAny’:
./generic/tclDictObj.c:494: warning: passing argument 1 of ‘tclStubsPtr->tcl_Alloc’ with different width due to prototype
./generic/tclDictObj.c: At top level:
./generic/tclDictObj.c:811: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c:868: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c:914: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c:967: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c:1011: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c:1081: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c:1149: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c:1185: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c:1244: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c:1300: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c:1350: error: expected ‘)’ before ‘->’ token
./generic/tclDictObj.c: In function ‘DictGetCmd’:
./generic/tclDictObj.c:1468: warning: passing argument 3 of ‘tclStubsPtr->tcl_DictObjFirst’ from incompatible pointer type
./generic/tclDictObj.c:1482: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjNext’ from incompatible pointer type
./generic/tclDictObj.c: In function ‘DictMergeCmd’:
./generic/tclDictObj.c:1679: warning: passing argument 3 of ‘tclStubsPtr->tcl_DictObjFirst’ from incompatible pointer type
./generic/tclDictObj.c:1688: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjDone’ from incompatible pointer type
./generic/tclDictObj.c:1694: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjNext’ from incompatible pointer type
./generic/tclDictObj.c: In function ‘DictKeysCmd’:
./generic/tclDictObj.c:1735: warning: passing argument 3 of ‘tclStubsPtr->tcl_DictObjFirst’ from incompatible pointer type
./generic/tclDictObj.c:1751: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjNext’ from incompatible pointer type
./generic/tclDictObj.c: In function ‘DictValuesCmd’:
./generic/tclDictObj.c:1800: warning: passing argument 3 of ‘tclStubsPtr->tcl_DictObjFirst’ from incompatible pointer type
./generic/tclDictObj.c:1808: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjNext’ from incompatible pointer type
./generic/tclDictObj.c: In function ‘DictForCmd’:
./generic/tclDictObj.c:2462: warning: passing argument 3 of ‘tclStubsPtr->tcl_DictObjFirst’ from incompatible pointer type
./generic/tclDictObj.c:2509: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjNext’ from incompatible pointer type
./generic/tclDictObj.c:2521: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjDone’ from incompatible pointer type
./generic/tclDictObj.c: In function ‘DictFilterCmd’:
./generic/tclDictObj.c:2702: warning: passing argument 3 of ‘tclStubsPtr->tcl_DictObjFirst’ from incompatible pointer type
./generic/tclDictObj.c:2717: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjNext’ from incompatible pointer type
./generic/tclDictObj.c:2734: warning: passing argument 3 of ‘tclStubsPtr->tcl_DictObjFirst’ from incompatible pointer type
./generic/tclDictObj.c:2743: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjNext’ from incompatible pointer type
./generic/tclDictObj.c:2785: warning: passing argument 3 of ‘tclStubsPtr->tcl_DictObjFirst’ from incompatible pointer type
./generic/tclDictObj.c:2844: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjDone’ from incompatible pointer type
./generic/tclDictObj.c:2866: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjNext’ from incompatible pointer type
./generic/tclDictObj.c:2876: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjDone’ from incompatible pointer type
./generic/tclDictObj.c:2886: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjDone’ from incompatible pointer type
./generic/tclDictObj.c: In function ‘DictWithCmd’:
./generic/tclDictObj.c:3078: warning: passing argument 3 of ‘tclStubsPtr->tcl_DictObjFirst’ from incompatible pointer type
./generic/tclDictObj.c:3085: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjNext’ from incompatible pointer type
./generic/tclDictObj.c:3090: warning: passing argument 1 of ‘tclStubsPtr->tcl_DictObjDone’ from incompatible pointer type
make: *** [tclDictObj.o] Error 1
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 -> Script Support & Releases All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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