Content-Transfer-Encoding: 8bit X-Auto-Response-Suppress: DR, OOF, AutoReply X-MS-Exchange-Crosstenant-ID: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b X-MS-Exchange-Atpmessageproperties: SA Received-SPF: Pass (protection.outlook.com: domain of protonmail.com designates 185.70.40.22 as permitted sender) receiver=protection.outlook.com; client-ip=185.70.40.22; helo=mail2.protonmail.ch; X-MS-Traffictypediagnostic: CO2PR01MB1990: X-MS-Exchange-Crosstenant-Fromentityheader: Internet Return-Path: Arc-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q/SjbouNRGKaF5ogX0kQCviRO8lw8FDfjv4YbplmrHI=; b=KRLXGf7FbXa7ilk6UN/+papO97BPAmTtMezSsgn6m3Vr7Y0XkhvUUi+Ko7Viys/sB88Dz+T1GuoQbOj03WNxJDjgh0pEia4sXs4L1cNZ0jj1DgForLKdg3aFPQarozno+ABPhQOCx/UY99U6lusLq/UgJo4Gn4pMzuWELpEhT0nDhB4WkwnYAUlB0NVjnsjpkov1guWyCgRFFkAFdMz4O1cpgpiW8ok5Bu13Dtbmp2YHC8QwL/VGcU7j1XgyRDwVJEFcvk1se0IYRmb5b6bJsFTG6cFPwTXcjBouvlEpZs3aONKcyYa/dyXJXLb/wpgCZ5YUWerKo/LKhETE5Kceig== X-MS-Office365-Filtering-Correlation-ID: caea50c3-b1f0-41f9-15ef-08d88e3b17fc X-MS-Oob-TLC-Oobclassifiers: OLM:10000; X-MS-Publictraffictype: Email X-Eopattributedmessage: 0 Authentication-Results: spf=pass (sender IP is 185.70.40.22) smtp.mailfrom=protonmail.com; mit.edu; dkim=pass (signature was verified) header.d=protonmail.com;mit.edu; dmarc=pass action=none header.from=protonmail.com; Precedence: list X-Beenthere: krb5-bugs-incoming@mailman.mit.edu Received: from PCH.mit.edu (PCH.MIT.EDU [18.7.21.50]) by krbdev.mit.edu (Postfix) with ESMTPS id 9D75140167; Sat, 21 Nov 2020 13:19:24 -0500 (EST) Received: from PCH.MIT.EDU (localhost.localdomain [127.0.0.1]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 0ALIJORf015423; Sat, 21 Nov 2020 13:19:24 -0500 Received: from outgoing-exchange-7.mit.edu (OUTGOING-EXCHANGE-7.MIT.EDU [18.9.28.58]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 0ALGWvNv001898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sat, 21 Nov 2020 11:32:57 -0500 Received: from w92exedge4.exchange.mit.edu (W92EXEDGE4.EXCHANGE.MIT.EDU [18.7.73.16]) by outgoing-exchange-7.mit.edu (8.14.7/8.12.4) with ESMTP id 0ALGWtDD003798 for ; Sat, 21 Nov 2020 11:32:57 -0500 Received: from w92expo20.exchange.mit.edu (18.7.74.74) by w92exedge4.exchange.mit.edu (18.7.73.16) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Sat, 21 Nov 2020 11:32:35 -0500 Received: from oc11exhyb4.exchange.mit.edu (18.9.1.100) by w92expo20.exchange.mit.edu (18.7.74.74) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Sat, 21 Nov 2020 11:32:55 -0500 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.54) by oc11exhyb4.exchange.mit.edu (18.9.1.100) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Sat, 21 Nov 2020 11:32:55 -0500 Received: from BN1PR12CA0007.namprd12.prod.outlook.com (2603:10b6:408:e1::12) by CO2PR01MB1990.prod.exchangelabs.com (2603:10b6:102:12::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3564.25; Sat, 21 Nov 2020 16:32:53 +0000 Received: from BN8NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e1:cafe::b8) by BN1PR12CA0007.outlook.office365.com (2603:10b6:408:e1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.20 via Frontend Transport; Sat, 21 Nov 2020 16:32:53 +0000 Received: from mail2.protonmail.ch (185.70.40.22) by BN8NAM11FT014.mail.protection.outlook.com (10.13.177.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.22 via Frontend Transport; Sat, 21 Nov 2020 16:32:52 +0000 Reply-To: "Robert Crowston" Subject: Building 1.18.3 on OpenBSD 6.8 amd64 X-MS-Exchange-Crosstenant-Originalarrivaltime: 21 Nov 2020 16:32:52.6948 (UTC) X-MIME-Autoconverted: from quoted-printable to 8bit by PCH.mit.edu id 0ALGWvNv001898 To: "krb5-bugs@mit.edu" X-MS-Exchange-Transport-Crosstenantheadersstamped: CO2PR01MB1990 X-RT-Incoming-Encryption: Not encrypted Arc-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none X-Mailman-Approved-At: Sat, 21 Nov 2020 13:19:22 -0500 From: "Robert Crowston" X-Mailman-Version: 2.1.6 Errors-To: krb5-bugs-incoming-bounces@PCH.mit.edu Message-ID: From krb5-bugs-incoming-bounces@PCH.mit.edu Sat Nov 21 13:19:24 2020 X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 MIME-Version: 1.0 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mitprod.onmicrosoft.com; s=selector2-mitprod-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q/SjbouNRGKaF5ogX0kQCviRO8lw8FDfjv4YbplmrHI=; b=rBIn+kI/oY1/HWJEETYQLfwlHkphgPR3YKcuHBgbFRFEzjuZ4n8gzXqBSjTznJ7VP1BWElGt5A1//ZLYoHKmiu5fwdHhjF4u8XOw04LZ1ZoKF1ErUwipTVtU42v1MWfUYpyLNX1XSEo9fJ+s3IIgrsCzmumha8/lErONx1mHYsc= Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1605976371; bh=q/SjbouNRGKaF5ogX0kQCviRO8lw8FDfjv4YbplmrHI=; h=Date:To:From:Reply-To:Subject:From; b=Ugkg+w9zUBc1oq2XNPHKFkQp0zaitojPy/v5kL7s98CETFVvy2pNrAGLTsRY0KSOl lmm6G7sM+VnDPg98AsVcc6b7ET+gWKXnIFkxPZIgB6rhaE3EUO0IzoRl5BZrg+Rip4 iqD5ym5ZlnzoIo4bjI1QdQVeAL1/3mUTrFGu5rZo= Arc-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NqU2NULGD+wqIFg0annEpU4IkAcBEghqM7gDt3w2jCi+14aQg1ZOT2quKRoiCwFVwTVoYF0Qq8r3WwyJwa1pxHtAMjpjZ4m0o8tz8fuptESGe3KpCmi0AugxUGpsorbqCs0k7PJaRrPc+TOIq2MR017RgI6983q9/pvq8cp06d7zmPfy2fH/b7FNpscMH0uD9zWUf+OMMZxDpoYg3MITnVMcFTmSQM7KDuJ9PlJycQTt8nvEmRroGulROynWt+Xqs62ZdCithFdNjdaLlkotRKJUmOXre7NRnDeI9d9+Z0/8LlaDedmzdW2k3kUtETHNH65mD3ezYyJ3hwcbqz1D0A== X-MS-Exchange-Transport-Forked: True X-MS-Exchange-Crosstenant-Authsource: BN8NAM11FT014.eop-nam11.prod.protection.outlook.com content-type: text/plain; charset="utf-8" X-Microsoft-Antispam-Message-Info: m5l+i5c8kmTYoAsBpIWHP2FMj1JwrDxgARuRjl91LJ79GkV7PUYXW5ctu1ALuJwF+Lj8TfcykNsxRzOJCpxQKIA8JlMMzFgcVjxPsu0in+MZTiVZ4IXLpBDT4Zmz4ozAAgkJE7zENBAjiCwaBeJT8V+3Ufe1wVtKkcxUiTCpv7OoeW9UivaGWoGvteV95O5L/4I0rZ91DlqW7bEMKjW9uQ2birHMUbRS5Ekqhy/oxsOf6Oo9oo8GB2MzrC4kFtK41A3WiFUaVGIljDIoXrgUBpn0a14hlXSLPQvNVOGcnwgJrCs+mbfrT6a79Qb953w5wNtR0wMHE41NXXfh/oeUG7TPzYOESrP8nMhlYZ07fp7Q7cPtuUPDPy4w/9fHETpWpUMqsZCnoAzBDlLv/jFLm3/zTBhtVblNFt9O3lzHZyDZBSHrcuiceKGI0a4NUZkyoUcIdqXm4aGhW3OxRkUIRQ== X-Originatororg: mitprod.onmicrosoft.com Date: Sat, 21 Nov 2020 16:32:48 +0000 X-MS-Exchange-Crosstenant-Authas: Anonymous X-Microsoft-Antispam: BCL:0; X-Eoptenantattributedmessage: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b:0 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Sender: krb5-bugs-incoming-bounces@PCH.mit.edu X-MS-Exchange-Crosstenant-Network-Message-ID: caea50c3-b1f0-41f9-15ef-08d88e3b17fc X-LD-Processed: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b,ExtAddr X-MS-Exchange-Senderadcheck: 0 X-Microsoft-Antispam-PRVS: X-Forefront-Antispam-Report: CIP:185.70.40.22; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail2.protonmail.ch; PTR:mail2.protonmail.ch; CAT:NONE; SFS:(4636009)(39860400002)(376002)(396003)(136003)(346002)(7596003)(7636003)(6512007)(2906002)(86362001)(356005)(2160300002)(68406010)(956004)(5660300002)(118246002)(36756003)(2616005)(6666004)(336012)(70586007)(6486002)(26005)(6506007)(498600001)(6862004)(8676002)(83380400001)(3450700001)(316002)(786003)(36736006)(99400200001)(21314003); DIR:OUT; SFP:1102; X-RT-Original-Encoding: utf-8 X-RT-Interface: Email Content-Length: 2898 (Apologies if this is the wrong list for reporting bugs. Please redirect me to the right list if I am here in error.) I had to make some changes to the sources to build krb5-1.18.3 on my system. $ uname -a OpenBSD virt-openbsd.xxx 6.8 GENERIC.MP#1 amd64 Firstly, gcc on OpenBSD is 4.2.1, now very elderly. By default, ./configure uses gcc if it finds it, but I was not able to compile using gcc. Instead, I used clang, which is the supported compiler for OpenBSD on amd64 and available as 'cc'. ./configure CC=cc CXX=c++ I suggest that ./configure be changed to use clang by default on OpenBSD. Secondly, ld on OpenBSD amd64 is now ld.lld, the llvm linker, not ld the GNU linker. $ ld --version LLD 10.0.1 (compatible with GNU linkers) For whatever reason, when invoking ld directly, it is not able to find the default libraries in /usr/lib. Instead I modified the shlib.conf script to use the clang driver to run the linker. --- /dev/fd/11 Sat Nov 21 16:08:26 2020 +++ src/config/shlib.conf Sat Nov 21 12:57:34 2020 @@ -340,7 +340,7 @@ PICFLAGS=-fpic SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)' SHLIBEXT=.so - LDCOMBINE='ld -Bshareable' + LDCOMBINE='$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBVEXT)' SHLIB_RPATH_FLAGS='-R$(SHLIB_RDIRS)' SHLIB_EXPFLAGS='$(SHLIB_RPATH_FLAGS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' RPATH_FLAG=-R I suggest that patch be implemented; there is not a lot of reason to support older versions of OpenBSD. Thirdly, util/verto expects to be able to link against libm, the math library. However, on OpenBSD, the math functions are part of the native C library and there is no libm. I was able to resolve this by removing lm from SHLIB_EXPLIBS: --- /dev/fd/11 Sat Nov 21 16:12:43 2020 +++ src/util/verto/Makefile.in Sat Nov 21 12:05:30 2020 @@ -19,7 +19,7 @@ $(OUTPRE)verto-k5ev.$(OBJEXT) SRCS=verto.c module.c verto-k5ev.c -SHLIB_EXPLIBS= $(LIBS) -lm # libm needed for ceil() currently. +SHLIB_EXPLIBS= $(LIBS) VERTO_HDR=$(BUILDTOP)$(S)include$(S)verto.h Indeed I believe that OpenBSD is not the only operating system to bundle the math libraries with libc. Therefore I propose that ./configure should detect whether ceil() can be invoked without -lm and only append -lm for platforms that require it. Fourthly, pkinit seems incompatible with libressl, OpenBSD's replacement for openssl; we are missing some symbols such as OBJ_get0_data() and X509_get_key_usage(). I found that surprising, but I have no use for pkinit so in lieu of investigating I disabled it at configure time. ./configure CC=cc CXX=c++ --disable-pkinit Until pkinit is properly fixed I suggest --disable-pkinit become the default on OpenBSD. With these four minor changes I was able to build and install MIT Kerberos 5 1.18.3 on my OpenBSD system. Thank you for your work on this product. — RHC.