[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison-2.6.1 released [stable]
From: |
Akim Demaille |
Subject: |
Re: bison-2.6.1 released [stable] |
Date: |
Mon, 30 Jul 2012 15:04:19 +0200 |
Le 30 juil. 2012 à 14:03, Hans Aberg a écrit :
> There were errors: it did not complete compilation.
Ah. What's --version of these compilers? I have tons of
warnings, but no errors.
> CC stpcpy.o
> ../../bison-2.6.1/lib/stpcpy.c:36:1: error: expected parameter declarator
> __stpcpy (char *dest, const char *src)
> ^
What the heck??? The lines are:
34 /* Copy SRC to DEST, returning the address of the terminating '\0' in DEST.
*/
35 char *
36 __stpcpy (char *dest, const char *src)
37 {
So really, I fail to see what could be wrong here. I guess
the issue is elsewhere. Maybe stpcpy is already defined as
a macro elsewhere.
Could you investigate this? For instance run "make V=1" to
get the compilation for this file, and try to run the same
command, but replacing -c by -E to get the result from the
preprocessor.
> ../../bison-2.6.1/lib/stpcpy.c:31:19: note: expanded from macro '__stpcpy'
> # define __stpcpy stpcpy
> ^
> /usr/include/secure/_string.h:99:5: note: expanded from macro 'stpcpy'
> ((__darwin_obsz0 (dest) != (size_t) -1) \
> ^
Ah, ok, forget it, the message says it: this is indeed a macro.
So, in stpcpy.c, if you replace
#undef __stpcpy
#ifdef _LIBC
# undef stpcpy
#endif
by
#undef __stpcpy
#undef stpcpy
I guess it works? I would also need config.log please.
- bison-2.6.1 released [stable], Akim Demaille, 2012/07/30
- Re: bison-2.6.1 released [stable], Hans Aberg, 2012/07/30
- Re: bison-2.6.1 released [stable], Akim Demaille, 2012/07/30
- Re: bison-2.6.1 released [stable], Hans Aberg, 2012/07/30
- Re: bison-2.6.1 released [stable],
Akim Demaille <=
- Re: bison-2.6.1 released [stable], Hans Aberg, 2012/07/30
- Re: bison-2.6.1 released [stable], Akim Demaille, 2012/07/30
- Re: bison-2.6.1 released [stable], Hans Aberg, 2012/07/30
- Re: bison-2.6.1 released [stable], Akim Demaille, 2012/07/30
- Re: bison-2.6.1 released [stable], Hans Aberg, 2012/07/30
- Message not available
- Re: bison-2.6.1 released [stable], Hans Aberg, 2012/07/30
- Re: bison-2.6.1 released [stable], Hans Aberg, 2012/07/30
- Re: bison-2.6.1 released [stable], Akim Demaille, 2012/07/30
- Re: bison-2.6.1 released [stable], Hans Aberg, 2012/07/30
bison-2.6.1 doesn't build on Solaris 8, Paul Eggert, 2012/07/30