[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: build failures: string.h vs. HP-UX
From: |
Bob Proulx |
Subject: |
Re: build failures: string.h vs. HP-UX |
Date: |
Fri, 26 Jan 2007 22:52:56 -0700 |
User-agent: |
Mutt/1.5.9i |
Jim Meyering wrote:
> Check out the red columns here:
>
> http://proulx.com:9000/
>
> Maybe a system-provided mempcpy macro is causing trouble?
> ...
> cc -I. -Ae -O -c mempcpy.c
> cc: "string.h", line 39: error 1000: Unexpected symbol: "__dest".
> cc: "string.h", line 39: error 1000: Unexpected symbol: "__src".
> cc: "string.h", line 39: error 1573: Type of "__src" is undefined due to an
> illegal declaration.
Line 39 in the file is this:
void *mempcpy (void *restrict __dest, void const *restrict __src, size_t __n);
But the HP-UX C compiler needs -AC99 in order to enable the restrict
keyword, according to this man page:
man cc
...
-Amode Specify the compilation standard to be used by the
compiler. mode can be one of the following letters:
...
C99 This option needs to be used for C99 specific
features. For example, it enables keywords like
restrict and typeof to be recognized. Without
this option, the keywords __restrict__ and
__typeof__ need to be used instead.
If I force -AC99 then that file compiles. I did not yet try a full
compilation that way.
Bob
- build failures: string.h vs. HP-UX, Jim Meyering, 2007/01/26
- Re: build failures: string.h vs. HP-UX,
Bob Proulx <=
- Re: build failures: string.h vs. HP-UX, Jim Meyering, 2007/01/27
- Re: build failures: string.h vs. HP-UX, Jim Meyering, 2007/01/27
- enforcing the use of string.h related modules, Bruno Haible, 2007/01/27
- Re: enforcing the use of string.h related modules, Eric Blake, 2007/01/27
- Re: enforcing the use of string.h related modules, Bruno Haible, 2007/01/31
- Re: enforcing the use of string.h related modules, Eric Blake, 2007/01/31
- Re: enforcing the use of string.h related modules, Bruno Haible, 2007/01/31
- Re: build failures: string.h vs. HP-UX, Bob Proulx, 2007/01/27
- Re: build failures: string.h vs. HP-UX, Bob Proulx, 2007/01/27
- Re: build failures: string.h vs. HP-UX, Jim Meyering, 2007/01/28