pg.ddx.io pgsql-interfaces@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Randy Barrett <rbarr@shadow.net>
To: pgsql-interfaces@postgresql.org
Subject: Linking problems
Date: Fri, 20 Nov 1998 16:35:53 -0500
Message-ID: <3655E0B8.6963D1DD@shadow.net> (raw)
I wrote a trivial (so I didn't include, but I will if I must...) C
program using the libpq C interface which compiles cleanly. My problem
is with the linker. There are two files, one contains (tested) code
for a standard set of cgi functions and the other contains code that
calls the db. Here's the gcc command I'm using:
gcc login.c stdcgi.c -I /usr/local/pgsql/include/ -L
/usr/local/pgsql/lib/ -lpq
And here's the error I'm getting:
/usr/local/pgsql/lib//libpq.a(fe-auth.o): In function
`pg_password_sendauth':
fe-auth.o(.text+0x17): undefined reference to `crypt'
I haven't dug through the postgreSQL code and perhaps I haven't read the
user manual thoroughly enough, but I'm not making any calls to
"pg_password_sendauth", so I'm confused with this error message.
Any help would be appreciated.
Randy Barrett
rbarr@shadow.net
view thread (5+ messages) latest in thread
Message-ID: <3655E0B8.6963D1DD@shadow.net> Permalink: ../3655E0B8.6963D1DD@shadow.net/ Also on: postgresql.org/message-id/3655E0B8.6963D1DD@shadow.net ·
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 using the --to and --cc options: reply via email To: pgsql-interfaces@postgresql.org Cc: rbarr@shadow.net Subject: Re: Linking problems In-Reply-To: <3655E0B8.6963D1DD@shadow.net> * 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