problems compiling CVS HEAD - LDAP auth and Kerberos

From: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>
To: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: problems compiling CVS HEAD - LDAP auth and Kerberos
Date: 2006-03-16 15:18:01
Message-ID: 52EF20B2E3209443BC37736D00C3C138076705A9@EXADV1.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I have tried the --with-ldap option since I also intend
to submit a patch that uses LDAP functionality.

Compiling src/interfaces/libpq/fe-auth.c on Linux I get

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -fno-strict-aliasing
-I../../../src/include -D_GNU_SOURCE -I/usr/kerberos/include -c -o
auth.o auth.c
auth.c:793:1: directives may not be used inside a macro argument
auth.c:792:56: unterminated argument list invoking macro "ereport"
auth.c: In function `CheckLDAPAuth':
auth.c:794: warning: implicit declaration of function `ereport'
auth.c:798: syntax error before ')' token

I use 3.2.3 20030502.

Another problem:

When I compile --with-krb5 on Windows 2000, I experience a mysterious
crash that I guess is related to my configuration and not a code error.

I link against krb5_32.dll (DLL version 1.3.5.0), and my executable
crashes,
with printfs I could find that it crashes WHILE returning from
pg_krb5_init() (in the error handling clause after
krb5_cc_get_principal),
which is called from pg_krb5_authname(). The stack trace is empty!

Can anybody give me a hint?
Is there something like a preferred set of library/header versions for
building CVS head?

Yours,
Laurenz Albe

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2006-03-16 15:21:06 Re: Pregunta sobr
Previous Message Tom Lane 2006-03-16 15:07:52 Re: [HACKERS] Bug report form: locale/encoding