Yes, this looks like the linking problem. Olders version of compiler
have problem with the linkage of C programs and C++ libraries. Try to
add -lgcc in the Makefile.PL (near -lexpat).
If it won't work, try to find another 'suspicious' library to link with.
Pavel
Janus Liebregts wrote:
> Hi,
>
> this quick fix did it (no errors anymore)! but now the 'make test'
> fails:
>
> [janus@host5 XML-Sablotron-0.50]$ make
> [janus@host5 XML-Sablotron-0.50]$ make test
> PERL_DL_NONLAZY=1 /usr/bin/perl -I./blib/arch -I./blib/lib
> -I/usr/lib/perl5/i386
> -linux/5.00404 -I/usr/lib/perl5 test.pl
> 1..10
> Can't load './blib/arch/auto/XML/Sablotron/Sablotron.so' for module
> XML::Sablotr
> on: /usr/local/lib/libsablot.so.0: undefined symbol: __eh_pc at
> /usr/lib/perl5/i
> 386-linux/5.00404/DynaLoader.pm line 166.
>
> at test.pl line 91
> BEGIN failed--compilation aborted at test.pl line 91.
> not ok 1
> make: *** [test_dynamic] Error 2
>
> regards,
> janus
>
>
>> > It looks like older version of Perl. OK?
>> >
>> > I can't try it, but try to replace 'PL_na' symbols with 'na' in the
>> > Sablotron.xs file.
>> >
>> > HTH
>> >
>> > Pavel
>> >
>> > Janus Liebregts wrote:
>> >
>> >> Hi,
>> >> On redhat Linux 5.1 the Sabeltron 0.50 compiles well, but the PERL
>> >> installation fails:
>> >>
>> >> [janus@host5 XML-Sablotron-0.50]$ make
>> >> cc -c -Dbool=char -DHAS_BOOL -I/usr/local/include -O2
>> >> -DVERSION=\"0.43\" -DX
>> >> S_VERSION=\"0.43\" -fpic -I/usr/lib/perl5/i386-linux/5.00404/CORE
>> >> -DPERL_POLLUTE
>> >> Sablotron.c
>> >> Sablotron.xs: In function `SchemeHandlerGetAllStub':
>> >> Sablotron.xs:287: `PL_na' undeclared (first use this function)
>> >> Sablotron.xs:287: (Each undeclared identifier is reported only once
>> >> Sablotron.xs:287: for each function it appears in.)
>> >> Sablotron.xs: In function `XS_XML__Sablotron_Process':
>> >> Sablotron.xs:654: `PL_na' undeclared (first use this function)
>> >> Sablotron.xs: In function `XS_XML__Sablotron__Processor_RunProcessor':
>> >> Sablotron.xs:757: `PL_na' undeclared (first use this function)
>> >> make: *** [Sablotron.o] Error 1
>> >>
>> >> minor bug? do got a quick fix?
>> >>
>> >> regards,
>> >> janus
--
Pavel Hlavnicka
Ginger Alliance Ltd.
Prague; Czech Republic