From owner-freebsd-current@FreeBSD.ORG Sat Mar 16 14:51:03 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 4D72D323 for ; Sat, 16 Mar 2013 14:51:03 +0000 (UTC) (envelope-from lokedhs@gmail.com) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by mx1.freebsd.org (Postfix) with ESMTP id CE99911E for ; Sat, 16 Mar 2013 14:51:02 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id n3so3476096lbo.6 for ; Sat, 16 Mar 2013 07:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=EZT1qQH2K3LVzjDkC+fnAP4OfKtyRXFWY+T29NtaJ+o=; b=gEv39G2iFnZnTdFf6NlOYTRXTOgNh4aXQRPNN/cvY5CbZVsm3CbqMA5hIdM+lXIsqq hd12/K510FI+k0VzrY5kU7RrtTV09Ah9TzlD3YNCVQqAPoNYGQnDgqDtyEC7aM3suynE lBOlpY11dwGRDojEn4jE4jeh7pGJYnizEYgoNa+G4yUhqwMsc6xQdY5AzpwsxTjX7aT6 G5HoZCIw/lZHbisjkVTet+cwz5nYhDTA97BUJx/VTLPoLC4EG0foGKDXWJ0kkPRr2nDU CKQMmOy2SqA7y11dhQcFqi+0V785hVL9fbDud+euH2j4K9A0wMpexAVFEoDHgfpe17yC oFTA== MIME-Version: 1.0 X-Received: by 10.112.10.138 with SMTP id i10mr4111713lbb.24.1363445456302; Sat, 16 Mar 2013 07:50:56 -0700 (PDT) Received: by 10.112.21.167 with HTTP; Sat, 16 Mar 2013 07:50:56 -0700 (PDT) Date: Sat, 16 Mar 2013 22:50:56 +0800 Message-ID: Subject: Strange error when compiling minimal GSSAPI application From: =?ISO-8859-1?Q?Elias_M=E5rtenson?= To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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 14:51:03 -0000 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: #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