Getting the following build error:
Making all in xrdpdev
make[2]: Entering directory '/distro/local/repository/xorgxrdp/src/xorgxrdp-0.10.2/xrdpdev'
CC xrdpdev.lo
xrdpdev.c:49:10: fatal error: drm.h: No such file or directory
49 | #include <drm.h>
| ^~~~~~~
compilation terminated.
make[2]: *** [Makefile:492: xrdpdev.lo] Error 1
make[2]: Leaving directory '/distro/local/repository/xorgxrdp/src/xorgxrdp-0.10.2/xrdpdev'
make[1]: *** [Makefile:442: all-recursive] Error 1
make[1]: Leaving directory '/distro/local/repository/xorgxrdp/src/xorgxrdp-0.10.2'
make: *** [Makefile:374: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
It should be there. libdrm is installed.
Edit: apparently, libdrm is the key to the resolution:
build() {
cd "$pkgname-$pkgver"
CFLAGS="$CFLAGS -I/usr/include/libdrm -ffat-lto-objects" \
./configure \
--prefix="/usr"
make
}
Note the addition of -I/usr/include/libdrm to CFLAGS. Builds without error.
Pinned Comments
Chocobo1 commented on 2022-11-10 16:23 (UTC) (edited on 2022-11-10 16:31 (UTC) by Chocobo1)
If you are having this error:
Read the following for an explanation and how to temporarily workaround it: https://wiki.archlinux.org/title/Makepkg#Signature_checking