Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] linking error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Randall W(dot) Barrett" <rbarr(at)shadow(dot)net>
Cc: pgsql-interfaces(at)hub(dot)org
Subject: Re: [INTERFACES] linking error
Date: 1998-12-12 01:49:51
Message-ID: 18446.913427391@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
"Randall W. Barrett" <rbarr(at)shadow(dot)net> writes:
> [rbarrett(at)localhost rbarrett]$ gcc -O3 -Wall sample1.c -I
> /usr/local/pgsql/include/ -L /usr/local/pgsql/lib/ -lpq 

> /usr/local/pgsql/lib//libpq.a(fe-auth.o): In function
> `pg_password_sendauth':
> fe-auth.o(.text+0x17): undefined reference to `crypt'

> Does anyone know how I can fix this?  Need I upgrade to 6.4? 

For the moment you should be able to fix it by adding -lcrypt to
the end of the gcc command.  I've been trying to fix things so that
it's not necessary to do that ...  but it's proving very hard to
make it work properly everywhere :-(.  Cross-references between
shared libraries seem not to be very portable on Unix systems yet.

			regards, tom lane

Responses

pgsql-interfaces by date

Next:From: Randall W. BarrettDate: 1998-12-12 05:39:05
Subject: Re: [INTERFACES] linking error
Previous:From: Ramiro ArenasDate: 1998-12-11 22:47:21
Subject: (no subject)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group