Opened 15 years ago

Closed 15 years ago

#23085 closed defect (duplicate)

wml-2.0.11 can't use modules using XS modules

Reported by: reg-macports.org@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: wml

Description

In Pass 3, ePerl can't use any perl modules trying to load XS modules.

Test case (test.wml):

<:
  use Unicode::Normalize;
:>

Error message:

$ wmk test.wml 
/opt/local/bin/wml -n -o test.html test.wml
ePerl:Error: Perl parsing error (interpreter rc=255)

---- Contents of STDERR channel: ---------
Can't load '/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/HTML/Parser/Parser.bundle' for module HTML::Parser: dlopen(/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/HTML/Parser/Parser.bundle, 1): Symbol not found: _PL_stack_sp
  Referenced from: /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/HTML/Parser/Parser.bundle
  Expected in: dynamic lookup
 at /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/HTML/Parser.pm line 17
Compilation failed in require at /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/HTML/Entities.pm line 152.
Compilation failed in require at /var/folders/Ch/ChY3Q9vKGC0hUFzIVzsXHU+++TI/-Tmp-//wml.88655.tmp1.wml line 22.
BEGIN failed--compilation aborted at /var/folders/Ch/ChY3Q9vKGC0hUFzIVzsXHU+++TI/-Tmp-//wml.88655.tmp1.wml line 22.
------------------------------------------
** WML:Break: Error in Pass 3 (rc=1).
** WMK:Error: Error in WML (rc=256)

A check with other XS-dependent modules – Scalar::Util and Unicode::Normalize – resulted in similar error messages.

Attachments (1)

wml-2.0.11-perl5.8.patch (592 bytes) - added by reg-macports.org@… 15 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 15 years ago by reg-macports.org@…

Cc: reg-macports.org@… added

Cc Me!

comment:2 Changed 15 years ago by reg-macports.org@…

http://search.cpan.org/perldoc?README.macosx#Known_problems says:

The default of building Perl statically may cause problems with complex applications like Tk: in that case consider building shared Perl

Configure ... -Duseshrplib

but remember that there's a startup cost to pay in that case (see above "libperl and Prebinding").

Compiling perl5.8 with -D useshrplib (see patch) indeed fixes the problem.

Changed 15 years ago by reg-macports.org@…

Attachment: wml-2.0.11-perl5.8.patch added

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Cc: reg-macports.org@… removed
Resolution: duplicate
Status: newclosed

Closing since you opened #23089 for the same problem.

Note: See TracTickets for help on using tickets.