Hi, Gary! > I'm attempting to build OpenSCAP on Ubuntu 20.04 and receive an error during > the make. This was after a fresh clone of the openscap repository and build > dependencies installed as detailed in > https://github.com/OpenSCAP/openscap/blob/maint-1.3/docs/developer/developer.adoc. > > The cmake and make output follow. > ... > [ 67%] Building C object utils/CMakeFiles/oscap.dir/oscap-info.c.o > [ 68%] Building C object utils/CMakeFiles/oscap.dir/oscap-oval.c.o > [ 68%] Building C object utils/CMakeFiles/oscap.dir/oscap-tool.c.o > [ 68%] Building C object utils/CMakeFiles/oscap.dir/oscap-xccdf.c.o > [ 68%] Building C object utils/CMakeFiles/oscap.dir/oscap.c.o > [ 69%] Linking C executable oscap > /usr/bin/ld: ../src/libopenscap.so.25.2.0: undefined reference to > `MMap::MMap(FileFd&, unsigned long)' > collect2: error: ld returned 1 exit status > make[2]: *** [utils/CMakeFiles/oscap.dir/build.make:239: utils/oscap] Error 1 > make[1]: *** [CMakeFiles/Makefile2:3226: utils/CMakeFiles/oscap.dir/all] > Error 2 > make: *** [Makefile:163: all] Error 2
It looks like the 'apt-pkg' library was not linked correctly. It would help to get more visibility for the problem if you could create an issue in the upstream bug tracker: https://github.com/OpenSCAP/openscap/issues. _______________________________________________ Open-scap-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/open-scap-list
