Subject: Re: can't build -current on i386, "PEXECUTE_SEARCH"
To: Adam Ciarcinski <adam@albedo.com.pl>
From: Todd Vierling <tv@pobox.com>
List: current-users
Date: 09/13/1998 16:43:20
On Sun, 13 Sep 1998, Adam Ciarcinski wrote:
: I had the same weird problem.
: pexecute.c has the following:
:
: #ifdef IN_GCC
: #include "gansidecl.h"
: /* ??? Need to find a suitable header file. */
: #define PEXECUTE_FIRST 1
: #define PEXECUTE_LAST 2
: #define PEXECUTE_ONE (PEXECUTE_FIRST + PEXECUTE_LAST)
: #define PEXECUTE_SEARCH 4
: #define PEXECUTE_VERBOSE 8
: #else
: #include "libiberty.h"
: #endif
:
: so PEXECUTE_xxx must be defined (they are in libiberty.h, aren't they?),
: but they are not. I added all #define-s before #endif and everything
: went fine. Is that a compiler bug?
Um, they _are_ defined in libiberty.h - see src/gnu/dist/include/libiberty.h
(excerpt below). As said before, make sure you have NO libiberty.h in
src/gnu/lib/bfd or its objdir.
=====
/* Definitions used by the pexecute routine. */
#define PEXECUTE_FIRST 1
#define PEXECUTE_LAST 2
#define PEXECUTE_ONE (PEXECUTE_FIRST + PEXECUTE_LAST)
#define PEXECUTE_SEARCH 4
#define PEXECUTE_VERBOSE 8
/* Execute a program. */
extern int pexecute PARAMS ((const char *, char * const *, const char *,
const char *, char **, char **, int));
--
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)