X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Porting%2Ffindrfuncs;h=520f158381f7850c68ff78dda4183bfcb11fa730;hb=ae7638f4d1ab4edf2eef64922c6d042904d21153;hp=4254a7afb161b71baf3ce5b4a32e75d6e7805610;hpb=efa45b016f1daccac9890930086f21fb53a44069;p=p5sagit%2Fp5-mst-13.2.git diff --git a/Porting/findrfuncs b/Porting/findrfuncs index 4254a7a..520f158 100644 --- a/Porting/findrfuncs +++ b/Porting/findrfuncs @@ -1,11 +1,14 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl -ws # # findrfuncs: find reentrant variants of functions used in an executable. +# # Requires a functional "nm -u". Searches headers in /usr/include # to find available *_r functions and looks for non-reentrant # variants used in the supplied executable. # +# Requires debug info in the shared libraries/executables. +# # Gurusamy Sarathy # gsar@ActiveState.com # @@ -106,7 +109,7 @@ my %syms; for my $exe (@EXES) { # warn "#--- $exe\n"; - for my $sym (`$NMU $exe`) { + for my $sym (`$NMU $exe 2>/dev/null`) { chomp $sym; $sym =~ s/^\s+//; $sym =~ s/^([0-9A-Fa-f]+\s+)?[Uu]\s+//; @@ -128,4 +131,3 @@ for my $exe (@EXES) { } @syms = (); } -