<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Kommentare zu: Tgdbm/Qgdbm library for Tcl (Version 0.5)</title> <atom:link href="http://www.vogel-nest.de/wiki/Main/TgdbmPage/feed/" rel="self" type="application/rss+xml" /><link>http://www.vogel-nest.de</link> <description></description> <lastBuildDate>Mon, 16 Jan 2012 19:43:32 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Von: Damien</title><link>http://www.vogel-nest.de/wiki/Main/TgdbmPage#comment-1526</link> <dc:creator>Damien</dc:creator> <pubDate>Mon, 13 Jun 2011 04:52:55 +0000</pubDate> <guid
isPermaLink="false">http://www.vogel-nest.de/?page_id=351#comment-1526</guid> <description>Thanks for the fix. I&#039;ve been having all sorts of problems trying to figure this out. I&#039;ll try to follow suit, I&#039;m such a techie noob :)</description> <content:encoded><![CDATA[<p>Thanks for the fix. I&#8217;ve been having all sorts of problems trying to figure this out. I&#8217;ll try to follow suit, I&#8217;m such a techie noob <img
src='http://www.vogel-nest.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>Von: stefan</title><link>http://www.vogel-nest.de/wiki/Main/TgdbmPage#comment-59</link> <dc:creator>stefan</dc:creator> <pubDate>Mon, 14 Feb 2011 17:09:47 +0000</pubDate> <guid
isPermaLink="false">http://www.vogel-nest.de/?page_id=351#comment-59</guid> <description>Hi Yves,
thanks for trying it. I&#039;m not sure why the loader doesn&#039;t find &quot;Tgdbm_Init&quot; because it&#039;s there in tgdbm.c
Further discussion in email ...</description> <content:encoded><![CDATA[<p>Hi Yves,</p><p>thanks for trying it. I&#8217;m not sure why the loader doesn&#8217;t find &#8220;Tgdbm_Init&#8221; because it&#8217;s there in tgdbm.c<br
/> Further discussion in email &#8230;</p> ]]></content:encoded> </item> <item><title>Von: yves guerin</title><link>http://www.vogel-nest.de/wiki/Main/TgdbmPage#comment-58</link> <dc:creator>yves guerin</dc:creator> <pubDate>Sun, 13 Feb 2011 20:35:12 +0000</pubDate> <guid
isPermaLink="false">http://www.vogel-nest.de/?page_id=351#comment-58</guid> <description>Dear Sir,
I finally have it to compile in my FreeBSD, I change the include and lib path
INCLUDES        = -I/usr/local/include -I/usr/local/include/tcl8.4
# append the needed library-paths: -L/??
LIBS    = -L. -L/usr/lib -L/usr/local/lib -lgdbm -ltclstub84
I got hte following warning when running make:
gcc -Wall -DUSE_TCL_STUBS -I/usr/local/include -I/usr/local/include/tcl8.4 -o tgdbm.o -c tgdbm.c
tgdbm.c: In function &#039;copyResultNull&#039;:
tgdbm.c:277: warning: cast from pointer to integer of different size
tgdbm.c:283: warning: cast from pointer to integer of different size
tgdbm.c: At top level:
tgdbm.c:44: warning: &#039;rcsid&#039; defined but not used
gcc -shared -o tgdbm.so  -L. -L/usr/lib -L/usr/local/lib -lgdbm -ltclstub84
And I try to load the lib (to test it)
[root@miniBeastie /opt1/temp/tclgdbm]# /usr/local/bin/tclsh8.4
% load ./tgdbm.so
couldn&#039;t find procedure Tgdbm_Init
% pkg_mkIndex -verbose -- . *.so
warning: error while loading tgdbm.so: couldn&#039;t find procedure Tgdbm_Init
%
I try with tcl8.5 and got the same result.
Thank in advance for your help.  I will be able to test it on FreeBSD, if you need a FreeBSD testbed, I am ready to help you.
FreeBSD:
FreeBSD miniBeastie 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Wed Mar 31 22:02:56 EDT 2010     root@miniBeastie:/usr/obj/usr/src/sys/MINIBEASTIE3  i386
tcl: 8.4.19 and 8.5.8
contact me at: yvesguerin (at) yahoo (point) ca
Regards,
Yves</description> <content:encoded><![CDATA[<p>Dear Sir,</p><p>I finally have it to compile in my FreeBSD, I change the include and lib path<br
/> INCLUDES        = -I/usr/local/include -I/usr/local/include/tcl8.4</p><p># append the needed library-paths: -L/??<br
/> LIBS    = -L. -L/usr/lib -L/usr/local/lib -lgdbm -ltclstub84</p><p>I got hte following warning when running make:<br
/> gcc -Wall -DUSE_TCL_STUBS -I/usr/local/include -I/usr/local/include/tcl8.4 -o tgdbm.o -c tgdbm.c<br
/> tgdbm.c: In function &#8216;copyResultNull&#8217;:<br
/> tgdbm.c:277: warning: cast from pointer to integer of different size<br
/> tgdbm.c:283: warning: cast from pointer to integer of different size<br
/> tgdbm.c: At top level:<br
/> tgdbm.c:44: warning: &#8216;rcsid&#8217; defined but not used<br
/> gcc -shared -o tgdbm.so  -L. -L/usr/lib -L/usr/local/lib -lgdbm -ltclstub84</p><p>And I try to load the lib (to test it)<br
/> [root@miniBeastie /opt1/temp/tclgdbm]# /usr/local/bin/tclsh8.4<br
/> % load ./tgdbm.so<br
/> couldn&#8217;t find procedure Tgdbm_Init<br
/> % pkg_mkIndex -verbose &#8212; . *.so<br
/> warning: error while loading tgdbm.so: couldn&#8217;t find procedure Tgdbm_Init<br
/> %</p><p>I try with tcl8.5 and got the same result.</p><p>Thank in advance for your help.  I will be able to test it on FreeBSD, if you need a FreeBSD testbed, I am ready to help you.</p><p>FreeBSD:<br
/> FreeBSD miniBeastie 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Wed Mar 31 22:02:56 EDT 2010     root@miniBeastie:/usr/obj/usr/src/sys/MINIBEASTIE3  i386</p><p>tcl: 8.4.19 and 8.5.8<br
/> contact me at: yvesguerin (at) yahoo (point) ca</p><p>Regards,</p><p>Yves</p> ]]></content:encoded> </item> <item><title>Von: Dean Dohrn</title><link>http://www.vogel-nest.de/wiki/Main/TgdbmPage#comment-57</link> <dc:creator>Dean Dohrn</dc:creator> <pubDate>Fri, 22 Oct 2010 17:19:55 +0000</pubDate> <guid
isPermaLink="false">http://www.vogel-nest.de/?page_id=351#comment-57</guid> <description>Interesting article and one which should be more widely known about in my view. Your level of detail is good and the clarity of writing is excellent. I have bookmarked it for you so that others will be able to see what you have to say.</description> <content:encoded><![CDATA[<p>Interesting article and one which should be more widely known about in my view. Your level of detail is good and the clarity of writing is excellent. I have bookmarked it for you so that others will be able to see what you have to say.</p> ]]></content:encoded> </item> <item><title>Von: stefan</title><link>http://www.vogel-nest.de/wiki/Main/TgdbmPage#comment-56</link> <dc:creator>stefan</dc:creator> <pubDate>Sun, 18 Apr 2010 19:25:48 +0000</pubDate> <guid
isPermaLink="false">http://www.vogel-nest.de/?page_id=351#comment-56</guid> <description>Hi Yves,
thanks for your interest. This thing is rather old, but nevertheless it works :-)
The actual version of Tcl is 8.5. Maybe it&#039;s enough to adapt the version-nummers?
Could you try it? I didn&#039;t have a FreeBSD-system at hand.
Thanks and best regards
Stefan</description> <content:encoded><![CDATA[<p>Hi Yves,</p><p>thanks for your interest. This thing is rather old, but nevertheless it works <img
src='http://www.vogel-nest.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br
/> The actual version of Tcl is 8.5. Maybe it&#8217;s enough to adapt the version-nummers?<br
/> Could you try it? I didn&#8217;t have a FreeBSD-system at hand.</p><p>Thanks and best regards<br
/> Stefan</p> ]]></content:encoded> </item> <item><title>Von: yves guerin</title><link>http://www.vogel-nest.de/wiki/Main/TgdbmPage#comment-55</link> <dc:creator>yves guerin</dc:creator> <pubDate>Sun, 18 Apr 2010 17:33:00 +0000</pubDate> <guid
isPermaLink="false">http://www.vogel-nest.de/?page_id=351#comment-55</guid> <description>Dear Sir,
I try to compile this package on FreeBSD:
FreeBSD miniBeastie 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Wed Mar 31 22:02:56 EDT 2010     root@miniBeastie:/usr/obj/usr/src/sys/MINIBEASTIE3  i386
tgdbm: tgdbm0.5a.zip
gdbm: gdbm-1.8.3_3
I modified the Makefile to reflect the FreeBSD architecture: add /local to every path:
INCLUDES        = -I/usr/local/include -I/usr/local/include/tcl8.4
LIBS    = -L. -L/usr/local/lib -lgdbm -llibtclstub84
But I got the following error:
gcc -shared -o tgdbm.so  -L. -L/usr/local/lib -lgdbm -llibtclstub84
/usr/bin/ld: cannot find -llibtclstub84
*** Error code 1
I got the tcl8.4: tcl-8.4.19_3,1
pkg_info -L tcl-8.4.19_3,1:/usr/local/lib/libtcl84.a
/usr/local/lib/libtcl84.so
/usr/local/lib/libtcl84.so.1
/usr/local/lib/libtclstub84.a
Could you help me ?
Regards,
Yves</description> <content:encoded><![CDATA[<p>Dear Sir,</p><p>I try to compile this package on FreeBSD:<br
/> FreeBSD miniBeastie 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Wed Mar 31 22:02:56 EDT 2010     root@miniBeastie:/usr/obj/usr/src/sys/MINIBEASTIE3  i386</p><p>tgdbm: tgdbm0.5a.zip</p><p>gdbm: gdbm-1.8.3_3</p><p>I modified the Makefile to reflect the FreeBSD architecture: add /local to every path:<br
/> INCLUDES        = -I/usr/local/include -I/usr/local/include/tcl8.4<br
/> LIBS    = -L. -L/usr/local/lib -lgdbm -llibtclstub84</p><p>But I got the following error:</p><p>gcc -shared -o tgdbm.so  -L. -L/usr/local/lib -lgdbm -llibtclstub84<br
/> /usr/bin/ld: cannot find -llibtclstub84<br
/> *** Error code 1</p><p>I got the tcl8.4: tcl-8.4.19_3,1<br
/> pkg_info -L tcl-8.4.19_3,1:/usr/local/lib/libtcl84.a<br
/> /usr/local/lib/libtcl84.so<br
/> /usr/local/lib/libtcl84.so.1<br
/> /usr/local/lib/libtclstub84.a</p><p>Could you help me ?</p><p>Regards,</p><p>Yves</p> ]]></content:encoded> </item> <item><title>Von: Stefan</title><link>http://www.vogel-nest.de/wiki/Main/TgdbmPage#comment-54</link> <dc:creator>Stefan</dc:creator> <pubDate>Wed, 22 Apr 2009 19:22:07 +0000</pubDate> <guid
isPermaLink="false">http://www.vogel-nest.de/?page_id=351#comment-54</guid> <description>Thanks, Hermann! I will have a look at it!</description> <content:encoded><![CDATA[<p>Thanks, Hermann! I will have a look at it!</p> ]]></content:encoded> </item> <item><title>Von: Hermann Hüni</title><link>http://www.vogel-nest.de/wiki/Main/TgdbmPage#comment-53</link> <dc:creator>Hermann Hüni</dc:creator> <pubDate>Mon, 21 Apr 2008 14:05:51 +0000</pubDate> <guid
isPermaLink="false">http://www.vogel-nest.de/?page_id=351#comment-53</guid> <description>Opening a gdbm file with tgdbm and attaching it to an array works incorrectly in case the array is empty at this point.
array size returns 0 while array exists also returns 0.
The following is a workaround for this inconsistency;
&lt;code&gt;	#
# Note: fix for TGDBM problem: an empty array is NOT an array ?
#
if { ([array size $arrayVarName] == 0) &amp;&amp; ([array exists $arrayVarName] == 0) } {
set ${arrayVarName}(DUMMY) dummyVal
unset ${arrayVarName}(DUMMY)
}&lt;/code&gt;
After this, array exists returns 1 and array size still returns 0.
Should be possible to fix in an upcoming release?
Thanks and regards Hermann</description> <content:encoded><![CDATA[<p>Opening a gdbm file with tgdbm and attaching it to an array works incorrectly in case the array is empty at this point.</p><p> array size returns 0 while array exists also returns 0.</p><p>The following is a workaround for this inconsistency;</p><p><code> #<br
/> # Note: fix for TGDBM problem: an empty array is NOT an array ?<br
/> #<br
/> if { ([array size $arrayVarName] == 0) &amp;&amp; ([array exists $arrayVarName] == 0) } {<br
/> set ${arrayVarName}(DUMMY) dummyVal<br
/> unset ${arrayVarName}(DUMMY)<br
/> }</code></p><p>After this, array exists returns 1 and array size still returns 0.</p><p>Should be possible to fix in an upcoming release?</p><p>Thanks and regards Hermann</p> ]]></content:encoded> </item> <item><title>Von: Stefan</title><link>http://www.vogel-nest.de/wiki/Main/TgdbmPage#comment-52</link> <dc:creator>Stefan</dc:creator> <pubDate>Tue, 25 Apr 2006 18:24:24 +0000</pubDate> <guid
isPermaLink="false">http://www.vogel-nest.de/?page_id=351#comment-52</guid> <description>Hi John,
no, gdbm ist not thread safe due to static variables which e.g. holds the error-code (see also http://webauth.stanford.edu/manual/developer/thread_safety.html)
But thanks for looking for Tgdbm.</description> <content:encoded><![CDATA[<p>Hi John,</p><p>no, gdbm ist not thread safe due to static variables which e.g. holds the error-code (see also <a
href="http://webauth.stanford.edu/manual/developer/thread_safety.html">http://webauth.stanford.edu/manual/developer/thread_safety.html</a>)</p><p>But thanks for looking for Tgdbm.</p> ]]></content:encoded> </item> <item><title>Von: John Buckman</title><link>http://www.vogel-nest.de/wiki/Main/TgdbmPage#comment-51</link> <dc:creator>John Buckman</dc:creator> <pubDate>Tue, 25 Apr 2006 17:22:03 +0000</pubDate> <guid
isPermaLink="false">http://www.vogel-nest.de/?page_id=351#comment-51</guid> <description>Is Tgdbm + gdbm thread safe? I&#039;d like to use it under AOLServer, and Berkeley DB&#039;s Tcl API is *not* thread safe, so this would be a nice alternative...
-john</description> <content:encoded><![CDATA[<p>Is Tgdbm + gdbm thread safe? I&#8217;d like to use it under AOLServer, and Berkeley DB&#8217;s Tcl API is *not* thread safe, so this would be a nice alternative&#8230;</p><p>-john</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This Quick Cache file was built for (  www.vogel-nest.de/wiki/Main/TgdbmPage/feed/ ) in 0.31345 seconds, on Feb 5th, 2012 at 9:18 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 6th, 2012 at 9:18 am UTC -->
