Date: Sat, 16 Mar 2013 17:48:04 -0400 (EDT) From: Rick Macklem <rmacklem@uoguelph.ca> To: =?utf-8?Q?Elias_M=C3=A5rtenson?= <lokedhs@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Strange error when compiling minimal GSSAPI application Message-ID: <2066103901.3973627.1363470484193.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <CADtN0WKxSYwrOzzsfNNnSXE1aAC-No0CGCFHf0BKFdCez_z%2B9w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Elias Martenson wrote: > Is there a problem with the GSSAPI implementation in FreeBSD? > > I'm trying to compile a minimal application that does nothing more > than > including the file gssapi/gssapi_krb5.h: > If you add: #include <time.h> it compiles. <time.h> in included by krb5.h, which I suspect most programs that use the gssapi_krb5.h stuff also uses. rick > #include <gssapi/gssapi_krb5.h> > > int main(void) > { > return 0; > } > > When compiling this with "gcc foo.c" I get the following error: > > In file included from foo.c:1: > /usr/include/gssapi/gssapi_krb5.h:139: error: expected declaration > specifiers or '...' before 'time_t' > > I have to admit that I'm a bit stumped as to why I get the error > message in > the first place. The line in question looks like this: > > OM_uint32 > gsskrb5_extract_authtime_from_sec_context(OM_uint32 *, gss_ctx_id_t, > time_t *); > > I checked the preprocessor output and there are indeed correct > typedefs for > OM_uint32, gss_ctx_id_t and time_t, so I can't really see why this > error > would occur. > > In any case, given the import program, this behaviour isn't really > correct > as far as I can tell. > > Any input on this? > > Regards, > Elias > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2066103901.3973627.1363470484193.JavaMail.root>