Re: cross-compiling strace 4.20 for ARM

2017-11-22 Thread Dmitry V. Levin
On Wed, Nov 22, 2017 at 11:37:04AM +0100, Felix von Leitner wrote: > > > Are you sure about this? > > It's _XOPEN_SOURCE, but as configure.ac contains AC_USE_SYSTEM_EXTENSIONS, > > I suppose _GNU_SOURCE is defined anyway. > > I do get the symbol when I define _XOPEN_SOURCE: > > $ printf "#inclu

Re: cross-compiling strace 4.20 for ARM

2017-11-22 Thread Felix von Leitner
> > Are you sure about this? > It's _XOPEN_SOURCE, but as configure.ac contains AC_USE_SYSTEM_EXTENSIONS, > I suppose _GNU_SOURCE is defined anyway. I do get the symbol when I define _XOPEN_SOURCE: $ printf "#include \\nIOV_MAX" | arm-linux-gnueabi-gcc -D_XOPEN_SOURCE -E - Something else must

Re: cross-compiling strace 4.20 for ARM

2017-11-22 Thread Dmitry V. Levin
On Wed, Nov 22, 2017 at 10:49:12AM +0100, Felix von Leitner wrote: > > thanks for the quick help! > > > > > So I add an > > > > > > > > #ifndef IOV_MAX > > > > #define IOV_MAX 1024 > > > > #endif > > > > > > > > Same issue in msghdr.c. > > > > IOV_MAX *must* be provided by ; if it isn't,

Re: cross-compiling strace 4.20 for ARM

2017-11-22 Thread Felix von Leitner
> thanks for the quick help! > > > So I add an > > > > > > #ifndef IOV_MAX > > > #define IOV_MAX 1024 > > > #endif > > > > > > Same issue in msghdr.c. > > IOV_MAX *must* be provided by ; if it isn't, then your > > cross-compiling > > environment is not quite functional. > A-ha! That get

Re: cross-compiling strace 4.20 for ARM

2017-11-22 Thread Felix von Leitner
Hi Dmitry, thanks for the quick help! > > So I add an > > > > #ifndef IOV_MAX > > #define IOV_MAX 1024 > > #endif > > > > Same issue in msghdr.c. > IOV_MAX *must* be provided by ; if it isn't, then your > cross-compiling > environment is not quite functional. A-ha! That gets me somewhe

Re: cross-compiling strace 4.20 for ARM

2017-11-22 Thread Dmitry V. Levin
Hi, On Wed, Nov 22, 2017 at 09:45:07AM +0100, Felix von Leitner wrote: > Good morning! > > I'm trying to debug an embedded Linux box that does not come with an > strace, so I figured I'd cross compile strace for it. It is not going so > well. Any help appreciated. > > First obstacle: > > mmsghd

cross-compiling strace 4.20 for ARM

2017-11-22 Thread Felix von Leitner
Good morning! I'm trying to debug an embedded Linux box that does not come with an strace, so I figured I'd cross compile strace for it. It is not going so well. Any help appreciated. First obstacle: mmsghdr.c:97:14: error: 'IOV_MAX' undeclared here (not in a function); did you mean 'INT_MAX'?