Bug 2698 - pgaccess does not work (probed on sparc and x86)
pgaccess does not work (probed on sparc and x86)
Status: CLOSED NEXTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: postgresql (Show other bugs)
6.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
:
: 2287 2810 2949 3617 4652 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-05-10 12:19 EDT by ipaul
Modified: 2008-05-01 11:37 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-09-21 15:56:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description ipaul 1999-05-10 12:19:24 EDT
when I start pgaccess,I get the following error:

Error in startup script: couldn't load file "libpgtcl.so":
/usr/lib/libpgtcl.so: undefined symbol: crypt
    while executing
"load libpgtcl.so"
    (procedure "main" line 6)
    invoked from within
Comment 1 Jeff Johnson 1999-05-11 11:51:59 EDT
*** Bug 2287 has been marked as a duplicate of this bug. ***

pgaccess from postgresql-devel does not work.
Error in startup script: couldn't load file "libpgtcl.so":
/usr/lib/libpgtcl.so: undefined symbol: crypt
    while executing
"load libpgtcl.so"
    (procedure "main" line 6)
    invoked from within
"main $argc $argv"
    (file "/usr/bin/pgaccess" line 4954)
Comment 2 Jeff Johnson 1999-05-14 10:49:59 EDT
*** Bug 2810 has been marked as a duplicate of this bug. ***

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

The docs for pgaccess mention that things have to be changed
in makefiles.  Here is the relevent section from the docs
for pgaccess:

   PostgreSQL 6.4 release has a minor bug. I does not includ
by default the crypt lib
when compiling libpgtcl. So, you will need to manually add a
-lcrypt to SHLIB line in
Makefile in src/interfaces/libpgtcl and then make clean and
make again. The new
libpgtcl.so library is properly configured to run pgaccess.
Comment 3 Jeff Johnson 1999-05-22 08:49:59 EDT
*** Bug 2949 has been marked as a duplicate of this bug. ***

When pgaccess is run the following error message is
displayed:

Error in startup script: couldn't load file "libpgtcl.so":
/usr/lib/libpgtcl.so: undefined symbol: crypt
    while executing
"load libpgtcl.so"
    (procedure "main" line 6)
    invoked from within
"main $argc $argv"
    (file "/usr/bin/pgaccess" line 4954)

It looks like the tcl interface to postgres wasn't built
quite right.
Comment 4 jgotts 1999-06-02 00:48:59 EDT
Please release a fixed RPM for this.  The fix below is correct and
trivial.
Comment 5 Jeff Johnson 1999-06-21 13:30:59 EDT
*** Bug 3617 has been marked as a duplicate of this bug. ***

In RH 6.0 with postgresql-clients 6.4.2 the "pgaccess"
tcl/tk program does not work. The cause seems to be a
problem with the libpgtcl.so library.
The output of an attempt to run pgaccess is as follows:

Error in startup script: couldn't load file "libpgtcl.so":
/usr/lib/libpgtcl.so: undefined symbol: crypt
    while executing
"load libpgtcl.so"
    (procedure "main" line 6)
    invoked from within
"main $argc $argv"
    (file "/usr/bin/pgaccess" line 4954)
Comment 6 Jeff Johnson 1999-08-23 12:47:59 EDT
*** Bug 4652 has been marked as a duplicate of this bug. ***

According to the web page above...

   PostgreSQL 6.4 release has a minor bug. I does not includ
by default the crypt lib when compiling libpgtcl. So, you
will need to manually add a -lcrypt to
SHLIB line in Makefile in src/interfaces/libpgtcl and then
make clean and make again. The new libpgtcl.so library is
properly configured to run pgaccess.
Comment 7 Jeff Johnson 1999-09-21 15:56:59 EDT
This should be fixed by postgresql-6.5.1-0.8 and later.

Note You need to log in before you can comment on or make changes to this bug.