lkml.org 
[lkml]   [2016]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 29/66] tools lib traceevent: Use str_error_r()
Em Tue, Jul 12, 2016 at 07:11:08PM -0400, Steven Rostedt escreveu:
> On Tue, 12 Jul 2016 19:40:04 -0300 Arnaldo Carvalho de Melo <acme@kernel.org> wrote:
> > To make it portable to non-glibc systems, that follow the XSI variant
> > instead of the GNU specific one that gets in place when _GNU_SOURCE is
> > defined.

> > #include "event-parse.h"
> > @@ -6131,12 +6132,7 @@ int pevent_strerror(struct pevent *pevent __maybe_unused,
> > + str_error_r(errnum, buf, buflen);
> > return 0;
>
> What library is used with this? When I port this over to trace-cmd
> (which is still needed as I develop this there), it fails to build.
> "undefined reference to str_error_r"

tools/lib/str_error_r.c

Forgot about the out of tree copy :-\

- Arnaldo

\
 
 \ /
  Last update: 2016-07-13 01:41    [W:0.078 / U:11.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site