Re: Pl/Tcl problem

From: teg(at)redhat(dot)com (Trond Eivind =?iso-8859-1?q?Glomsr=F8d?=)
To: Alvaro Herrera <alvherre(at)atentus(dot)com>
Cc: PgSQL-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Pl/Tcl problem
Date: 2001-12-14 22:58:50
Message-ID: xuyk7vp76j9.fsf@halden.devel.redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera <alvherre(at)atentus(dot)com> writes:

> Hello:
>
> I'm having trouble creating the Pl/Tcl language in RedHat Linux 7.1.
> When I issue the createlang command I get this:
>
> [replicator(at)att-stgo-1 replicator]$ createlang -L /usr/lib/pgsql pltcl
> replicator
> ERROR: Load of file /usr/lib/pgsql/pltcl.so failed:
> /usr/lib/pgsql/pltcl.so: undefined symbol: Tcl_CreateSlave
> createlang: language installation failed
>
> Of course /usr/lib/pgsql/pltcl.so exists, and /usr/lib/libtcl8.3.so does
> exist also. They both were installed via the RedHat 7.1.3 RPMs (not
> Lamar Owen ones). Strange thing is Tcl_CreateSlave is defined in
> /usr/lib/libtcl8.3.so, which is not in the output of ldd here in RedHat.
> BUT I've succesfully installed Pl/Tcl from source (7.2b4) at home in
> Mandrake Linux and libtcl8.3.so appears in the ldd output for pltcl.so.
> I don't know what to think, and have no idea whatsoever about Tcl for
> debugging this kind of stuff.
>
> Of course I don't think the RPMs are flawed, but I can't find what the
> problem is. Any clue?

The language module for tcl is created with soname libtcl.so.0. This
is the same soname used by libtcl... creating confusion for the linker.

--
Trond Eivind Glomsrød
Red Hat, Inc.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2001-12-14 23:02:05 Re: Perl DBI, PostgreSQL performance question
Previous Message Tom Lane 2001-12-14 22:49:40 Re: Pl/Tcl problem