Perl yp_all() fails in Fedora 3 in EM64T

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I face problem with perl function Net::NIS::yp_all(), which is unable
to get any NIS map, althouth I type "ypcat" in command line shows
that the NIS map exists.

I have written a sample program to test it, and I find that
EM64T, Fedora 3 update 3, perl 5.8.5 has the problem
IA64, Fedora 3 update 3, perl 5.8.5 has NO problem
EM64T, RHWS3, perl 5.8.0 has NO problem
C version of yp_all() has NO problem.

Here is the test script for Perl yp_all():
===================================
#!/usr/bin/perl

use Net::NIS;
# get our default NIS domain name
$domain = Net::NIS::yp_get_default_domain(  );
# grab the map
($status, $info) = Net::NIS::yp_all($domain,"netgroup.byhost");
foreach my $name (sort keys %{$info}){
   print "$name => $info->{$name}\n";
}
print "The end\n";
===================================


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux