Re: [SQL] C compiler error when using PostGres

From: James Olin Oden <joden(at)lee(dot)k12(dot)nc(dot)us>
To: "G(dot) Anthony Reina" <reina(at)nsi(dot)edu>
Cc: "John E(dot) Garrott" <johnga(at)primenet(dot)com>, "pgsql-questions(at)postgresql(dot)org" <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] C compiler error when using PostGres
Date: 1998-09-25 11:44:13
Message-ID: 81Sep24.063411edt.35713@gateway.lee.k12.nc.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


> 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gemeinschaft Studienarbeit Datenbanken 1998-09-26 15:55:39 Problems with inserting into tables...
Previous Message G. Anthony Reina 1998-09-25 00:49:41 Having trouble with join