nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

lazy-load %Config and Errno.pm errors #309

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

pcc -S -e'print $_,": ",(eval q{require }.$_.q{;} ? qq{ok\n} : $@) for 
qw(Net::LibIDN Net::SSLeay);'

Net::LibIDN: Global symbol "%Config" requires explicit package name at 
/usr/local/cpanel/3rdparty/perl/514/lib/perl5/5.14.3/i386-linux-64int/Errno.pm 
line 11.

Net::SSLeay: Attempt to reload Errno.pm aborted.
Compilation failed in require at 
/usr/local/cpanel/3rdparty/perl/514/lib/perl5/cpanel_lib/i386-linux-64int/Net/SS
Leay.pm line 20.

Errno needs to tie its inclusion magic to Config internally. Unfortunately B::C 
requires Errno since some time.

Original issue reported on code.google.com by reini.urban on 8 Apr 2014 at 7:31

GoogleCodeExporter commented 9 years ago
Fixed with 1.48 because Config and Errno is now properly skipped.

$ perlcc -r -e'print $_,": ",(eval q{require }.$_.q{;} ? qq{ok\n} : $@) for 
qw(Net::LibIDN Net::SSLeay);'
Net::LibIDN: ok
Net::SSLeay: ok

Original comment by reini.urban on 14 Jul 2014 at 4:57