# New Ticket Created by  James Keenan 
# Please include the string:  [perl #47792]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=47792 >


While running Configure.pl on Linux today, I repeatedly got this error:

Configuring languages...main::get_parrot_config() called too early to  
check prototype at Configure.pl line 32.
main::generate_makefile() called too early to check prototype at  
Configure.pl line 35.
main::generate_config_pm() called too early to check prototype at  
Configure.pl line 38.
Use of uninitialized value in substitution (s///) at Configure.pl  
line 77.
..............................................done.


This error crept in sometime after r22982.  The Configure.pl which is  
generating the error is *not* the top-level Configure.pl.  Rather, it  
is languages/dotnet/Configure.pl, whose code around line 32 reads  
like this:

# Get Parrot configuration.
$parrot_path ||= "../..";
$parrot_path =~ s|/|\\|g if $^O =~ /win32/i;
$srm ||= "OptRegister";
die "No such SRM module!\n" unless -e "build/SRM/$srm.pm";
my %config = get_parrot_config( $parrot_path, $srm );  # <--- line 32

# Generate makefile.
generate_makefile(%config);

# Generate Config.pm.
generate_config_pm(%config);


(Frankly, I would prefer if this file -- along with languages/ 
plumhead/Configure.pl -- were named something other than  
'Configure.pl'.  Naming it the same as the top-level Configure.pl  
leaves us prone to ambiguous error messages such as the one above.)

However, languages/dotnet/Configure.pl has not changed since mid- 
October.  So I think suspicion falls on certain files which have  
changed in the last few days, including:

config/gen/languages.pm
config/gen/makefiles/languages.in

Thank you very much.
kid51

Reply via email to