[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/56000: textproc/p5-XML-Parser: [macOS Big Sur] scripts fail with missing symbol `_XML_ParserCreate_MM` due to Expat.bundle not being linked against libexpat
>Synopsis: textproc/p5-XML-Parser: [macOS Big Sur] scripts fail with missing symbol `_XML_ParserCreate_MM` due to Expat.bundle not being linked against libexpat
>Arrival-Date: Sun Feb 21 00:35:00 +0000 2021
>Originator: Dean Matzkov
Darwin MBP.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
On my macOS Big Sur installation, Perl scripts using XML::Parser fail due to unresolved symbols in Expat.bundle, due to not being linked against libexpat.dylib:
dyld: lazy symbol binding failed: Symbol not found: _XML_ParserCreate_MM
Referenced from: /opt/pkg/lib/perl5/vendor_perl/5.32.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle
Expected in: flat namespace
This problem only seems to occur on macOS Big Sur, as I have not encountered this on any previous release of macOS, and there's a few other people out there that have reported similar issues for XML::Parser.
1. Run macOS Big Sur.
2. Install textproc/p5-XML-Parser
3. Run a perl script like the following:
$p = XML::Parser->new(Style => 'Debug');
$p->parse('<foo id="me">Hello World</foo>');
I was able to work around this problem by editing the Makefile/Makefile.PL files in the Expat/ subdirectory and manually appending "-lexpat" to LDFLAGS for Expat.bundle. However, I'm not sure what an elegant solution for Pkgsrc could be, or if this should just be directed to upstream instead.
Main Index |
Thread Index |