Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile fails: error: use of undeclared identifier 'IFF_NOGROUP' if (ifa->ifa_flags & IFF_NOGROUP) #2083

Open
yonas opened this issue Feb 9, 2024 · 0 comments

Comments

@yonas
Copy link

yonas commented Feb 9, 2024

Description of Problem:

Compile fails with error openscap/src/OVAL/probes/unix/interface_probe.c:301:38: error: use of undeclared identifier 'IFF_NOGROUP' if (ifa->ifa_flags & IFF_NOGROUP)

OpenSCAP Version:

80daf96

Operating System & Version:

FreeBSD 14.0

Steps to Reproduce:

  1. sudo pkg install cmake xmlsec1 libxslt
  2. git clone --depth 1 https://github.com/OpenSCAP/openscap
  3. cd openscap/build
  4. cmake -DCMAKE_BUILD_TYPE=Release
  5. make all

Actual Results:

[166/347] Building C object src/OVAL/probes/unix/CMakeFiles/unix_probes_object.dir/interface_probe.c.o
FAILED: src/OVAL/probes/unix/CMakeFiles/unix_probes_object.dir/interface_probe.c.o 
/usr/bin/cc -DHAVE_CONFIG_H -DOSCAP_BUILD_SHARED -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_DL_LIBLTDL=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_SIZE_T -D__XMLSEC_FUNCTION__=__func__ -I/home/yonas/git/openscap/compat -I/home/yonas/git/openscap/src -I/home/yonas/git/openscap/src/common -I/home/yonas/git/openscap/src/common/public -I/home/yonas/git/openscap/src/CPE/public -I/home/yonas/git/openscap/src/CVE/public -I/home/yonas/git/openscap/src/CVRF/public -I/home/yonas/git/openscap/src/CVSS/public -I/home/yonas/git/openscap/src/DS/public -I/home/yonas/git/openscap/src/OVAL/public -I/home/yonas/git/openscap/src/OVAL/probes/public -I/home/yonas/git/openscap/src/OVAL/probes/SEAP -I/home/yonas/git/openscap/src/OVAL/probes/SEAP/public -I/home/yonas/git/openscap/src/OVAL -I/home/yonas/git/openscap/src/source/public -I/home/yonas/git/openscap/src/XCCDF -I/home/yonas/git/openscap/src/XCCDF/public -I/home/yonas/git/openscap/src/XCCDF_POLICY -I/home/yonas/git/openscap/src/XCCDF_POLICY/public -I/home/yonas/git/openscap/yaml-filter/src -I/home/yonas/git/openscap/build -I/usr/local/include/libxml2 -I/usr/local/include/xmlsec1 -I/usr/local/include -I/home/yonas/git/openscap/src/OVAL/probes/. -pipe -W -Wall -Wnonnull -Wshadow -Wformat -Wundef -Wno-unused-parameter -Wmissing-prototypes -Wno-unknown-pragmas -Wno-int-conversion -Werror=implicit-function-declaration -D_GNU_SOURCE -std=c99 -O3 -DNDEBUG -fPIC -fvisibility=hidden -MD -MT src/OVAL/probes/unix/CMakeFiles/unix_probes_object.dir/interface_probe.c.o -MF src/OVAL/probes/unix/CMakeFiles/unix_probes_object.dir/interface_probe.c.o.d -o src/OVAL/probes/unix/CMakeFiles/unix_probes_object.dir/interface_probe.c.o -c /home/yonas/git/openscap/src/OVAL/probes/unix/interface_probe.c
/home/yonas/git/openscap/src/OVAL/probes/unix/interface_probe.c:301:38: error: use of undeclared identifier 'IFF_NOGROUP'
                if (ifa->ifa_flags & IFF_NOGROUP)
                                     ^
1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants