Re: Problem compiling ddd from Subversion source on Fedora Core 5
"Andrew Gaylard" <[email protected]>
| Newsgroups | gmane.comp.debugging.ddd.general |
|---|---|
| Message-ID | <[email protected]> |
On 10/24/06, Peter Wainwright <[email protected]> wrote:[snip] > It seems that the files vsl-gramma.C and vsl-gramma.h are rebuilt from > vsl-gramma.Y using bison followed by ./yacctoC. Unfortunately in Bison > 2.1 > (as found on FC5), yacc.c contains a declaration for free(void *). > yacctoC replaces free(x) by delete[] x, which corrupts this declaration > and produces "delete[] void *", which is meaningless. > > The same problem is present in the trunk. The workaround is to use an > older > Bison (1.875). This version was used to generate vsl-gramma.C in the > Fedora DDD source RPM. Peter, Thanks for investigating this. I don't have FC5 around, so I can't really follow this up. Firstly: I see that the most recent release of bison is 2.3: ftp://ftp.gnu.org/gnu/bison/ Does the problem still occur with it? If so, then we'll have to make a fix. If not, then perhaps this was an abberation in certain bison variations? Then we can simply make a note in the build process. It seems odd (to me, anyway) that yacc contains it's own declaration of free. Is there no way (command-line switch) to disable this behaviour? Alternatively, perhaps yacctoC can be made to remove the earlier free() declaration? Andrew. _______________________________________________ Ddd mailing list [email protected] http://lists.gnu.org/mailman/listinfo/ddd