Re: Fw: configure error with krb5 - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Fw: configure error with krb5
Date
Msg-id 200301181530.h0IFUkP12340@candle.pha.pa.us
Whole thread Raw
In response to Fw: configure error with krb5  ("kanchana" <pkkanchana@gmx.net>)
List pgsql-general
kanchana wrote:
> Hello Bruce Momjian,
>
>     Thanks a lot for all. I tried by adding -lcurses on link line of psql.
> Looks like it works fine.
>
> Next i moved to compile with krb5, it gives error.
> as follows..........
> #./configure --prefix=/opt/postgresql --enable-integer-datetimes --with-open
> ssl=/usr/local/ssl --with-krb5=/usr/local/krb5
>
> ----------no problem here.
>
> #gmake gives ERROR
> :
> :
> /usr/ccs/bin/ld -b +b /opt/postgresql/lib fe-auth.o fe-connect.o fe-exec.o
> fe-misc.o fe-print.o fe-lobj.o pqexpbuffer.o dllist.o md5.o pqsignal.o
> fe-secure.o wchar.o
> encnames.o  -L/usr/local/krb5/lib -L/usr/local/ssl/lib -lssl -lcrypto -lkrb5
>  -lk5crypto -lcom_err -lnsl  -o libpq.sl
> /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (fe-auth.o) was
> detected. The linked output may not run on a PA 1.x system.
> /usr/ccs/bin/ld: DP relative code in file
> /usr/local/krb5/lib/libkrb5.a(init_ctx.o) - shared library must be position
>     independent.  Use +z or +Z to recompile.

Right here, it looks like the k5crypto library wasn't created properly.
I think the problem is that it is trying to create a shared libpq, but
kerberos is a non-shared *.a library, or has non-shared object files in
it.  Just a guess, of course.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: jco@cornelius-olsen.dk
Date:
Subject: Re: libpq C library Client Interface - select()
Next
From: Bruce Momjian
Date:
Subject: Re: change in behaviour? Is this a regression in function?