Re: Tcl_CreateSlave error (pg 7.1.2, RH 7.2)

Janine Sisk <janine@furfly.net>

From: Janine Sisk <janine@furfly.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: <pgsql-general@postgresql.org>, Carl Coryell-Martin <carl@greenmediatoolshed.org>
Date: 2002-04-08T16:05:47Z
Lists: pgsql-general
Mine is

[joeweb@rex lib]$ ldd pltcl.so
        libdl.so.2 => /lib/libdl.so.2 (0x4000f000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40013000)
        libc.so.6 => /lib/i686/libc.so.6 (0x40036000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

So obviously the problem is that libtcl.so isn't linked in at all.  I wonder
how I was able to build it at all?

I do *have* libtcl.so, btw:

[joeweb@rex lib]$ locate libtcl.so
/usr/lib/libtcl.so
/usr/lib/libtcl.so.0

I will try rebuilding pltcl.so and see if there are any error messages.

thanks,

janine

On 4/8/02 11:15 AM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:

> Janine Sisk <janine@furfly.net> writes:
>> Yesterday I installed Postgres 7.1.2 on Redhat 7.2.  The install appeared to
>> go well, but createlang doesn't work:
> 
>> [joeweb@rex joeweb]$ createlang pltcl joewebtest
>> ERROR:  Load of file /usr/local/pgsql-7.1.2/lib/pltcl.so failed:
>> /usr/local/pgsql-7.1.2/lib/pltcl.so: undefined symbol: Tcl_CreateSlave
>> createlang: language installation failed
> 
> Does the dynamic loader find libtcl.so?  Running ldd on pltcl.so might
> be enlightening.
> 
> FWIW, I see no problem with PG 7.1.3 built from source on stock RH 7.2.
> ldd pltcl.so shows
> 
>       libtcl.so.0 => /usr/lib/libtcl.so.0 (0x40023000)
>       libdl.so.2 => /lib/libdl.so.2 (0x400a3000)
>       libm.so.6 => /lib/i686/libm.so.6 (0x400a7000)
>       libc.so.6 => /lib/i686/libc.so.6 (0x400ca000)
>       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> 
> regards, tom lane
> 

-- 
Janine Sisk
President/CEO
furfly.net, LLC
Mont Vernon, NH
Phone: 603-672-1122