<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 20, 2019 at 7:11 PM Dmitry V. Levin <<a href="mailto:ldv@altlinux.org">ldv@altlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Aug 20, 2019 at 12:56:23AM +0800, Zhibin Li wrote:<br>
> Hi all,<br>
> <br>
> Accomplishments:<br>
> - Finished reworking of general DRM ioctl tests. In the tests I detect<br>
> config for libdrm or kernel headers like what I did in the decoders before<br>
> while the decoders now are using bundled headers in /strace/linux/drm/. I<br>
> believe this is the supposed way to handle the decoders and tests.<br>
> One problem that I found in detecting libdrm or kernel headers is that on<br>
> travis-ci env (namely ubuntu14.04) the form of checking members like:<br>
> <br>
> AC_CHECK_MEMBERS([struct drm_mode_fb_cmd2.modifier],,, [#include <drm.h>])<br>
> <br>
> is not working but it works on newer distribution like 16.04 or fedora.<br>
> I checked config.log and then found:<br>
> <br>
> configure:16260: checking for struct drm_mode_fb_cmd2.modifier<br>
> configure:16260: gcc -std=gnu99 -c -g -O2 -I/usr/include/libdrm<br>
> conftest.c >&5<br>
> In file included from conftest.c:345:0:<br>
> /usr/include/libdrm/drm.h:132:2: error: unknown type name 'size_t'<br>
> size_t name_len; /**< Length of name buffer */<br>
<br>
Try this instead:<br>
<br>
AC_CHECK_MEMBERS([struct drm_mode_fb_cmd2.modifier],,, [#include <sys/types.h><br>
#include <drm.h>])<br>
<br></blockquote><div>Somehow this doesn't work. Would using AC_INCLUDES_DEFAULT be a problem?</div><div>i.e.</div><div>AC_CHECK_MEMBERS([struct drm_mode_fb_cmd2.modifier],,, AC_INCLUDES_DEFAULT<br>[#include <drm.h>]) <br></div><div>It seems this works.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
ldv<br>
-- <br>
Strace-devel mailing list<br>
<a href="mailto:Strace-devel@lists.strace.io" target="_blank">Strace-devel@lists.strace.io</a><br>
<a href="https://lists.strace.io/mailman/listinfo/strace-devel" rel="noreferrer" target="_blank">https://lists.strace.io/mailman/listinfo/strace-devel</a><br>
</blockquote></div></div>