Perl5.8+shared broken on 10.5.1
`sudo port build perl5.8+shared` fails on Leopard. I get the following error:
ip131:local logan$ sudo port build perl5.8 +shared
Password:
---> Building perl5.8 with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/work/perl-5.8.8" && make all " returned error 2
Command output: AutoSplitting perl library
DYLD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/work/perl-5.8.8 ./miniperl -Ilib -e 'use AutoSplit; \
autosplit_lib_modules(@ARGV)' lib/*.pm
DYLD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/work/perl-5.8.8 ./miniperl -Ilib -e 'use AutoSplit; \
autosplit_lib_modules(@ARGV)' lib/*/*.pm
make lib/re.pm
make[1]: `lib/re.pm' is up to date.
cd lib/unicore && DYLD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/work/perl-5.8.8 ../../miniperl -I../../lib mktables -w
Can't load module File::Glob, dynamic loading not available in this perl.
(You may need to build a new perl executable which either supports
dynamic loading or has the File::Glob module statically linked into it.)
at mktables line 2111
Compilation failed in require at mktables line 2111.
BEGIN failed--compilation aborted at mktables line 2111.
make: *** [uni.data] Error 22
Error: Status 1 encountered during processing.
ip131:local logan$
Attached is a fix to allow the shared variant on 10.5.
It is based on the fix from the Darwin website.