Re: Problems compiling test program program form pgsql

From: "D(dot) Duccini" <duccini(at)backpack(dot)com>
To: Miguel Fernandez <miguelfernandez(at)bridge(dot)com(dot)br>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Problems compiling test program program form pgsql
Date: 2000-06-04 02:16:40
Message-ID: Pine.GSO.4.03.10006032114290.13557-100000@ra.bpsi.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


you're missing an install of the crypt library, which seems kind of odd,
since i thought that was a standard part

look in /usr/lib

you should have two files and one symbolic link:

/usr/lib % dir libcry*
-rw-r--r-- 1 root root 98012 Sep 20 1999 libcrypt.a
lrwxrwxrwx 1 root root 23 Sep 19 1998 libcrypt.so ->../../lib/libcrypt.so.1
-rw-r--r-- 1 root root 98908 Sep 20 1999 libcrypt_p.a

On Sat, 3 Jun 2000, Miguel Fernandez wrote:

> Hi , I've got a problem compiling the test program in the programmers guide.
> t frist how I do to link libpg.a in gcc and g++ ?
>
> Later I've got the screen :
>
> $bash: g++ test.C -o test.o -o test /usr/lib/libpg.a // my libpg.a is in /usr/lib
> /usr/lib/libpq.a (fe-auth.o) : in function 'pg_password_sendauth' :
> fe_auth.o(.text+0x27):undefined reference to 'crypt'
> collect2 : ld reurned 1 exit status
> $bash :
>
> Note : my computer runs a linux red hat Conectiva 3.0 installed with postgres 6.5.2.
>
> If someone can help-me I will be very gateful .
>

-----------------------------------------------------------------------------
david(at)backpack(dot)com BackPack Software, Inc. www.backpack.com
+1 651.645.7550 voice "Life is an Adventure.
+1 651.645.9798 fax Don't forget your BackPack!"
-----------------------------------------------------------------------------

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Hugh Lawson 2000-06-04 02:47:56 Re: Problems compiling test program program form pgsql
Previous Message Miguel Fernandez 2000-06-03 21:57:03 Problems compiling test program program form pgsql