You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_dtcl@tcl.apache.org by Tushar Parekh <tu...@orangeidea.com> on 2002/12/06 21:27:02 UTC

Apache 2 + mod_dtcl can not load libpgtcl.so

Hello,

I have Freebsd 4.7 + Apache 2 with SSL + mod_dtcl installed.

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 ""


I also tried :
    load libpgtcl.so
    load /usr/local/lib/libpgtcl.so

I also tried :
    copying libpgtcl.so to apache home directory where b.ttml exists.

I get the above error message all the time.

The same script without <?   ?> runs fine with :
    pgtclsh b.ttml
I am able to access postgres database from pgtclsh run from csh.


Any/All help is appreciated.



Thank you,
Tushar Parekh.
tusharp@orangeidea.com

Re: Apache 2 + mod_dtcl can not load libpgtcl.so

Posted by Mikhail Teterin <mi...@corbulon.video-collage.com>.
> "Tushar Parekh" <tu...@orangeidea.com> 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"

> Mikhail, you have any thoughts on this?

This is, probably, because libpgtcl.so was linked without the -ltcl8x.
Palle, any comments?

	-mi	(passing the blame)

---------------------------------------------------------------------
To unsubscribe, e-mail: mod_dtcl-unsubscribe@tcl.apache.org
For additional commands, e-mail: mod_dtcl-help@tcl.apache.org


Re: Apache 2 + mod_dtcl can not load libpgtcl.so

Posted by "David N. Welton" <da...@dedasys.com>.
"Tushar Parekh" <tu...@orangeidea.com> 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: mod_dtcl-unsubscribe@tcl.apache.org
For additional commands, e-mail: mod_dtcl-help@tcl.apache.org