Tcl_CreateSlave error (pg 7.1.2, RH 7.2) 
Author Message
 Tcl_CreateSlave error (pg 7.1.2, RH 7.2)

I think the problem may be that the libtcl.so is from the 7.2 that you
originally had installed and is not compatible with the 7.1.2

That is normally the reason for these kind of problems

Darren Ferguson

Quote:

> Mine is


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


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



> >> Yesterday I installed Postgres 7.1.2 on Redhat 7.2.  The install appeared to
> >> go well, but createlang doesn't work:


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

> ---------------------------(end of broadcast)---------------------------


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Sat, 25 Sep 2004 02:44:23 GMT
 Tcl_CreateSlave error (pg 7.1.2, RH 7.2)

Quote:



> >> Does the dynamic loader find libtcl.so?  Running ldd on pltcl.so might
> >> be enlightening.

> > Well, there is no obvious error:


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


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

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html



Sat, 25 Sep 2004 07:49:31 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Regression Test Failure on PG 7.2 under RH 7.2

2. PG 7.2 install on RH 7.0 dependency errors

3. DB migration from Win (cygwin) to Linux (RH 7.2): 9223372036854775807 error

4. D3 Linux 7.2 RH 6.1 error

5. [Fwd: Re: Errors with building PG 7.2 on Mandrake 8.0]

6. 9iR2 on RH 7.2 - runInstaller segmentation fault

7. Older Informix versions on RH 7.2

8. Installing 8.1.7 TNS adapters on RH 7.2

9. Sequences crashing DB 7.2 on RH?

10. ldap Oracle8.1.7.2 on RH 7.2

11. missed features and unhappy changes when pg 7.1->7.2

12. PG 7.2 tarball


 
Powered by phpBB® Forum Software