pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John E. Garrott <johnga@primenet.com>
To: pgsql-questions@postgresql.org <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] C compiler error when using PostGres
Date: Thu, 24 Sep 1998 13:47:17 -0700
Message-ID: <360AAFD5.57A45E56@primenet.com> (raw)
References: <360AAC02.46F2B123@nsi.edu>

"G. Anthony Reina" wrote:
> 
> I recently upgraded the hardrive on our database system and copied all
> of the Postgres files from the old harddrive to the new one.
> 
> Everything seems to work find except when I try to compile a C program
> that uses SQL backend commands. The program did compile on the old
> harddrive and ran fine. Now, during compilation I get the following
> error:
> 
> /database/local/pgsql/lib/libpq.a(fe-auth.o): In function
> `pg_password_sendauth':
> fe-auth.o(.text+0x17): undefined reference to `crypt'
> 
> Anyone know how to fix this?
> 
> Thanks.
> -Tony
> 
> --
> 
>                         ( @@ )
>  ////////////////////oOO*(__)*OOo///////////////////////
> //                                                    //
> // G. Anthony Reina, MD                               //
> // The Neurosciences Institute                        //
> // 10640 John Jay Hopkins Drive                       //
> // San Diego, CA   92121  USA                         //
> //                                                    //
> // Voice: (619) 626-2000     FAX: (619) 626-2199      //
> // E-mail: reina@nsi.edu                              //
> //                                                    //
> ///////////////////////////////////////////////////////

Add -lcrypt to the end of the line that compiles the application.

John



view thread (4+ messages)  latest in thread

Message-ID: <360AAFD5.57A45E56@primenet.com>
Permalink:  ../360AAFD5.57A45E56@primenet.com/
Also on:    postgresql.org/message-id/360AAFD5.57A45E56@primenet.com

 · 

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: johnga@primenet.com
  Subject: Re: [SQL] C compiler error when using PostGres
  In-Reply-To: <360AAFD5.57A45E56@primenet.com>
  References: <360AAC02.46F2B123@nsi.edu> <360AAFD5.57A45E56@primenet.com>

* 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