with Tcl 8.2.0 -> libpgtcl.so: undefined symbol: PQresStatus

Поиск
Список
Период
Сортировка
Искать

with Tcl 8.2.0 -> libpgtcl.so: undefined symbol: PQresStatus

От:
Constantin Teodorescu <teo@flex.ro>
Дата:
Downloaded today Tcl/Tk 8.2.0 final.

Compiled it and installed it without problems.

But when I tried to run PgAccess I got the following error message.

Error in startup script: couldn't load file "libpgtcl.so":
/usr/local/pgsql/lib/libpgtcl.so: undefined symbol: PQresStatus 

I tried to recompile src/interfaces/libpgtcl again but the error message
persists.

Any clues?

-- 
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA

Re: [INTERFACES] with Tcl 8.2.0 -> libpgtcl.so: undefined symbol: PQresStatus

От:
David Conners <davidthewise@earthlink.net>
Дата:
Hi,

I encountered something similar when I decided to move from postgresql
6.4.2 to 6.5.1

I'm running redhat 5.2., tcl 8.0

The libgtcl.so.2.0 compiled in version 6.5.1 was 26474 bytes.
The libgtcl.so.2.0 compiled in version 6.4.2 was 60449 bytes.

Recompiling in 6.5.1 produced the same result.

I replaced the libgtcl.so.2.0 compiled in version 6.5.1  with the
one compiled in 6.4.2, and the problem went away.

I hope this helps,

David

Re: [INTERFACES] with Tcl 8.2.0 -> libpgtcl.so: undefined symbol: PQresStatus

От:
Lamar Owen <lamar.owen@wgcr.org>
Дата:
David Conners wrote:
> The libgtcl.so.2.0 compiled in version 6.5.1 was 26474 bytes.
> The libgtcl.so.2.0 compiled in version 6.4.2 was 60449 bytes.
> 
> Recompiling in 6.5.1 produced the same result.
> 
> I replaced the libgtcl.so.2.0 compiled in version 6.5.1  with the
> one compiled in 6.4.2, and the problem went away.

This sounds suspiciously like the glibc 2.0.x dynamic load bug that has
plagued AOLserver -- this shouldn't show up under a glibc 2.1-based
system if that is the case.  The solution?  Upgrade to glibc 2.1.x, or
edit the makefile for libpgtcl.so to statically link in libpq.a. -- I
think a great deal of effort was expended for 6.5.1 for dynamically
linking all the libs (which is why the 6.4.2 libpgtcl.so is so much
bigger than 6.5.1's).

Lamar Owen
WGCR Internet Radio

FAQ