Re: [INTERFACES] crypt error

Lists: pgsql-interfaces
From: Constantin Teodorescu <teo(at)flex(dot)ro>
To: Ahmad Munif <munif(at)dnet(dot)net(dot)id>, PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: [INTERFACES] crypt error
Date: 1999-07-10 06:28:39
Message-ID: 3786E817.70FBAB05@flex.ro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-interfaces

Ahmad Munif wrote:
>
> hallo,
>
> i've already compiled postgresql 6.5.
> i'd a problem when i run pgaccess.
> always appeared error messages :
>
> " Error in startup script : couldn't load
> file "libpgtcl.so"; /usr/local/pgsql/libpgtcl.so :
> undefined symbol :crypt "
>
> how to fix it ?

Go to the PostgreSQL 6.5 source directory and
$ cd src/interfaces/libpgtcl
Edit the Makefile adding -lcrypt to the end of the line "SHLIB_LINK+=
_L../libpq -lpq"

Make clean and make again and then make install
The libpgtcl.so library is now prepared to work fine!

Best regards,
--
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA


From: Ahmad Munif <munif(at)dnet(dot)net(dot)id>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: crypt error
Date: 1999-07-10 06:52:31
Message-ID: 3786EDAF.FE81BDAB@dnet.net.id
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-interfaces

hallo,

i've already compiled postgresql 6.5.
i'd a problem when i run pgaccess.
always appeared error messages :

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

how to fix it ?

thanks.


From: Philippe Chaintreuil <peep(at)thefront(dot)com>
To: Ahmad Munif <munif(at)dnet(dot)net(dot)id>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] crypt error
Date: 1999-07-10 11:01:21
Message-ID: Pine.LNX.3.96.990710035744.25746A-100000@pravda.thefront.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-interfaces

On Sat, 10 Jul 1999, Ahmad Munif wrote:
> i've already compiled postgresql 6.5.
> i'd a problem when i run pgaccess.
> always appeared error messages :
>
> " Error in startup script : couldn't load
> file "libpgtcl.so"; /usr/local/pgsql/libpgtcl.so :
> undefined symbol :crypt "
>
> how to fix it ?

Make sure you link to the crypt library too. For instance, I use
g++, and to compile the Postgres program I'm working on, the command line
is:

g++ test.cpp -o test.cgi -lpq -lpq++ -lcrypt

Where test.cpp is my source file, test.cgi is the executable I
want, and -lpq, -lpq++ and -lcrypt are the Postgres libraries I need for
Postgres to work right. If this doesn't clear it up enough, write back.

-- Philippe Chaintreuil
peep(at)thefront(dot)com