public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* binutils 2.34 on tru64
@ 2021-07-04 22:46 Jay K
  0 siblings, 0 replies; only message in thread
From: Jay K @ 2021-07-04 22:46 UTC (permalink / raw)
  To: binutils; +Cc: Larkin Nickle

/users/jay/s/binutils-2.34/libctf/ctf-create.c: In function 'ctf_add_function':
/usr/users/jay/s/binutils-2.34/libctf/ctf-create.c:1072:32: error: 'EOVERFLOW' undeclared (first use in this function)

/usr/include/errno.h:

/* Spec1170 errors */

#if defined(_XOPEN_SOURCE_EXTENDED) || defined(_LIBC_POLLUTION_H_) || defined(_KERNEL)

#define EMULTIHOP               101             /* Reserved */
#define ENOLINK                 102             /* Reserved */
#define EOVERFLOW               103             /* Value too large to be */
                                                /*   stored in data type */

#endif  /* _XOPEN_SOURCE_EXTENDED || _KERNEL */


I put this near the top of ctf-create.c to workaround:

/* get EOVERFLOW from /usr/include/errno.h */
#ifdef __osf__
#define _XOPEN_SOURCE_EXTENDED 1
#include <errno.h>
#endif

I understand it might be desirable to define _XOPEN_SOURCE_EXTENDED consistently instead of just in one file.
 (I suspect all the defines to protect the global namespace may be far more trouble than they are avoiding, alas.)

I understand gas and ld are not supported, which is what I'd really like from binutils, to enable cross builds.
Would support for that maybe be interesting/accepted?
It seems maybe the file format support is there, "ecoff", for some definition of "ecoff", I have to look closer..

Thank you,
 - Jay

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-04 22:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-04 22:46 binutils 2.34 on tru64 Jay K

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 read-only IMAP folder(s) and NNTP newsgroup(s).