From owner-freebsd-current@FreeBSD.ORG Sat Mar 16 21:48:05 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E2DB2D3F for ; Sat, 16 Mar 2013 21:48:05 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 8EB5036F for ; Sat, 16 Mar 2013 21:48:05 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEAOfnRFGDaFvO/2dsb2JhbABDiDS9AIIDdIIqAQEBAwEBAQEgKyALBRYaAg0ZAikBCSYGCAcEARwEh20GDLBxkXaBI4xCfDQHgi2BEwOUIII+gR+PY4MmIDKBBTU X-IronPort-AV: E=Sophos;i="4.84,857,1355115600"; d="scan'208";a="21550684" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 16 Mar 2013 17:48:04 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 34683B3F16; Sat, 16 Mar 2013 17:48:04 -0400 (EDT) Date: Sat, 16 Mar 2013 17:48:04 -0400 (EDT) From: Rick Macklem To: =?utf-8?Q?Elias_M=C3=A5rtenson?= Message-ID: <2066103901.3973627.1363470484193.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: Subject: Re: Strange error when compiling minimal GSSAPI application MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Mar 2013 21:48:05 -0000 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 it compiles. in included by krb5.h, which I suspect most programs that use the gssapi_krb5.h stuff also uses. rick > #include > > 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"