Subject: Re: Build failure - libexec/ld.elf_so
To: None <current-users@netbsd.org>
From: Paul Goyette <paul@whooppee.com>
List: current-users
Date: 08/16/2007 17:43:58
The following patch makes this compile...

Index: rtld.h
===================================================================
RCS file: /cvsroot/src/libexec/ld.elf_so/rtld.h,v
retrieving revision 1.74
diff -u -p -r1.74 rtld.h
--- rtld.h      18 May 2007 21:44:09 -0000      1.74
+++ rtld.h      17 Aug 2007 00:43:34 -0000
@@ -64,7 +64,7 @@ extern int _rtld_pagesz;
   * C++ has mandated the use of the following keywords for its new boolean
   * type.  We might as well follow their lead.
   */
-typedef enum {
+typedef enum _bool {
         false = 0,
         true = 1
  } bool;


On Thu, 16 Aug 2007, Paul Goyette wrote:

> Getting the following errors in several source files, including expand.c and 
> paths.c
>
> Sources updated via CVS just minutes ago...  This is on port-amd at least.
>
> In file included from /usr/src/libexec/ld.elf_so/expand.c:55:
> /usr/src/libexec/ld.elf_so/rtld.h:68: error: expected identifier before 
> numeric constant
> /usr/src/libexec/ld.elf_so/rtld.h:70: error: two or more data types in 
> declaration specifiers
> cc1: warnings being treated as errors
> /usr/src/libexec/ld.elf_so/rtld.h:70: warning: useless storage class 
> specifier in empty declaration
>
>
> ----------------------------------------------------------------------
> |   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
> | Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul@whooppee.com   |
> | Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette@juniper.net |
> ----------------------------------------------------------------------
>

----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul@whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette@juniper.net |
----------------------------------------------------------------------