* [compatability] sys/cdefs.h not shipped
@ 2011-09-07 6:48 Isaac Dunham
2011-09-07 20:11 ` Rich Felker
0 siblings, 1 reply; 3+ messages in thread
From: Isaac Dunham @ 2011-09-07 6:48 UTC (permalink / raw)
To: musl
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 others, but those were the two I tried.
And no, a stub like features.h won't do the job.
--
Isaac Dunham <idunham@lavabit.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [compatability] sys/cdefs.h not shipped
2011-09-07 6:48 [compatability] sys/cdefs.h not shipped Isaac Dunham
@ 2011-09-07 20:11 ` Rich Felker
2011-09-08 6:02 ` Isaac Dunham
0 siblings, 1 reply; 3+ messages in thread
From: Rich Felker @ 2011-09-07 20:11 UTC (permalink / raw)
To: musl
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
> others, but those were the two I tried.
> And no, a stub like features.h won't do the job.
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [compatability] sys/cdefs.h not shipped
2011-09-07 20:11 ` Rich Felker
@ 2011-09-08 6:02 ` Isaac Dunham
0 siblings, 0 replies; 3+ messages in thread
From: Isaac Dunham @ 2011-09-08 6:02 UTC (permalink / raw)
To: musl
On Wed, 7 Sep 2011 16:11:05 -0400
Rich Felker <dalias@aerifal.cx> 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 <idunham@lavabit.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-08 6:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-07 6:48 [compatability] sys/cdefs.h not shipped Isaac Dunham
2011-09-07 20:11 ` Rich Felker
2011-09-08 6:02 ` Isaac Dunham
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).