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? -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ 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