Chaks has asked for the wisdom of the Perl Monks concerning the following question:
I am adding a module XML::Parser statically in my Perl which I build from its source. To build Parser statically I removed DynaLoader and bootstrap from Parser.pm and Expat.pm files.
I have included LINKTYPE => 'static' in Makefile.PL. It builds successfully. But when i am trying to use this module after build its throwing error as "Undefined subroutine &XML::Parser::Expat::ParserCreate called at C:/Perl/lib/XML/Parser/Expat.pm line 66."
I have linked Expat.lib to my tool and included it as newXS("XML::Parser::Expat::bootstrap", boot_XML__Parser__Expat, file)What goes wrong after building the module statically. I tested using 'nmake test_static' which fails but 'nmake test_dynamic' passes without any error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Statically build XML Parser embedded in Perl
by choroba (Cardinal) on Nov 27, 2014 at 17:10 UTC | |
|
Re: Statically build XML Parser embedded in Perl
by syphilis (Archbishop) on Nov 28, 2014 at 01:24 UTC | |
|
Re: Statically build XML Parser embedded in Perl
by Anonymous Monk on Nov 27, 2014 at 21:35 UTC | |
by Anonymous Monk on Nov 28, 2014 at 01:34 UTC | |
|
Re: Statically build XML Parser embedded in Perl
by Jenda (Abbot) on Nov 28, 2014 at 11:52 UTC |