Operating System - Linux
1748166 Members
3648 Online
108758 Solutions
New Discussion юеВ

Building Perl module SGML-Parser-OpenSP

 
PatRoy
Regular Advisor

Building Perl module SGML-Parser-OpenSP

Hi. I'm having a hell of a hard time building just 1 single perl module. I've built everything (Perl, and a bunch of modules) with GCC 3.4.5 without any problems! But this one module, just won't do it!

Module name is: SGML-Parser-OpenSP version 0.99

See:
http://pastebin.com/m2dad9b36

Can anyone think of anything? I'm desperate here :(
4 REPLIES 4
TY 007
Honored Contributor

Re: Building Perl module SGML-Parser-OpenSP

TY 007
Honored Contributor

Re: Building Perl module SGML-Parser-OpenSP

Hello Pat,

Use Latest Perl 5.8.8 as well:
https://h20293.www2.hp.com/portal/swdepot/try.do?productNumber=PERL

Thanks
PatRoy
Regular Advisor

Re: Building Perl module SGML-Parser-OpenSP

Well, Perl was already at 5.8.8. OpenSP to 1.5.2 and the SGML-Parser-OpenSP 0.99. All at the latest stable versions.

I was using GCC 3.4.5, GCC 4.2.1 wouldn't work for me!

I already found how to fix this.. Here's how:


1. Make you're you've symlinked the OpenSP libs in /usr/local/lib:
/usr/local/lib/libosp.a -> /opt/OpenSP/lib/libosp.a
/usr/local/lib/libosp.la -> /opt/OpenSP/lib/libosp.la
/usr/local/lib/libosp.sl -> /opt/OpenSP/lib/libosp.sl.5.0
/usr/local/lib/libosp.sl.5 -> /opt/OpenSP/lib/libosp.sl.5.0
/usr/local/lib/libosp.sl.5.0 -> /opt/OpenSP/lib/libosp.sl.5.0

*** Even if we just add the '-L/opt/OpenSP/lib' to the LIBS option of the Makefile.PL, the tests will fail!!!
*** And don't even think of trying with either SHLIB_PATH or LD_LIBRARY_PATH! It's doesn't change crap!!!

2. tuxtst04:/depot/spo# vi Makefile.PL

REPLACE:
$options{LD} = "g++";
$options{CC} = "g++";
$options{LIBS} = "-lstdc++ -losp";

WITH:
$options{LD} = "ld";
$options{CC} = "g++";
$options{LIBS} = "-L/opt/hp-gcc/lib -losp";
$options{INC} = "-I/opt/OpenSP/include";

3. tuxtst04:/depot/spo# /opt/perl-5.8.8-r2/bin/perl Makefile.PL

4. tuxtst04:/depot/spo# make

5. tuxtst04:/depot/spo# make test

6. tuxtst04:/depot/spo# make install


Kinda stupid to have to 'hack' the makefile like this.. but that's the only way it compiled and had successful tests...

Thanks anyways.
Patrick
PatRoy
Regular Advisor

Re: Building Perl module SGML-Parser-OpenSP

Fixed.