missingthepoint has asked for the wisdom of the Perl Monks concerning the following question:

Howdy, monks.

To reiterate, the build of SGML::Parser::OpenSP is failing on me, and I'm enough of a newbie to be stumped.

(Note, the *build*; not the tests.)

The relevant error stuff:
Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lstdc++ Note (probably harmless): No library found for -losp [snip] g++ -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_L +ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mtune=i686 -O2 -pipe -fforce- +addr -DVERSION=\"0.991\" -DXS_VERSION=\"0.991\" -fPIC "-I/usr/lib/p +erl5/5.8.8/i686-linux/CORE" -DSP_MULTI_BYTE=1 OpenSP.c cc1plus: warning: command line option "-Wdeclaration-after-statement" +is valid for C/ObjC but not for C++ OpenSP.xs:26:44: OpenSP/ParserEventGeneratorKit.h: No such file or dir +ectory OpenSP.xs:33: error: expected class-name before '{' token
Which is followed by a lot more junk. I have no idea how to resolve failed CPAN builds.

I suspect that the 'probably harmless' notes aren't.

Google yields links to archives of the cpan-testers mailing list, but nothing more.

(Apologies if this should go somewhere else - $_ ? enlighten_me : '';)

Ideas?


--
Just another hurl packer

Replies are listed 'Best First'.
Re: CPAN install of SGML::Parser::OpenSP fails
by stiller (Friar) on Feb 17, 2008 at 08:28 UTC
    Hi,

    the important lines are probably:

    Note (probably harmless): No library found for -lstdc++ Note (probably harmless): No library found for -losp

    Try to install OpenSP (OpenJade group's SGML parsing tools) before you try again to install this module again from CPAN.

    If you are on Linux you will find OpenSP in your package-tool.
    hth

Re: CPAN install of SGML::Parser::OpenSP fails
by Anonymous Monk on Feb 17, 2008 at 09:26 UTC
Re: CPAN install of SGML::Parser::OpenSP fails
by hipowls (Curate) on Feb 17, 2008 at 08:29 UTC

    It looks like you will need to install the correct packages. The libraries are, more than likely, present but the headers are missing. For example on my SUSE machine I have to install the lib???-devel packages as well as the lib??? ones.

    Whatever package manager you have will provide some method for searching for the packages that provide libstdc++, libosp and their header files

Re: CPAN install of SGML::Parser::OpenSP fails
by missingthepoint (Friar) on Feb 17, 2008 at 11:33 UTC
    Thanks all!

    Installing my system's OpenSP package did the trick.

    Anonymous Monk, that's what I needed to know. I didn't know CPAN packages had dependency lists external dependencies that needed manual install. Ta.


    --
    Just another hurl packer