GNOME Bugzilla – Bug 396261
imagemap plug-in has invalid source in (generated?) file
Last modified: 2007-01-15 10:11:21 UTC
there is a stray semicolon in file plug-ins/imagemap/imap_csim_parse.c which break the build on win32 with msvc. The following patch would fix it: Index: plug-ins/imagemap/imap_csim_parse.c =================================================================== --- plug-ins/imagemap/imap_csim_parse.c (Revision 21704) +++ plug-ins/imagemap/imap_csim_parse.c (Arbeitskopie) @@ -1037,7 +1037,7 @@ #else int yyparse () - ; +/* ; */ #endif #endif {
The file is generated. You need to fix the problem in the file(s) that it is generated from.
AFAIK the failing part comes from a template file distributed with bison, not from anything in the gimp source tree. The stray semicolon got added with the following comment: 2006-05-12 Michael Natterer <mitch@gimp.org> * plug-ins/imagemap/imap_csim_parse.[ch]: regenerated (using bison 2.1 instead of 2.0, lots of things changed, please test). One way to fix that may be to simply use bison 2.2, or maybe not. I've just tried but the stray semicolon persists. So the next step is to write a mail to bug-bison@gnu.org ?
When the file is generated with bison 2.3 (under FC6) I don't get that extra ; being reported. Get a newer copy of bison or modify your /usr/share/bison/yacc.c file.
We should regenerate the files in SVN using bison 2.3 then.
2007-01-15 Sven Neumann <sven@gimp.org> * plug-ins/imagemap/imap_csim_lex.c * plug-ins/imagemap/imap_ncsa_parse.[ch] * plug-ins/imagemap/imap_ncsa_lex.c * plug-ins/imagemap/imap_cern_lex.c * plug-ins/imagemap/imap_csim_parse.[ch] * plug-ins/imagemap/imap_cern_parse.[ch]: regenerated using GNU Bison 2.3. Should fix bug #396261.