From: Tom Lane <tgl@sss.pgh.pa.us>
To: Randall W. Barrett <rbarr@shadow.net>
Cc: pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] linking error
Date: Fri, 11 Dec 1998 20:49:51 -0500
Message-ID: <18446.913427391@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.SOL.3.96.981211144648.1187A-100000@viper>
"Randall W. Barrett" <rbarr@shadow.net> writes:
> [rbarrett@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
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, rbarr@shadow.net, pgsql-interfaces@hub.org
Subject: Re: [INTERFACES] linking error
In-Reply-To: <18446.913427391@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