ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem compiling ddd from Subversion source on Fedora Core 5


From: Peter Wainwright
Subject: Problem compiling ddd from Subversion source on Fedora Core 5
Date: Tue, 24 Oct 2006 20:26:03 +0100

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

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]