Subject: | Bug+fix in Perl Module JSON::DWIW |
Date: | Thu, 17 Sep 2009 09:40:53 +0200 |
To: | bug-JSON-DWIW [...] rt.cpan.org |
From: | Luca Monfardini <luca.monfardini [...] gmail.com> |
To whom it may concern.
I'm here to signal the following problem while trying to install Perl Module
'JSON::DWIW':
...
# perl Makefile.PL
Writing Makefile for JSON::DWIW
# make
cp lib/JSON/DWIW/Boolean.pm blib/lib/JSON/DWIW/Boolean.pm
cp lib/JSON/DWIW/Changes.pm blib/lib/JSON/DWIW/Changes.pm
cp lib/JSON/DWIW.pm blib/lib/JSON/DWIW.pm
cc -Ilibjsonevt -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8
-D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"0.37\"
-DXS_VERSION=\"0.37\" -o libjsonevt/make_config libjsonevt/make_config.c
...
cc -c -Ilibjsonevt -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8
-D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"0.37\"
-DXS_VERSION=\"0.37\" -KPIC
"-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DHAVE_JSONEVT
-DNO_VERSION_IN_ERROR libjsonevt/jsonevt.c
"libjsonevt/jsonevt.c", line 209: syntax error before or at: JSON_DEBUG
"libjsonevt/jsonevt.c", line 670: warning: statement not reached
"libjsonevt/jsonevt.c", line 1097: warning: statement not reached
cc: acomp failed for libjsonevt/jsonevt.c
*** Error code 2
make: Fatal error: Command failed for target `jsonevt.o'
Operating environment:
# uname -a
SunOS gemibiz10 5.10 Generic_139555-08 sun4v sparc
SUNW,SPARC-Enterprise-T1000
# perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
...
I won't delve into many details as the problem's solution is straight and is
to be found in the error message:
"libjsonevt/jsonevt.c", line 209: syntax error before or at: JSON_DEBUG
Just edit file jsonevt.c, locate line 209:
JSONEVT_NEW(error, loc_len + msg_len + 1, char)
Add a semicolon at the end of the line, save and repeat the installation
procedure.
Thank you very much for the marvellous job that you are doing and have a
nice day.
Luca