Esa A E Peuha | 3 Sep 00:34
Picon
Picon

Bug in replacing strndup

Replacing libc function strndup during building of Bison 2.3 doesn't
work quite right; if the configure script determines that libc has
non-working strndup, then lib/strndup.o defines symbol `strndup' while
other .o files refer to symbol `rpl_strndup', and compilation halts with
this message:

../lib/libbison.a(xstrndup.o)(.text+0x5): In function `xstrndup':
.../bison-2.3/lib/xstrndup.c:35: undefined reference to `rpl_strndup'

--

-- 
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/

Jim Michaels | 23 Sep 07:59
Picon
Favicon
Gravatar

bison 2.1 inserts extraneous semicolon in yyparse definition

bison 2.1 bug
inserts extraneous semicolon in yyparse definition

using "GNU Software for MS-DOS and Windows" and compatible systems. cd-rom edition 2, July 2001.
environment that came on GNU CD (no updates available, doesn't come with GCC compiler)
 on Windows XP Pro Sp3.

around line 827 of the generated *.tab.c, you get this:

#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
int yyparse (void *YYPARSE_PARAM)
# else
int yyparse (YYPARSE_PARAM)
  void *YYPARSE_PARAM;
# endif
#else /* ! YYPARSE_PARAM */
#if defined (__STDC__) || defined (__cplusplus)
int
yyparse (void)
#else
int
yyparse ()
    ;      <-------problem
#endif
#endif
{

  int yystate;
  int yyn;
(Continue reading)

Akim Demaille | 23 Sep 17:22
Picon
Picon
Picon
Gravatar

Re: bison 2.1 inserts extraneous semicolon in yyparse definition


This is fixed in more recent versions of Bison, the latest one being  
2.3.  Thanks!


Gmane