lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121018143835.GE2057@infradead.org>
Date:	Thu, 18 Oct 2012 11:38:35 -0300
From:	Arnaldo Carvalho de Melo <acme@...radead.org>
To:	Namhyung Kim <namhyung@...nel.org>
Cc:	Ingo Molnar <mingo@...nel.org>, linux-kernel@...r.kernel.org,
	David Ahern <dsahern@...il.com>,
	Frederic Weisbecker <fweisbec@...il.com>,
	Jiri Olsa <jolsa@...hat.com>, Mike Galbraith <efault@....de>,
	Paul Mackerras <paulus@...ba.org>,
	Peter Zijlstra <peterz@...radead.org>,
	Stephane Eranian <eranian@...gle.com>
Subject: Re: [PATCH 09/11] perf python: Link with libtraceevent

Em Thu, Oct 18, 2012 at 11:00:33AM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Thu, Oct 18, 2012 at 10:38:18AM +0900, Namhyung Kim escreveu:
> > On Wed, 17 Oct 2012 14:19:45 -0300, Arnaldo Carvalho de Melo wrote:
> > I got a build error after adding 'extern unsigned int page_size' to
> > util/python.c - please see my previous reply.
> > 
> >   namhyung@...ong:perf$ make
> >       SUBDIR ../lib/traceevent/
> >       LINK perf
> >       GEN python/perf.so
> >   gcc: error: python_ext_build/tmp//../../libtraceevent.a: No such file or directory
> >   error: command 'gcc' failed with exit status 1
> >   cp: cannot stat `python_ext_build/lib/perf.so': No such file or directory
> >   make: *** [python/perf.so] Error 1
> >   TRACE_EVENT_DIR = ../lib/traceevent/
   
> >   ifneq ($(OUTPUT),)
> >   	TE_PATH=$(OUTPUT)
> >   else
> >   	TE_PATH=$(TRACE_EVENT_DIR)
> >   endif
> >   
> >   LIBTRACEEVENT = $(TE_PATH)libtraceevent.a
> 
> I see, so we need to somehow propagate this TE_PATH variable to the setup.py file...

Can you try with the attached patch? I tested it here and works with:

 make -C tools/perf

and with O=

- Arnaldo

View attachment "python-libtraceevent.patch" of type "text/plain" (1891 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ