Building a SELinux image - RPM Package compilation Error

127 views Asked by At

I've enabled the SELinux by doing the below changes,

  1. Added meta-selinux path to BUILDDIR/conf/bblayers.conf file.
  2. Set DISTRO_FEATURES_append=" pam selinux" in in BUILDDIR/conf/local.conf file.

I've executed the below command to generate a default se-Linux image,

$ bitbake core-image-selinux

And getting an error from RPM Package,

**../../rpm-5.4.15/rpmio/macro.c: In function 'expandMacro':
../../rpm-5.4.15/rpmio/macro.c:2309:15: error: '_globalI' undeclared (first use in this function)
   rpmsm sm = (_globalI ? NULL
               ^~~~~~~~**

for the time being, I override the error by removing the inherit with-selinux from selinux/recipes-devtools/rpm/rpm_selinux.inc.

Couldn't find a similar issue in google or issue reported. Could you please someone explain to me, how to debug this issue?

0

There are 0 answers