OK, your suggestion helped me find the problem.  Apparently, libpgtcl.so
does not have a reference to libtcl82.so (objdump doesn't show this, but
strings does!).  I relinked libpgtcl.so (adding a -ltcl82 and
-L/usr/local/lib), and it now loads and works.  I'm not sure why it did not
work -- tclsh8.2 should not appear different from a linker/loader
perspective than mod_dtcl and httpd do, but anyway, it works.

Thanks!

-Chris


>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Friday, December 15, 2000 3:39 PM
>To: Christopher M. Sedore
>Cc: '[EMAIL PROTECTED]'
>Subject: Re: mod_dtcl and postgres
>
>
>"Christopher M. Sedore" <[EMAIL PROTECTED]> writes:
>
>> I'm trying to load the postgres extension for tcl into mod_dtcl
>> without success--here's what happens (result returned from apache):
> 
>> couldn't load file "/usr/local/pgsql/lib/libpgtcl.so":
>> /usr/local/pgsql/lib/libpgtcl.so: Undefined symbol "Tcl_GetChannel"
>
>This really looks like something using the wrong version of Tcl.
>
>> I can load the extension into tclsh8.2 at the command prompt.
>> Interestingly enough, I get the same message if I try to load the
>> extension in to tclsh8.3.
>
>> I have verified that mod_dtcl.so and libpgtcl.so were both built
>> with the 8.2 tcl libraries, both by looking at the makefile and
>> using lsof to see which libraries are held open by the programs.
>
>Did you try 
>
>ldd -d /usr/local/pgsql/lib/libpgtcl.so ?
>
>Or something like
>
>objdump -T /usr/lib/libtcl8.2.so.1 | grep Channel
>
>on Linux?
>
>Can you describe the system further?
>
>Ciao,
>-- 
>David N. Welton
>     Personal:           http://www.efn.org/~davidw/  
>Free Software:           http://people.debian.org/~davidw/
>   Apache Tcl:           http://tcl.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to