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/a5875aed3fc7ae8dd0488f7e5e99acbc480d721d/source_subfolder/bzip2.c: In function ‘applySavedFileAttrToOutputFile’: /home/conan/w/cci_PR-4684/.conan/data/bzip2/1.0.8/_/_/build/a5875aed3fc7ae8dd0488f7e5e99acbc480d721d/source_subfolder/bzip2.c:1073:11: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result [-Wunused-result] (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/a5875aed3fc7ae8dd0488f7e5e99acbc480d721d/include BZIP2_INCLUDE_DIR: /home/conan/w/cci_PR-4684/.conan/data/bzip2/1.0.8/_/_/package/a5875aed3fc7ae8dd0488f7e5e99acbc480d721d/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/02694f3a-9408-4aff-8982-f8d80eaac1e3/recipes/bzip2/all/test_package/test_package.c: In function ‘applySavedFileAttrToOutputFile’: /home/conan/w/cci_PR-4684/2/02694f3a-9408-4aff-8982-f8d80eaac1e3/recipes/bzip2/all/test_package/test_package.c:1073:11: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result [-Wunused-result] (void) fchown ( fd, fileMetaInfo.st_uid, fileMetaInfo.st_gid ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CMakeFiles/test_package.dir/test_package.c.o: In function `license': test_package.c:(.text+0x255): undefined reference to `BZ2_bzlibVersion' CMakeFiles/test_package.dir/test_package.c.o: In function `usage': test_package.c:(.text+0x285): undefined reference to `BZ2_bzlibVersion' CMakeFiles/test_package.dir/test_package.c.o: In function `testStream': test_package.c:(.text+0x9ea): undefined reference to `BZ2_bzReadOpen' test_package.c:(.text+0xa1f): undefined reference to `BZ2_bzRead' test_package.c:(.text+0xa4e): undefined reference to `BZ2_bzReadGetUnused' test_package.c:(.text+0xc3f): undefined reference to `BZ2_bzReadClose' test_package.c:(.text+0xc91): undefined reference to `BZ2_bzReadClose' CMakeFiles/test_package.dir/test_package.c.o: In function `uncompressStream': test_package.c:(.text+0xf31): undefined reference to `BZ2_bzReadOpen' test_package.c:(.text+0xf67): undefined reference to `BZ2_bzRead' test_package.c:(.text+0xfc6): undefined reference to `BZ2_bzReadGetUnused' test_package.c:(.text+0x11b7): undefined reference to `BZ2_bzReadClose' test_package.c:(.text+0x1216): undefined reference to `BZ2_bzReadClose' CMakeFiles/test_package.dir/test_package.c.o: In function `compressStream': test_package.c:(.text+0x15ab): undefined reference to `BZ2_bzWriteOpen' test_package.c:(.text+0x1651): undefined reference to `BZ2_bzWriteClose64' test_package.c:(.text+0x1695): undefined reference to `BZ2_bzWrite' test_package.c:(.text+0x16e9): undefined reference to `BZ2_bzWriteClose64' collect2: error: ld returned 1 exit status make[2]: *** [bin/test_package] Error 1 make[1]: *** [CMakeFiles/test_package.dir/all] Error 2 make: *** [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/02694f3a-9408-4aff-8982-f8d80eaac1e3/recipes/bzip2/all/test_package/build/8e915bd3ee3eebef78c845fde408db7dc0ea4a74' '--' '-j3'