X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:reply-to:to:subject:message-id:date
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=ULRJzoRjDuE8GLDqyFrCQWktL668GvXAWBZlEmCOgTUAwSSQAODDp
	LNBgH2k+jbR+fWAeIcGDlo9GH0Ckr7UViBTJGzdoMEKrd9vT/dbUCVpsrskRHtiO
	f2RKYoItUx326W6sRWl6upqez9oQnmBkThZGQnMQnVd/pMAN6T8Nmc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:reply-to:to:subject:message-id:date
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=1YMnlpoclvQ/62ZDA4f7gSyyyRc=; b=NiQX+XTUwuyhyjjDqCnxX/8W/0co
	zcmd3ndq0bazJ+n7pTc+xUaZK/wjtRBcw1IFk+NFilKD2ZBWyui5vbsUUjP/wJ84
	wetyP/Wkz+Ag4YUnIIVldpPIyY6TIIMbszguUC+36EodWEe17AEqMeT/OzwE04c0
	iUl4ecQ4Axzz7tg=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,FREEMAIL_REPLYTO,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=do, 8488, downloaded, krb5
X-HELO: mail-pf0-f179.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:from:reply-to:to:subject:message-id:date         :user-agent:mime-version:content-transfer-encoding;        bh=kljEGRIvFBkmSpp6sa2KjsCj/zmtRHeUihzetTUNZpo=;        b=eBdxlVXluijgWi30pvbt1fcBzB5CYKdS8GLuPHSGdfXkbWkW/NBO0I62HjhfvXhtXA         zKznJAGZS6u/w5/7hRt/UFpIHHi1IRbGa9Nbpi2+KspMCxLC9bOaHPadbxQayA7TgFPL         I54EzU16EjaWRW4yak0M39ndj8fAR6JSHvSdeXqTWFanlM4EhFvvEsmyH2VIsF8BwPj/         0YTezHXjejIxiRgWzNYOKIEcp5iyqLpI/6iJgCdRmLKdpXU9PjVi/3j72yUggHpQ5LmI         miRntVfggsPx7767O9wSUMMD6XPEmUiCBzBhC6Y3jWdWlLpvWLWcOwgwPIXEwmctv/xc         mkgw==
X-Gm-Message-State: AMCzsaU5OAOqA8aSW1CHxY6rId3gb4eU4lEK4PhH140kfKJC48CjaW+1	loNAdxptV77elqHxyoF6yGw42fkr
X-Google-Smtp-Source: ABhQp+RZrSjThcJMqSjHaW4UZKaW0yJPFWUdUi7LOgxHy4+XTJhu0p0e604/NQpRKYT6sas/vZ/YXA==
X-Received: by 10.98.8.74 with SMTP id c71mr10993522pfd.101.1509800793718;        Sat, 04 Nov 2017 06:06:33 -0700 (PDT)
From: "Matt D." <codespunk@gmail.com>
X-Google-Original-From: "Matt D." <codespunk+cygwin@gmail.com>
Reply-To: codespunk+cygwin@gmail.com
To: cygwin@cygwin.com
Subject: Building OpenSSH fails when '--with-kerberos5' in the default configuration
Message-ID: <59FDBB58.8010501@gmail.com>
Date: Sat, 4 Nov 2017 09:06:32 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

I downloaded the source for Cygwin's OpenSSH package and attempted to 
build it with the defaults:

cygport openssh.cygport prep
cygport openssh.cygport compile

This resulted in the following compile errors:

In file included from 
/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/src/openssh-7.6p1/openbsd-compat/openbsd-compat.h:180:0,
from 
/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/src/openssh-7.6p1/includes.h:174,
from 
/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/src/openssh-7.6p1/openbsd-compat/port-aix.c:27:
/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/src/openssh-7.6p1/openbsd-compat/bsd-misc.h:124:39: 
error: expected identifier or ‘(’ before ‘do’
# define krb5_free_error_message(a,b) do { } while(0)
^
/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/src/openssh-7.6p1/openbsd-compat/bsd-misc.h:124:46: 
error: expected identifier or ‘(’ before ‘while’
# define krb5_free_error_message(a,b) do { } while(0)
^
In file included from /usr/include/krb5/krb5.h:8488:0,
from /usr/include/krb5.h:8,
from 
/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/src/openssh-7.6p1/auth.h:42,
from 
/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/src/openssh-7.6p1/openbsd-compat/port-aix.c:33:
/usr/include/et/com_err.h:38:20: error: conflicting types for 
‘error_message’
extern char const *error_message (long);
^~~~~~~~~~~~~
In file included from 
/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/src/openssh-7.6p1/includes.h:171:0,
from 
/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/src/openssh-7.6p1/openbsd-compat/port-aix.c:27:
/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/src/openssh-7.6p1/defines.h:684:43: 
note: previous declaration of ‘error_message’ was here
# define krb5_get_err_text(context,code) error_message(code)
^
make[1]: *** [Makefile:26: port-aix.o] Error 1
make[1]: Leaving directory 
'/usr/src/openssh-7.6p1-1.src/openssh-7.6p1-1.i686/build/openbsd-compat'
make: *** [Makefile:156: openbsd-compat/libopenbsd-compat.a] Error 2
*** ERROR: make failed

Modifying openssh.cygport by removing "--with-kerberos5" allows compilation.

I have all of the applicable Kerberos packages:

$cygcheck -c | grep -i krb
libgssapi_krb5_2          1.15.2-1                OK
libkrb5-devel             1.15.2-1                OK
libkrb5_3                 1.15.2-1                OK
libkrb5support0           1.15.2-1                OK

Am I missing something?


Matt D.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

