"Tushar Parekh" <[EMAIL PROTECTED]> writes:
> I have Freebsd 4.7 + Apache 2 with SSL + mod_dtcl installed.
Uhm.... mod_dtcl doesn't exist for Apache 2... I'll go on the
assumption that you are using Apache 1.3.
> Normal script runs ok e.g.
> <? puts "hello world ?> in a.ttml correctly displays "hello world" when referenced
>from browser.
>
> I have libpgtcl.so pointing to (soft link) libpgtcl.so.2 in /usr/local/lib
>
> I have the following b.ttml
> <?
> load libpgtcl[info sharedlibextension]
> ........ code to access database
> ?>
>
> this script fails on load command with error :
> couldn't load file "libpgtcl.so" : /usr/local/lib/libpgtcl.so: Undefined symbol
>"Tcl_GetChannel"
> while executing
> "load libpgtcl[info sharedlibextension]"
> (in namespace eval "::request" script line 4)
> invoked from within
> "namespace eval request {
> buffer_add ""
Mikhail, you have any thoughts on this?
> The same script without <? ?> runs fine with :
> pgtclsh b.ttml
> I am able to access postgres database from pgtclsh run from csh.
How about doing this:
tclsh
> load libpgtcl.so
Also, what versions are you using of all these tools - and which Tcl
versions were they compiled against?
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]