As for line 391, it is the exactly the same statement.

After adding a line as you mentioned in your mail, I got:

- checking Java versions:
Matching Java Virtual Machines (2):     1.5.0_19 (ppc): /System/ 
Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home     1.4.2_21  
(ppc):  /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/ 
Home  /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home

Hoping for solving the weird error.

Thank you.
Hiroshi

On 2013/11/29, at 12:37, Alexander Hansen wrote:

> On 11/28/13 6:19 PM, ABE Hiroshi wrote:
>> Thank you Dr. Hansen,
>>
>> I got errors with /sw/bin/fink-virtual-pkgs --debug as,
>>
>> ...
>> - checking Java versions:
>> Use of uninitialized value in pattern match (m//) at /sw/lib/perl5/
>> Fink/VirtPackage.pm line 398.
>> Use of uninitialized value in opendir at /sw/lib/perl5/Fink/
>> VirtPackage.pm line 399.
>> Use of uninitialized value in pattern match (m//) at /sw/lib/perl5/
>> Fink/VirtPackage.pm line 398.
>> Use of uninitialized value in opendir at /sw/lib/perl5/Fink/
>> VirtPackage.pm line 399.
>> - searching for java3d... found /System/Library/Java/Extensions/
>> j3dcore.jar
>> - searching for javaai... found /System/Library/Java/Extensions/
>> jai_core.jar
>> ...
>>
>> I thought it should be caused by my editor so I tried emacs, xcode,  
>> vi
>> but all of them gave same errors.
>> The lines around 399 are;
>>
>> 392          my $arch = Fink::FinkVersion::get_arch();
>> 393          $arch = "ppc" if $arch eq "powerpc";
>> 394          foreach (@jdktest) {
>> 395                  next unless /$arch/; #exclude off-Fink-architecture 
>> JDK's
>> 396                  my ($ver,$javadir) = m|(\d.*),.*\s(/.*)$|; #extract 
>> version and
>> directory info
>> 397                  # However, we'll have to switch the directory for JDK 
>> 1.6 and
>> earlier.
>> 398                  $javadir = '/System/Library/Frameworks/JavaVM.framework/
>> Versions' if ($javadir =~ /System/) ;
>> 399                  if (opendir(DIR, $javadir)) {
>>
>> I can't understand this error. If I were a perl user I should know  
>> the
>> problem.
>>
>> I still need your helps.
>>
>> ABE Hiroshi
>>   from Tokorozawa, JAPAN
>>
>>
>
> What do you have on line 391?  I'm showing
>
> my $javadir = '/System/Library/Frameworks/JavaVM.framework/Versions';
>
> and that should suffice to initialize the value for line 398.   
> Unless it's somehow getting unset at 396, but that shouldn't be  
> uninitialized.  It's a little odd to me.
>
> Can also I get you to add a line before line 394 which says
>
> print "@jdktest\n";
>
> and try "fink-virtual-pkgs --debug" again?
> -- 

ABE Hiroshi
  from Tokorozawa, JAPAN


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to