I had done all that, but was still getting the error. Finally I tracked it down to what appears to be an internal Makefile problem in Mesa's libwayland-egl directory. libwayland-drm.a provides this symbol, but wasn't getting linked into the overall libwayland-egl.so binary. See the attached proposed patch.<br>
<br><div class="gmail_quote">On Sun, Mar 13, 2011 at 4:42 PM, Iskren Chernev <span dir="ltr"><<a href="mailto:iskren.chernev@gmail.com">iskren.chernev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Are you sure you make && make install the wayland library first, and then the demo? Also double check all environmental variables from the build tutorial. You may also add<div>PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1</div>
<div>because on my system pkg-config just skipped some libraries.</div><div><br></div><div>Regards,</div><div>Iskren<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sun, Mar 13, 2011 at 8:20 PM, Matt Hoosier <span dir="ltr"><<a href="mailto:matt.hoosier@gmail.com" target="_blank">matt.hoosier@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Verified on both counts. Mesa was built from Git head yesterday, and I inspected the sources that make up libwayland-egl.so; it's those that lack the wl_drm_interface struct.<div>
<div></div><div><br><br><div class="gmail_quote">On Sun, Mar 13, 2011 at 8:43 AM, Marty Jack <span dir="ltr"><<a href="mailto:martyj19@comcast.net" target="_blank">martyj19@comcast.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div><br>
<br>
On 03/13/2011 09:33 AM, Matt Hoosier wrote:<br>
> Hi,<br>
><br>
> I ran into a link error when trying to compile the demos repository according to the instructions on the Building page:<br>
><br>
> CCLD compositor<br>
> libwayland-egl.so: undefined reference to `wl_drm_interface'<br>
> make[3]: *** [compositor] Error 1<br>
><br>
> All of the packages are freshly compiled from Git master as of yesterday.<br>
><br>
> I found that this symbol is intending to refer to the address of a global struct provided by the core 'wayland' package. In master of that repo, the struct is declared (but not defined). The 'terminal' branch does have its definition, but the 'terminal' branch looks out-of-date. (No commits since December.)<br>
><br>
> Any suggestions?<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> wayland-devel mailing list<br>
> <a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br>
This is now provided by the EGL Wayland backend. You will need a sufficiently recent Mesa git built --with-egl-platforms=wayland,drm<br>
<br>
I find that Mesa has trouble updating the .so files during make install when they already exist. You may want to check that you are actually using the ones you built.<br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br>