From owner-freebsd-arch@freebsd.org Wed Jun 14 13:58:37 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 23CA6D8E62B for ; Wed, 14 Jun 2017 13:58:37 +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 E4E1E641E1 for ; Wed, 14 Jun 2017 13:58:36 +0000 (UTC) (envelope-from lew@perftech.com) X-ASG-Debug-ID: 1497447516-09411a0eba517440001-RYubVt Received: from mail.pt.net (mail.pt.net [206.210.194.11]) by smtp-gw.pt.net with ESMTP id syFqIeEHnGNA1RGj (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 14 Jun 2017 08:38:36 -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 C06F4842605; Wed, 14 Jun 2017 08:38:36 -0500 (CDT) Received: from mail.pt.net ([IPv6:::1]) by localhost (mail.pt.net [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id cr-zROIJsM13; Wed, 14 Jun 2017 08:38:36 -0500 (CDT) Received: from localhost (localhost [IPv6:::1]) by mail.pt.net (Postfix) with ESMTP id 48EE5842631; Wed, 14 Jun 2017 08:38:36 -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 mSgU7IzdKcgk; Wed, 14 Jun 2017 08:38:36 -0500 (CDT) Received: from lewhome-dhcp-179.pt.net (lewhome-dhcp-179.pt.net [206.210.207.179]) (Authenticated sender: lew@pt.net) by mail.pt.net (Postfix) with ESMTPSA id D72D5842605; Wed, 14 Jun 2017 08:38:35 -0500 (CDT) From: Lewis Donzis Message-Id: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: mq on kqueue broken after upgrade to FreeBSD 11 Date: Wed, 14 Jun 2017 08:38:35 -0500 X-ASG-Orig-Subj: Re: mq on kqueue broken after upgrade to FreeBSD 11 In-Reply-To: <20161001210722.GC38409@kib.kiev.ua> Cc: Jilles Tjoelker , Alexander Kabaev , deischen@freebsd.org, freebsd-arch@freebsd.org To: Konstantin Belousov 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> X-Mailer: Apple Mail (2.3273) X-Barracuda-Connect: mail.pt.net[206.210.194.11] X-Barracuda-Start-Time: 1497447516 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: 1547 X-Virus-Scanned: by bsmtpd at pt.net X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.82 X-Barracuda-Spam-Status: No, SCORE=0.82 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=HTML_MESSAGE, MIME_QP_LONG_LINE, MIME_QP_LONG_LINE_2 X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.39832 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 HTML_MESSAGE BODY: HTML included in message 0.00 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars 0.82 MIME_QP_LONG_LINE_2 RAW: Quoted-printable line longer than 76 chars Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 13:58:37 -0000 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. 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 = =E2=80=9Cmake=E2=80=9D in /usr/src/lib/librt produces a librt.so.1 that = *does* have this function. I=E2=80=99m curious as to how it=E2=80=99s 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? Thanks, lew= From owner-freebsd-arch@freebsd.org Wed Jun 14 14:17:09 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 20B2DD8ECCF for ; Wed, 14 Jun 2017 14:17:09 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A70DA6509F; Wed, 14 Jun 2017 14:17:08 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id v5EEH3JX073555 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 14 Jun 2017 17:17:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua v5EEH3JX073555 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id v5EEH3lS073554; Wed, 14 Jun 2017 17:17:03 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 14 Jun 2017 17:17:03 +0300 From: Konstantin Belousov To: Lewis Donzis Cc: Jilles Tjoelker , Alexander Kabaev , deischen@freebsd.org, freebsd-arch@freebsd.org Subject: Re: mq on kqueue broken after upgrade to FreeBSD 11 Message-ID: <20170614141703.GN2088@kib.kiev.ua> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home 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 14:17:09 -0000 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. > > 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. > > 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? 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. 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. 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.