CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY /home/conan/w/cci_PR-4684/.conan/data/bzip2/1.0.8/_/_/build/da606cf731e334010b0bf6e85a2a6f891b9f36b0/source_subfolder/bzip2.c: In function ‘applySavedFileAttrToOutputFile’: /home/conan/w/cci_PR-4684/.conan/data/bzip2/1.0.8/_/_/build/da606cf731e334010b0bf6e85a2a6f891b9f36b0/source_subfolder/bzip2.c:1073:11: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result [-Wunused-result] 1073 | (void) fchown ( fd, fileMetaInfo.st_uid, fileMetaInfo.st_gid ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BZIP2_FOUND: TRUE BZIP2_NEED_PREFIX: TRUE BZIP2_INCLUDE_DIRS: /home/conan/w/cci_PR-4684/.conan/data/bzip2/1.0.8/_/_/package/da606cf731e334010b0bf6e85a2a6f891b9f36b0/include BZIP2_INCLUDE_DIR: /home/conan/w/cci_PR-4684/.conan/data/bzip2/1.0.8/_/_/package/da606cf731e334010b0bf6e85a2a6f891b9f36b0/include BZIP2_LIBRARIES: BZIP2_VERSION_STRING: 1.0.8 CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_INSTALL_BINDIR CMAKE_INSTALL_DATAROOTDIR CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_OLDINCLUDEDIR CMAKE_INSTALL_SBINDIR /home/conan/w/cci_PR-4684/2/24da5b79-94a6-42e3-b8b8-b63e79c9bc50/recipes/bzip2/all/test_package/test_package.c: In function ‘applySavedFileAttrToOutputFile’: /home/conan/w/cci_PR-4684/2/24da5b79-94a6-42e3-b8b8-b63e79c9bc50/recipes/bzip2/all/test_package/test_package.c:1073:11: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result [-Wunused-result] 1073 | (void) fchown ( fd, fileMetaInfo.st_uid, fileMetaInfo.st_gid ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `license': test_package.c:(.text+0x275): undefined reference to `BZ2_bzlibVersion' /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `usage': test_package.c:(.text+0x2a5): undefined reference to `BZ2_bzlibVersion' /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `testStream': test_package.c:(.text+0xa05): undefined reference to `BZ2_bzReadOpen' /usr/bin/ld: test_package.c:(.text+0xa37): undefined reference to `BZ2_bzRead' /usr/bin/ld: test_package.c:(.text+0xa66): undefined reference to `BZ2_bzReadGetUnused' /usr/bin/ld: test_package.c:(.text+0xc47): undefined reference to `BZ2_bzReadClose' /usr/bin/ld: test_package.c:(.text+0xc99): undefined reference to `BZ2_bzReadClose' /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `uncompressStream': test_package.c:(.text+0xf2c): undefined reference to `BZ2_bzReadOpen' /usr/bin/ld: test_package.c:(.text+0xf5f): undefined reference to `BZ2_bzRead' /usr/bin/ld: test_package.c:(.text+0xfbe): undefined reference to `BZ2_bzReadGetUnused' /usr/bin/ld: test_package.c:(.text+0x119f): undefined reference to `BZ2_bzReadClose' /usr/bin/ld: test_package.c:(.text+0x11fe): undefined reference to `BZ2_bzReadClose' /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `compressStream': test_package.c:(.text+0x1597): undefined reference to `BZ2_bzWriteOpen' /usr/bin/ld: test_package.c:(.text+0x163e): undefined reference to `BZ2_bzWriteClose64' /usr/bin/ld: test_package.c:(.text+0x167d): undefined reference to `BZ2_bzWrite' /usr/bin/ld: test_package.c:(.text+0x16cc): undefined reference to `BZ2_bzWriteClose64' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/test_package.dir/build.make:103: bin/test_package] Error 1 make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/test_package.dir/all] Error 2 make: *** [Makefile:103: all] Error 2 ERROR: bzip2/1.0.8 (test package): Error in build() method, line 12 cmake.build() ConanException: Error 2 while executing cmake --build '/home/conan/w/cci_PR-4684/2/24da5b79-94a6-42e3-b8b8-b63e79c9bc50/recipes/bzip2/all/test_package/build/13256c8c29fba4082576251a14cdb95110c3b3bd' '--' '-j3'