pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Klein, Robert <rvklein@ober.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Redhat 6.0 Link Error: Undefined Reference to crypt
Date: Tue, 02 Nov 1999 14:09:58 -0500
Message-ID: <16348.941569798@sss.pgh.pa.us> (raw)
In-Reply-To: <C71D2D07293AD31186F50004ACB848F2035371@EXCHANGE>

"Klein, Robert" <rvklein@ober.com> writes:
> I'm trying to compile a program on Redhat 6.0 with the Postgres 6.4 the came
> with it.  
> I get the following link error:
> /usr/lib/libpq.so: Undefined reference to "crypt"

You need to add -lcrypt to your link command, probably.  On some
platforms crypt() is part of regular libc, on some it comes in
a separate libcrypt library...

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <16348.941569798@sss.pgh.pa.us>
Permalink:  ../16348.941569798@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16348.941569798@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rvklein@ober.com
  Subject: Re: [SQL] Redhat 6.0 Link Error: Undefined Reference to crypt
  In-Reply-To: <16348.941569798@sss.pgh.pa.us>
  References: <C71D2D07293AD31186F50004ACB848F2035371@EXCHANGE> <16348.941569798@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox