Summary: | ./libdrm_macros.h:26:5: error: 'HAVE_VISIBILITY' is not defined, evaluates to 0 [-Werror,-Wundef] | ||
---|---|---|---|
Product: | DRI | Reporter: | Tomasz Paweł Gajc <tpgxyz> |
Component: | libdrm | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED NOTABUG | QA Contact: | |
Severity: | critical | ||
Priority: | medium | ||
Version: | DRI git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Tomasz Paweł Gajc
2018-05-18 07:25:59 UTC
Hi Tomasz, I found this file; is that what you used to configure and compile libdrm? https://abf.io/openmandriva/libdrm/blob/master/libdrm.spec 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: https://mesa3d.org/meson.html 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). Yes, previous libdrm versions were building without any issues on OpenMandriva Lx. I've already commited changes to spec file to use meson. Fixed by compiling libdrm with meson. Thanks. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.