Re: Building module Encode::Detect on solaris 10 platform



On Feb 22, 1:13 am, Guy Paulus <gpau...@xxxxxxxxxxxxxxx> wrote:
.
.

On the other hand, when I resort to using "gcc -x c++" as compiler,
all source files are compiled, but then "make test" fails:

I think that's the correct approach - explicitly calling the C++
compiler almost works for me, too, on Win32.

Everyone who tries to build this module manages to come up with
different errors.
For me the make process is killed by an undefined reference to
'_boot_Encode__Detect' - which means that the Encode::Detect loadable
object doesn't get built and the tests fail. Of course, since the
loadable object didn't build, the tests should not even run - at least
that's the way it would be with ExtUtils::MakeMaker. Maybe
Module::Build enforces different rules.


/usr/local/perl5/bin/perl Build --makefile_env_macros 1 test
t/base........
#   Failed test 'use Encode::Detect::Detector;'
#   at t/base.t line 5.
#     Tried to use 'Encode::Detect::Detector'.
#     Error:  Can't load
'/root/Encode-Detect-1.00/blib/arch/auto/Encode/Detect/Detector/Detector.so­'
for module Encode::Detect::Detector: ld.so.1: perl: fatal: relocation
error: file
/root/Encode-Detect-1.00/blib/arch/auto/Encode/Detect/Detector/Detector.so:
symbol __gxx_personality_v0: referenced symbol not found at
/usr/local/perl5/5.10.0/lib/sun4-solaris/DynaLoader.pm line 203.
#  at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/base.t line 5.
t/base........NOK 1/0Can't locate auto/Encode/Detect/Detector/new.al

Can't really help with this error.

t/encoding....Can't locate Data/Dump.pm in @INC

First thing to do here is install Data::Dump. Until you do that,
you'll aways get that error. But don't be surprised if, after having
installed Data::Dump, you still get failures with the encoding.t
tests.

As I remarked at
http://groups.google.com.au/group/perl.beginners/browse_thread/thread/4dcd83a69c52acde/3a61152b5e8b7712?hl=en#3a61152b5e8b7712
this module has the markings of an abandoned module.

But it can probably be hacked into a workable form if one knows how.
Maybe check the bug reports at http://rt.cpan.org/Public/Dist/Display.html?Name=Encode-Detect
to see if there's anything there that helps.

Cheers,
Rob
.



Relevant Pages

  • insufficient virtual memory
    ... Running cc on a VS4000/90 with 64MB physical memory ... under vax/vms 7.3 works fine on "small" source files, ... but fails on an 8K line source file, ... Compiler abort - virtual memory limits exceeded. ...
    (comp.os.vms)
  • Re: ASP .NET 2.0 Unanswered questions...
    ... in both 1.1 and 2.0 there are two types of source files. ... version 1.1 of asp.net in order to support inline server script, generated source code for the page, then called the desired compiler to build a dll. ... if the aspx pages are all empty then your site was precompiled for all the aspx pages and has been batched into dll's. ... again in version 2.0 the only difference between web sites and web application is the handling of the code behind files compilation and in the case of a web applications the existence of a project file. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: SHMENUBARINFO not defined says compiler - aygshell.h defined
    ... group that supports the SDK for the desktop. ... After I add "/c" to the compiler options, i get the following and i have no ... which is used when compiling the source files. ... > Microsoft Mobile and Embedded Devices Developer Support ...
    (microsoft.public.pocketpc.developer)
  • Request for feedback: proposed new modules to aid VHDL projects
    ... Performs a minimal recompile of a VHDL project using ModelSim, ... only those design units which have changed, and those which depend on them. ... * Feeds source files through a preprocessor if wanted (preprocessors are ... References any compiler errors back to the correct source file and line ...
    (comp.lang.perl.modules)
  • Request for feedback: proposed new Perl modules to aid VHDL projects
    ... Performs a minimal recompile of a VHDL project using ModelSim, ... only those design units which have changed, and those which depend on them. ... * Feeds source files through a preprocessor if wanted (preprocessors are ... References any compiler errors back to the correct source file and line ...
    (comp.lang.vhdl)