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/73baa4ecfbbb27db046fd0e46c3fa0593bf48276/source_subfolder/bzip2.c: In function ‘applySavedFileAttrToOutputFile’: /home/conan/w/cci_PR-4684/.conan/data/bzip2/1.0.8/_/_/build/73baa4ecfbbb27db046fd0e46c3fa0593bf48276/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/73baa4ecfbbb27db046fd0e46c3fa0593bf48276/include BZIP2_INCLUDE_DIR: /home/conan/w/cci_PR-4684/.conan/data/bzip2/1.0.8/_/_/package/73baa4ecfbbb27db046fd0e46c3fa0593bf48276/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/78931f42-fa18-4efe-bfca-dabc6f8604c8/recipes/bzip2/all/test_package/test_package.c: In function ‘applySavedFileAttrToOutputFile’: /home/conan/w/cci_PR-4684/2/78931f42-fa18-4efe-bfca-dabc6f8604c8/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 `compressStream': test_package.c:(.text+0xae7): undefined reference to `BZ2_bzWriteOpen' /usr/bin/ld: test_package.c:(.text+0xb8e): undefined reference to `BZ2_bzWriteClose64' /usr/bin/ld: test_package.c:(.text+0xbcd): undefined reference to `BZ2_bzWrite' /usr/bin/ld: test_package.c:(.text+0xc1c): undefined reference to `BZ2_bzWriteClose64' /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `testStream': test_package.c:(.text+0x1045): undefined reference to `BZ2_bzReadOpen' /usr/bin/ld: test_package.c:(.text+0x1077): undefined reference to `BZ2_bzRead' /usr/bin/ld: test_package.c:(.text+0x10a6): undefined reference to `BZ2_bzReadGetUnused' /usr/bin/ld: test_package.c:(.text+0x11e3): undefined reference to `BZ2_bzReadClose' /usr/bin/ld: test_package.c:(.text+0x1239): undefined reference to `BZ2_bzReadClose' /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `uncompressStream': test_package.c:(.text+0x14cc): undefined reference to `BZ2_bzReadOpen' /usr/bin/ld: test_package.c:(.text+0x14ff): undefined reference to `BZ2_bzRead' /usr/bin/ld: test_package.c:(.text+0x155e): undefined reference to `BZ2_bzReadGetUnused' /usr/bin/ld: test_package.c:(.text+0x169b): undefined reference to `BZ2_bzReadClose' /usr/bin/ld: test_package.c:(.text+0x16f6): undefined reference to `BZ2_bzReadClose' 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/78931f42-fa18-4efe-bfca-dabc6f8604c8/recipes/bzip2/all/test_package/build/999abd8b0788495977c46df66e762eab07def051' '--' '-j3'