libtool
[Top][All Lists]
Advanced

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

Re: nm prints warnings when processing stripped shared libraries


From: Ralf Wildenhues
Subject: Re: nm prints warnings when processing stripped shared libraries
Date: Fri, 10 Dec 2004 11:28:43 +0100
User-agent: Mutt/1.4.1i

Hi Martin,

* Martin Waitz wrote on Fri, Dec 10, 2004 at 11:08:22AM CET:
> 
> On Fri, Dec 10, 2004 at 10:22:07AM +0100, Ralf Wildenhues wrote:
> > > If such a library is stripped (as is the case for all installed
> > > libraries on this Debian system here), then nm complains that it
> > > cannot find any symbols.
> >
> > I presume this occurs because it works on deplibs of preloaded libs,
> > right?
> 
> exactly.

Good.  Otherwise, there would be a problem.

> > --- config/ltmain.m4sh      9 Dec 2004 17:59:15 -0000       1.34
> > +++ config/ltmain.m4sh      10 Dec 2004 09:20:48 -0000
> > @@ -818,7 +818,7 @@
> >       name="$func_basename_result"
> >       $opt_dry_run || {
> >         eval '$ECHO ": $name " >> "$nlist"'
> > -       eval "$NM $dlprefile | $global_symbol_pipe >> '$nlist'"
> > +       eval "$NM $dlprefile >/dev/null | $global_symbol_pipe >> '$nlist'"
> that should be 2>/dev/null      ^^

Oh yes.  And `make check' would have found this, too.  But thanks anyway.
(where is the coffee?)

> >       }
> >     done

So, ok to apply the patch below to HEAD?

Regards,
Ralf

Index: config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/config/ltmain.m4sh,v
retrieving revision 1.34
diff -u -r1.34 ltmain.m4sh
--- config/ltmain.m4sh  9 Dec 2004 17:59:15 -0000       1.34
+++ config/ltmain.m4sh  10 Dec 2004 10:26:33 -0000
@@ -818,7 +818,7 @@
          name="$func_basename_result"
          $opt_dry_run || {
            eval '$ECHO ": $name " >> "$nlist"'
-           eval "$NM $dlprefile | $global_symbol_pipe >> '$nlist'"
+           eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
          }
        done
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]