<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - ./libdrm_macros.h:26:5: error: 'HAVE_VISIBILITY' is not defined, evaluates to 0 [-Werror,-Wundef]"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106561#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - ./libdrm_macros.h:26:5: error: 'HAVE_VISIBILITY' is not defined, evaluates to 0 [-Werror,-Wundef]"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106561">bug 106561</a>
from <span class="vcard"><a class="email" href="mailto:fdo-bugs@engestrom.ch" title="Eric Engestrom <fdo-bugs@engestrom.ch>"> <span class="fn">Eric Engestrom</span></a>
</span></b>
<pre>Hi Tomasz,
I found this file; is that what you used to configure and compile libdrm?
<a href="https://abf.io/openmandriva/libdrm/blob/master/libdrm.spec">https://abf.io/openmandriva/libdrm/blob/master/libdrm.spec</a>
You seem to be using autotools, which is deprecated and will one day go away;
you should convert to Meson eventually, although I don't think this would
change anything with regards to your issue here.
We have a short page explaining how to use Meson on the Mesa website:
<a href="https://mesa3d.org/meson.html">https://mesa3d.org/meson.html</a>
The errors you're seeing are very strange; HAVE_VISIBILITY and UDEV are always
defined (by the build system) as far as I can tell, and the enum conversion
warnings are technically correct (although the value are identical, so it
should be trivial to fix), but this code hasn't been touched since 2009/1999.
Has any previous version of libdrm ever built in your build/packaging system?
For the last error, vasprintf() is a GNU extension, so I'm not surprised it's
not working with clang; I'll have a look next week to see if I can fix it the
way we did in Mesa (src/util/u_string.h).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>