From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/462 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: [compatability] sys/cdefs.h not shipped Date: Wed, 7 Sep 2011 23:02:44 -0700 Message-ID: <20110907230244.0cd92284.idunham@lavabit.com> References: <20110906234813.daa8abce.idunham@lavabit.com> <20110907201105.GL132@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1315461879 27617 80.91.229.12 (8 Sep 2011 06:04:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Sep 2011 06:04:39 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-463-gllmg-musl=m.gmane.org@lists.openwall.com Thu Sep 08 08:04:35 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1R1Xj0-00029o-8l for gllmg-musl@lo.gmane.org; Thu, 08 Sep 2011 08:04:34 +0200 Original-Received: (qmail 13720 invoked by uid 550); 8 Sep 2011 06:04:33 -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 13712 invoked from network); 8 Sep 2011 06:04:33 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=f8Q2muhmHTXPyoSC/q7n24aV2g/N969FhpOS692pm3pYl+CrTJT/FEOughdFf5fyG0PZM5z10+vwZJmZkccYqf12H3AUseB/FnnfGvL9iDcD6VWXL4DE0ECNd7U4aPMWB28IReDnPS1ORyv+duQJssxbcDGYqp3iPzNFIskMYuM=; h=Date:From:To:Subject:Message-Id:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <20110907201105.GL132@brightrain.aerifal.cx> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:462 Archived-At: On Wed, 7 Sep 2011 16:11:05 -0400 Rich Felker wrote: > On Tue, Sep 06, 2011 at 11:48:13PM -0700, Isaac Dunham wrote: > > sys/cdefs.h is required by TI-RPC (an ipv6 compatible derivative of > > the 'sun-rpc' code in gnu libc) and by libbsd; there are certainly > Could you elaborate on what's needed from this file? It's definitely a > bug for any program to be using the stuff in cdefs.h, which is pretty > much all double-underscore-prefixed macros for internal use by glibc > to facilitate compiling in pre-ANSI C compilers, which is almost > certainly not going to work anyway. Is TI-RPC working on other > non-GNU/Linux systems, which probably don't have this header? > > Rich > Looks like the issue's mostly __BEGIN_DECLS & __END_DECLS, which glibc does thus: #ifdef __cplusplus # define __BEGIN_DECLS extern "C" { # define __END_DECLS } #else # define __BEGIN_DECLS # define __END_DECLS #endif (Also, sys/cdefs.h exports c90 functions in namespace std, and does other stuff to let headers work with both C & C++). Besides that, configure has no idea how to handle musl or the machine name, and the chroot I'm using needs fixing... -- Isaac Dunham