When the event symbols were added to the public API, not all
of them were removed from the private exports list. Solaris
gets unhappy when there are duplicated symbols. Extend the
symfile check to test for this scenario
my $symfile = shift @ARGV;
my @elflibs = @ARGV;
-my @wantsyms;
+my %wantsyms;
my %gotsyms;
+my $ret = 0;
+
open SYMFILE, $symfile or die "cannot read $symfile: $!";
while (<SYMFILE>) {
die "malformed line $_" unless /^\s*(\S+);$/;
- push @wantsyms, $1;
+ if (exists $wantsyms{$1}) {
+ print STDERR "Symbol $1 is listed twice\n";
+ $ret = 1;
+ } else {
+ $wantsyms{$1} = 1;
+ }
}
close SYMFILE;
close NM;
}
-my $ret = 0;
-
foreach my $sym (@wantsyms) {
next if exists $gotsyms{$sym};
virDoubleToStr;
virEnumFromString;
virEnumToString;
-virEventAddHandle;
-virEventRemoveHandle;
virFileAbsPath;
virFileAccessibleAs;
virFileBuildPath;