From owner-freebsd-arch@freebsd.org Wed Jun 14 19:23:59 2017 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1BA46BF2655 for ; Wed, 14 Jun 2017 19:23:59 +0000 (UTC) (envelope-from lew@perftech.com) Received: from smtp-gw.pt.net (smtp-gw.pt.net [206.210.194.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp-gw.pt.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E261876102 for ; Wed, 14 Jun 2017 19:23:58 +0000 (UTC) (envelope-from lew@perftech.com) X-ASG-Debug-ID: 1497468087-09411a0ebb52c920001-RYubVt Received: from mail.pt.net (mail.pt.net [206.210.194.11]) by smtp-gw.pt.net with ESMTP id 5LbNaR6Yrq1oCDCv (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 14 Jun 2017 14:21:27 -0500 (CDT) X-Barracuda-Envelope-From: lew@perftech.com X-Barracuda-Effective-Source-IP: mail.pt.net[206.210.194.11] X-Barracuda-Apparent-Source-IP: 206.210.194.11 Received: from localhost (localhost [IPv6:::1]) by mail.pt.net (Postfix) with ESMTP id 8C0EF8425F4; Wed, 14 Jun 2017 14:21:27 -0500 (CDT) Received: from mail.pt.net ([IPv6:::1]) by localhost (mail.pt.net [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id At8QkVkmbCVw; Wed, 14 Jun 2017 14:21:26 -0500 (CDT) Received: from localhost (localhost [IPv6:::1]) by mail.pt.net (Postfix) with ESMTP id BF23D842605; Wed, 14 Jun 2017 14:21:26 -0500 (CDT) X-Virus-Scanned: amavisd-new at pt.net Received: from mail.pt.net ([IPv6:::1]) by localhost (mail.pt.net [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id r80vwYn1Fd9n; Wed, 14 Jun 2017 14:21:26 -0500 (CDT) Received: from dhcp-221-110.perftech.com (dhcp-221-110.perftech.com [206.210.221.110]) (Authenticated sender: lew@pt.net) by mail.pt.net (Postfix) with ESMTPSA id 9E4A28425F4; Wed, 14 Jun 2017 14:21:26 -0500 (CDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: mq on kqueue broken after upgrade to FreeBSD 11 From: Lewis Donzis X-ASG-Orig-Subj: Re: mq on kqueue broken after upgrade to FreeBSD 11 In-Reply-To: <20170614141703.GN2088@kib.kiev.ua> Date: Wed, 14 Jun 2017 14:21:26 -0500 Cc: Jilles Tjoelker , Alexander Kabaev , deischen@freebsd.org, freebsd-arch@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <1BFDEE3C-0621-43F4-82AB-BB030F00F39D@perftech.com> References: <8A6CD0D3-C4D5-40DF-B2AD-4C454CC88AD1@perftech.com> <20160930094544.GP38409@kib.kiev.ua> <19A6EEAA-C68E-4DAD-B98F-4D904734BD8B@perftech.com> <20160930152006.GS38409@kib.kiev.ua> <20160930184418.1047afc2@kan> <20161001092515.GW38409@kib.kiev.ua> <20161001201655.GA91457@stack.nl> <20161001210722.GC38409@kib.kiev.ua> <20170614141703.GN2088@kib.kiev.ua> To: Konstantin Belousov X-Mailer: Apple Mail (2.3273) X-Barracuda-Connect: mail.pt.net[206.210.194.11] X-Barracuda-Start-Time: 1497468087 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://smtp-gw.pt.net:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1616 X-Virus-Scanned: by bsmtpd at pt.net X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.39845 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2017 19:23:59 -0000 Ah, yes, I see that it's in 11.0-STABLE, but I suppose it's not in = 11.0-RELEASE. Thanks for that, we=E2=80=99ll either update to STABLE or just wait = another month for 11.1-RELEASE. Thanks, lew > On Jun 14, 2017, at 9:17 AM, Konstantin Belousov = wrote: >=20 > On Wed, Jun 14, 2017 at 08:38:35AM -0500, Lewis Donzis wrote: >> We had a discussion last October about __mq_oshandle() no longer = being visible in FreeBSD 11, and I think the result was that it should = be put back in the Symbol.map. There was also some discussion about = renaming it. >>=20 >> At the moment (11.0-RELEASE-p10), the function is still missing from = librt.so.1, but is present in librt.a. What seems odd is that running = ???make??? in /usr/src/lib/librt produces a librt.so.1 that *does* have = this function. >>=20 >> I???m curious as to how it???s possible that librt.a has the function = but the released librt.so.1 does not have it, yet rebuilding from source = does include the function? >=20 > The versioning on librt was broken some time ago, but I think it was = fixed > before 11.0. Anyway, it works for me in HEAD and stable/11. > librt.a, as any static library, does not support versioning so any = symbol > from the library can be accessed by linked code. This is one of the = reasons > why static linking is discouraged. >=20 > It was decided that a symbol in the app-useable namespace must be = officially > exported from librt, and we export mq_getfd_np() for your purposes. = Again, > I am not sure was it done before 11.0 or after, but the symbol is = definitely > present in stable/11 and in upcoming 11.1.