Problem compiling ddd from Subversion source on Fedora Core 5

Peter Wainwright <[email protected]>
Newsgroups gmane.comp.debugging.ddd.general
Message-ID <[email protected]>
I checked out the svn tag "DDD_3_3_11" (well in fact the branch
"gddd" which I just created as a copy of it) and tried to compile
using CVSMake; ./configure; make.
This failed here:

if g++ -DHAVE_CONFIG_H -I. -I. -I.  -I./..    -O2 -g -Wall -W
-Wwrite-strings -trigraphs  -MT VSLRead.o -MD -MP -MF
".deps/VSLRead.Tpo" -c -o VSLRead.o VSLRead.C; \
then mv -f ".deps/VSLRead.Tpo" ".deps/VSLRead.Po"; else rm -f
".deps/VSLRead.Tpo"; exit 1; fi
y.tab.c:343: error: expected unqualified-id before ‘delete’
lex.vsl.c:1559: warning: ‘void vslunput(int, char*)’ defined but not
used
make[1]: *** [VSLRead.o] Error 1
make[1]: Leaving directory `/home/prw/src/ddd/gddd/ddd'
make: *** [all] Error 2

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 Wainwright

_______________________________________________
Ddd mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/ddd
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFPmjLZlbFk+UVjRoRAkHFAJ90HkMbCtWbaMzow+s6j2NCbnmalACdGWQ8
DCyEdAbyp193JwDLnBcJB5k=
=ASHm
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.