<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 11, 2018 at 2:18 PM, Mathias Rudnik <span dir="ltr">&lt;<a href="mailto:rudnik.mathias@googlemail.com" target="_blank">rudnik.mathias@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I am trying to build libepoxy but the do_compile tasks breaks.<br>
I found following error messages in the logs:<br>
<br>
arm-poky-linux-gnueabi-gcc -march=armv6 -mfpu=vfp -mfloat-abi=hard -mtune=arm1176jzf-s -mfpu=vfp --sysroot=/hdd_gold1/mathias/<wbr>git/poky/rpi-build/tmp/work/<wbr>arm1176jzfshf-vfp-poky-linux-<wbr>gnueabi/libepoxy/1.4.3-r0/<wbr>recipe-sysroot &#39;-Itest/egl_common@sta&#39; &#39;-Itest&#39; &#39;-Iinclude/epoxy&#39; &#39;-I../libepoxy-1.4.3/test&#39; &#39;-Iinclude&#39; &#39;-I../libepoxy-1.4.3/include&#39; &#39;-Isrc&#39; &#39;-I../libepoxy-1.4.3/src&#39; &#39;-fdiagnostics-color=always&#39; &#39;-pipe&#39; &#39;-D_FILE_OFFSET_BITS=64&#39; &#39;-Wall&#39; &#39;-Winvalid-pch&#39; &#39;-std=gnu99&#39; &#39;-O2&#39; &#39;-g&#39; &#39;-O2&#39; &#39;-g&#39; &#39;-feliminate-unused-debug-<wbr>types&#39; &#39;-fdebug-prefix-map=/hdd_<wbr>gold1/mathias/git/poky/rpi-<wbr>build/tmp/work/arm1176jzfshf-<wbr>vfp-poky-linux-gnueabi/<wbr>libepoxy/1.4.3-r0=/usr/src/<wbr>debug/libepoxy/1.4.3-r0&#39; &#39;-fdebug-prefix-map=/hdd_<wbr>gold1/mathias/git/poky/rpi-<wbr>build/tmp/work/arm1176jzfshf-<wbr>vfp-poky-linux-gnueabi/<wbr>libepoxy/1.4.3-r0/recipe-<wbr>sysroot-native=&#39; &#39;-fdebug-prefix-map=/hdd_<wbr>gold1/mathias/git/poky/rpi-<wbr>build/tmp/work/arm1176jzfshf-<wbr>vfp-poky-linux-gnueabi/<wbr>libepoxy/1.4.3-r0/recipe-<wbr>sysroot=&#39; &#39;-lEGL&#39; &#39;-fPIC&#39; &#39;<br>
 -Wpointer-arith&#39; &#39;-Wmissing-declarations&#39; &#39;-Wformat=2&#39; &#39;-Wstrict-prototypes&#39; &#39;-Wmissing-prototypes&#39; &#39;-Wnested-externs&#39; &#39;-Wbad-function-cast&#39; &#39;-Wold-style-definition&#39; &#39;-Wdeclaration-after-<wbr>statement&#39; &#39;-Wunused&#39; &#39;-Wuninitialized&#39; &#39;-Wshadow&#39; &#39;-Wmissing-noreturn&#39; &#39;-Wmissing-format-attribute&#39; &#39;-Wredundant-decls&#39; &#39;-Wlogical-op&#39; &#39;-Werror=implicit&#39; &#39;-Werror=nonnull&#39; &#39;-Werror=init-self&#39; &#39;-Werror=main&#39; &#39;-Werror=missing-braces&#39; &#39;-Werror=sequence-point&#39; &#39;-Werror=return-type&#39; &#39;-Werror=trigraphs&#39; &#39;-Werror=array-bounds&#39; &#39;-Werror=write-strings&#39; &#39;-Werror=address&#39; &#39;-Werror=int-to-pointer-cast&#39; &#39;-Werror=pointer-to-int-cast&#39; &#39;-fno-strict-aliasing&#39; &#39;-Wno-int-conversion&#39; &#39;-MMD&#39; &#39;-MQ&#39; &#39;test/egl_common@sta/egl_<wbr>common.c.o&#39; &#39;-MF&#39; &#39;test/egl_common@sta/egl_<wbr>common.c.o.d&#39; -o &#39;test/egl_common@sta/egl_<wbr>common.c.o&#39; -c ../libepoxy-1.4.3/test/egl_<wbr>common.c<br>
../libepoxy-1.4.3/test/egl_<wbr>common.c: In function &#39;get_egl_display_or_skip&#39;:<br>
../libepoxy-1.4.3/test/egl_<wbr>common.c:36:5: error: unknown type name &#39;Display&#39;; did you mean &#39;EGLDisplay&#39;?<br>
     Display *dpy = XOpenDisplay(NULL);<br>
     ^~~~~~~<br>
     EGLDisplay<br>
../libepoxy-1.4.3/test/egl_<wbr>common.c:36:20: error: implicit declaration of function &#39;XOpenDisplay&#39;; did you mean &#39;eglGetDisplay&#39;? [-Werror=implicit-function-<wbr>declaration]<br>
     Display *dpy = XOpenDisplay(NULL);<br>
                    ^~~~~~~~~~~~<br>
                    eglGetDisplay<br>
../libepoxy-1.4.3/test/egl_<wbr>common.c:36:20: warning: nested extern declaration of &#39;XOpenDisplay&#39; [-Wnested-externs]<br>
cc1: some warnings being treated as errors<br>
<br>
Does anybody know what i am doing wrong?<br></blockquote><div><br><br><div>I&#39;ve been seeing the same failure for the last 10 days or so on my nightly rpi3-32 builds.<br><br></div><div>A quick, superficial, glance at the problem looks like a code issue; I&#39;m guessing a missing &quot;#include &lt;X11/Xlib.h&gt;&quot;. If I find some time I&#39;ll take a stab at it.<br></div></div></div></div></div>