From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2503 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Status of musl and RPC libraries Date: Mon, 24 Dec 2012 12:05:22 -0800 Message-ID: <20121224120522.6d7cf56a.idunham@lavabit.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1356379537 14824 80.91.229.3 (24 Dec 2012 20:05:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Dec 2012 20:05:37 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2504-gllmg-musl=m.gmane.org@lists.openwall.com Mon Dec 24 21:05:53 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TnEHY-0004Mb-DC for gllmg-musl@plane.gmane.org; Mon, 24 Dec 2012 21:05:52 +0100 Original-Received: (qmail 11757 invoked by uid 550); 24 Dec 2012 20:05:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11746 invoked from network); 24 Dec 2012 20:05:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=xjEdf04BH3Le+jeHj/AriF0ywtIOERfFugoom7ugSnmOPayCQUCv4vuBpweRwVOO5RnfWYdHavC/Fm1gKEvwIIPptPgGsuWwDxc8zcpCPtHVeshL4DtoUO/bd84J/oA+DHgnb8Cpj2OMMAaR7oKb2z0z50MESS5bujMNhRfj1NA=; h=Date:From:To:Subject:Message-Id:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:2503 Archived-At: I've given up on getting libtirpc to work; it requires NIS and quite a bit of RPC support in the libc(!). In fact, when glibc 2.14 dropped the RPC headers, it broke libtirpc compilation (thus all newer glibc versions have them). Besides that, I've found a few potential solutions for RPC support: -An updated port of DCE/RPC maintained originally by Novell, now by Apple. Needs autoconf (no configure script provided). -gssrpc, which is a wrapper around Kerberos, but I don't know if it is a dropin RPC solution... -Porting OpenBSD RPC (if anyone's doing a BSD-based RPC, that's the best option: FreeBSD hasn't updated their RPC implementation recently, so it cannot be used as a standalone library per the license!) -Porting Android librpc. Approach number 4 was the quickest, so if you're curious, see https://github.com/idunham/libdrpc While I was porting this, I ran across one minor issue: Linux poll(2) supports POLLRDHUP (0x2000), which _GNU_SOURCE makes available in on glibc. This will detect when the streeam socket peer has closed the connection. I'm not aware of a POSIX equivalent to this. Any chance of this getting added to poll.h (with proper feature tests)? Thanks, Isaac Dunham