Re: Tcl_CreateSlave error (pg 7.1.2, RH 7.2)

From: teg(at)redhat(dot)com (Trond Eivind =?iso-8859-1?q?Glomsr=F8d?=)
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Janine Sisk <janine(at)furfly(dot)net>, pgsql-general(at)postgresql(dot)org, Carl Coryell-Martin <carl(at)greenmediatoolshed(dot)org>
Subject: Re: Tcl_CreateSlave error (pg 7.1.2, RH 7.2)
Date: 2002-04-08 23:20:21
Message-ID: xuyhemleq16.fsf@halden.devel.redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> Janine Sisk <janine(at)furfly(dot)net> writes:
> > On 4/8/02 11:15 AM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >> Does the dynamic loader find libtcl.so? Running ldd on pltcl.so might
> >> be enlightening.
>
> > Well, there is no obvious error:
>
> > [postgres(at)rex tcl]$ make
> > gcc -pipe -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -fPIC
> > -I../../../src/include -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1
> > -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1
> > -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1
> > -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1
> > -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1
> > -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1
> > -c -o pltcl.o pltcl.c
> > gcc -pipe -shared -Wl,-soname,libtcl.so.0 -o pltcl.so pltcl.o -L/usr/lib
> > -ltcl -ldl -lieee -lm -lc
>
> > [postgres(at)rex tcl]$ 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)
>
> > This doesn't give me many clues... does anyone else see anything here?
>
> I believe this means that the dynamic loader isn't finding libtcl
> (ldd seems to adhere to the "strong silent type" school of error message
> design: if it fails to resolve a library reference, it simply doesn't
> print anything :-().
>
> You said before that you have libtcl in /usr/lib, so a reasonable bet is
> that the ldconfig search path doesn't include /usr/lib at all ...
> see the man page for ldconfig to check and fix it.

Doubt it, this sounds like the soname-bug where the created tcl
component gets the same soname as the tcl library. Fixed in current
beta of RHL and current version of PostgreSQL.

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-04-09 02:52:19 Re: now() AT TIME ZONE 'GMT';
Previous Message Richard Emberson 2002-04-08 23:03:34 now() AT TIME ZONE 'GMT';