Zhibin Li's GSoC status report - #12 of 12

Dmitry V. Levin ldv at altlinux.org
Tue Aug 20 11:11:03 UTC 2019


On Tue, Aug 20, 2019 at 12:56:23AM +0800, Zhibin Li wrote:
> Hi all,
> 
> Accomplishments:
> - Finished reworking of general DRM ioctl tests. In the tests I detect
> config for libdrm or kernel headers like what I did in the decoders before
> while the decoders now are using bundled headers in /strace/linux/drm/. I
> believe this is the supposed way to handle the decoders and tests.
> One problem that I found in detecting libdrm or kernel headers is that on
> travis-ci env (namely ubuntu14.04) the form of checking members like:
> 
> AC_CHECK_MEMBERS([struct drm_mode_fb_cmd2.modifier],,, [#include <drm.h>])
> 
> is not working but it works on newer distribution like 16.04 or fedora.
> I checked config.log and then found:
> 
> configure:16260: checking for struct drm_mode_fb_cmd2.modifier
> configure:16260: gcc -std=gnu99 -c -g -O2  -I/usr/include/libdrm
> conftest.c >&5
> In file included from conftest.c:345:0:
> /usr/include/libdrm/drm.h:132:2: error: unknown type name 'size_t'
>   size_t name_len;   /**< Length of name buffer */

Try this instead:

AC_CHECK_MEMBERS([struct drm_mode_fb_cmd2.modifier],,, [#include <sys/types.h>
#include <drm.h>])


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20190820/f96e5ba0/attachment.bin>


More information about the Strace-devel mailing list