Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#35115 closed defect (fixed)

p5-sgml-parser-opensp @0.994.0_4 build fails

Reported by: mndavidoff (Monte Davidoff) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: haspatch Cc: jmroot (Joshua Root)
Port: p5-sgml-parser-opensp, p5.8-sgml-parser-opensp, p5.10-sgml-parser-opensp, p5.12-sgml-parser-opensp, p5.14-sgml-parser-opensp, p5.16-sgml-parser-opensp

Description

The p5.16-sgml-parser-opensp port fails to build:

$ sudo port -vs install p5.16-sgml-parser-opensp
--->  Computing dependencies for p5.16-sgml-parser-opensp.
--->  Fetching distfiles for p5.16-sgml-parser-opensp
--->  Verifying checksum(s) for p5.16-sgml-parser-opensp
--->  Checksumming SGML-Parser-OpenSP-0.994.tar.gz
--->  Extracting p5.16-sgml-parser-opensp
--->  Extracting SGML-Parser-OpenSP-0.994.tar.gz
--->  Applying patches to p5.16-sgml-parser-opensp
--->  Applying Makefile.PL.patch
patching file Makefile.PL
--->  Configuring p5.16-sgml-parser-opensp
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lstdc++
Writing Makefile for SGML::Parser::OpenSP
Writing MYMETA.yml and MYMETA.json
--->  Building p5.16-sgml-parser-opensp
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-sgml-parser-opensp/p5.16-sgml-parser-opensp/work/SGML-Parser-OpenSP-0.994'
/opt/local/bin/perl5.16 /opt/local/lib/perl5/vendor_perl/5.16.0/ExtUtils/xsubpp  -C++ -typemap /opt/local/lib/perl5/5.16.0/ExtUtils/typemap -typemap typemap  OpenSP.xs > OpenSP.xsc && mv OpenSP.xsc OpenSP.c
cp lib/SGML/Parser/OpenSP.pm blib/lib/SGML/Parser/OpenSP.pm
cp lib/SGML/Parser/OpenSP/Tools.pm blib/lib/SGML/Parser/OpenSP/Tools.pm
Running Mkbootstrap for SGML::Parser::OpenSP ()
chmod 644 OpenSP.bs
cp OpenSP.bs blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bs
chmod 644 blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bs
/usr/bin/gcc-4.2 -c   -pipe -O2 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include -arch x86_64 -O3   -DVERSION=\"0.994\" -DXS_VERSION=\"0.994\"  "-I/opt/local/lib/perl5/5.16.0/darwin-thread-multi-2level/CORE"  -DSP_MULTI_BYTE=1 OpenSP.c
OpenSP.xs:14: error: expected identifier or ‘(’ before string constant
In file included from /opt/local/include/OpenSP/EventGenerator.h:11,
                 from /opt/local/include/OpenSP/ParserEventGeneratorKit.h:11,
                 from OpenSP.xs:26:
/opt/local/include/OpenSP/SGMLApplication.h:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SGMLApplication’
/opt/local/include/OpenSP/SGMLApplication.h:295: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
/opt/local/include/OpenSP/SGMLApplication.h:302: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
/opt/local/include/OpenSP/SGMLApplication.h:308: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
In file included from /opt/local/include/OpenSP/ParserEventGeneratorKit.h:11,
                 from OpenSP.xs:26:
/opt/local/include/OpenSP/EventGenerator.h:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EventGenerator’
In file included from OpenSP.xs:26:
/opt/local/include/OpenSP/ParserEventGeneratorKit.h:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ParserEventGeneratorKitImpl’
/opt/local/include/OpenSP/ParserEventGeneratorKit.h:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ParserEventGeneratorKit’
OpenSP.xs:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SgmlParserOpenSP’
OpenSP.xs:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HvvAttributes’
OpenSP.xs:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘HvvByteOffset’
...

This problem was previously fixed in r94661. Something must have happened and the r94661 fix is no longer working. The attached patch to the patchfile is another way to fix it.

Attachments (2)

main.log.gz (4.6 KB) - added by mndavidoff (Monte Davidoff) 12 years ago.
Makefile.PL.patch.diff (616 bytes) - added by mndavidoff (Monte Davidoff) 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by mndavidoff (Monte Davidoff)

Attachment: main.log.gz added

Changed 12 years ago by mndavidoff (Monte Davidoff)

Attachment: Makefile.PL.patch.diff added

comment:1 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

r95262, probably

comment:2 Changed 12 years ago by mndavidoff (Monte Davidoff)

That worked. Thanks!

Note: See TracTickets for help on using tickets.