pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James Olin Oden <joden@lee.k12.nc.us>
To: G. Anthony Reina <reina@nsi.edu>
Cc: John E. Garrott <johnga@primenet.com>
Cc: pgsql-questions@postgresql.org <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] C compiler error when using PostGres
Date: Fri, 25 Sep 1998 07:44:13 -0400
Message-ID: <81Sep24.063411edt.35713@gateway.lee.k12.nc.us> (raw)
References: <360AAC02.46F2B123@nsi.edu>
	<360AAFD5.57A45E56@primenet.com>
	<360AB7CC.C1F95E79@nsi.edu>


> John E. Garrott wrote:
> > > ...  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?
> > >
>
> >
> > Add -lcrypt to the end of the line that compiles the application.
> >
> > John
>
> Thanks John,
>
>         That seems to have fixed it. Any idea why I didn't have to include that
> library before? Is crypt a PostGres library or a system library?
>

Perhaps on your old system it was just part of your standard libraries.  I kind of
fuzzy on how all this works, but I belive the compiler should have some sort of
setup that tells it where to look for core libraries, and on some systems crypt
would be part of that default, but on other it would not.  Also, I am pretty sure
you can automate some that stuff with "make", and if you used a different make
file, or because it was a different platform, perhaps the makefile was not setup
proprely.Anyway, I think it boils down to some sort of a configuration
issue...james

P.S.  Any more definitave answers?

> -Tony






view thread (4+ messages)

Message-ID: <81Sep24.063411edt.35713@gateway.lee.k12.nc.us>
Permalink:  ../81Sep24.063411edt.35713@gateway.lee.k12.nc.us/
Also on:    postgresql.org/message-id/81Sep24.063411edt.35713@gateway.lee.k12.nc.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: joden@lee.k12.nc.us, reina@nsi.edu, johnga@primenet.com
  Subject: Re: [SQL] C compiler error when using PostGres
  In-Reply-To: <81Sep24.063411edt.35713@gateway.lee.k12.nc.us>
  References: <360AAC02.46F2B123@nsi.edu> <360AAFD5.57A45E56@primenet.com> <360AB7CC.C1F95E79@nsi.edu> <81Sep24.063411edt.35713@gateway.lee.k12.nc.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