Trying to compile 1.1rc8 from scratch on FreeBSD 6.3 as well as from the dovecot-devel port and I get an error when trying to include gssapi. gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-sql -I../../src/lib-settings -I../../src/lib-ntlm -I../../src/lib-otp -DAUTH_MODULE_DIR=\""/usr/local/lib/dovecot/auth"\" -DPKG_LIBEXECDIR=\""/usr/local/libexec/dovecot"\" -I/usr/include -I/usr/local/include -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT mech-gssapi.o -MD -MP -MF .deps/mech-gssapi.Tpo -c -o mech-gssapi.o mech-gssapi.c mech-gssapi.c:39:29: gssapi_krb5.h: No such file or directory *** Error code 1 Anybody else had luck with gssapi on freebsd? -c
On Wed, 2008-06-04 at 11:00 -0600, Cassidy Larson wrote:> Trying to compile 1.1rc8 from scratch on FreeBSD 6.3 as well as from the > dovecot-devel port and I get an error when trying to include gssapi. > > gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-sql > -I../../src/lib-settings -I../../src/lib-ntlm -I../../src/lib-otp > -DAUTH_MODULE_DIR=\""/usr/local/lib/dovecot/auth"\" > -DPKG_LIBEXECDIR=\""/usr/local/libexec/dovecot"\" -I/usr/include > -I/usr/local/include -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes > -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 > -Wbad-function-cast -MT mech-gssapi.o -MD -MP -MF .deps/mech-gssapi.Tpo -c > -o mech-gssapi.o mech-gssapi.c > mech-gssapi.c:39:29: gssapi_krb5.h: No such file or directory > *** Error code 1Do you have gssapi_krb5.h anywhere? Do you have krb5.h? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080604/5b0106ae/attachment-0002.bin>
I have a /usr/include/krb5.h but no gssapi_krb5.h. On Wed, Jun 4, 2008 at 11:03 AM, Timo Sirainen <tss at iki.fi> wrote:> > Do you have gssapi_krb5.h anywhere? Do you have krb5.h? > >
Since the base krb5 included with FreeBSD doesnt include gssapi_krb5.h, I needed to install the krb5 port which has it. After installing the krb5 port it compiles fine from scratch, but the FreeBSD dovecot-devel port doesnt work and gives some fun errors: /usr/lib/libgssapi.so: undefined reference to `krb5_rd_cred2' /usr/lib/libgssapi.so: undefined reference to `krb5_crypto_destroy' /usr/lib/libgssapi.so: undefined reference to `krb5_ret_address' /usr/lib/libgssapi.so: undefined reference to `krb5_ret_data' ... ... However, that's a problem for another list I suppose. -c