What am I missing?  Is this a bug in the rpm?:

I just upgraded using the Red Hat 6.4.2 rpm (from 6.3).
Now I get a compile time error:

cc -g mail2sql.c -o mail2sql -lpq \
-I/usr/include/pgsql
/usr/lib/libpq.so: undefined reference to `crypt'
collect2: ld returned 1 exit status
__________________________________

I've tried other things...


cc -g mail2sql.c -o mail2sql /usr/lib/libpq.a \
-I/usr/include/pgsql
/usr/lib/libpq.a(fe-auth.o): In function `pg_password_sendauth':
fe-auth.o(.text+0x27): undefined reference to `crypt'
collect2: ld returned 1 exit status
_______________________________________

Header of source:
__________________________________________

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "defines_m2s.h"
#include "defines_db.h" /* Created by Makefile */
#include "pgsql/libpq-fe.h"

void
exit_nicely(PGconn* conn)
{
  PQfinish(conn);
  exit(1);
}


int main()
{
 ..........................................................................



Reply via email to