Re: Error cross compiling oprofile

Andrew Haley <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 05/05/2015 11:57 AM, Paul Fine wrote:
> Thanks for the quick reply Andrew.
> 
> unistd.h is being included in the build.  The only reference to pipe2() I
> find in unistd.h is:
> 
> /opt/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/usr/include/asm/
> 
>       #define __NR_pipe2 (__NR_SYSCALL_BASE+359)
> 
> and also in my linux kernel packages.
> 
> Is this macro suppose to resolve to pipe2()? Am I suppose to build glibc
> for my target?  I am not really sure what to do here.  I was able to build
> oprofile-0.9.8 once I was able to get the configure parameters for cross
> compile correct.

Clearly your libc headers are broken.  I don't know why, and will not
speculate!

I'd just do this:

   syscall(__NR_pipe2, int pipefd[2], int flags);

Andrew.


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.