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/b782485ef31b663045987064d52b9600980ce843/source_subfolder/bzip2.c: In function ‘applySavedFileAttrToOutputFile’: /home/conan/w/cci_PR-4684/.conan/data/bzip2/1.0.8/_/_/build/b782485ef31b663045987064d52b9600980ce843/source_subfolder/bzip2.c:1073:4: 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/b782485ef31b663045987064d52b9600980ce843/include BZIP2_INCLUDE_DIR: /home/conan/w/cci_PR-4684/.conan/data/bzip2/1.0.8/_/_/package/b782485ef31b663045987064d52b9600980ce843/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/11593471-eb08-44e1-a636-6ba162344673/recipes/bzip2/all/test_package/test_package.c: In function ‘applySavedFileAttrToOutputFile’: /home/conan/w/cci_PR-4684/2/11593471-eb08-44e1-a636-6ba162344673/recipes/bzip2/all/test_package/test_package.c:1073:4: 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+0x54a): undefined reference to `BZ2_bzReadOpen' test_package.c:(.text+0x57f): undefined reference to `BZ2_bzRead' test_package.c:(.text+0x5ae): undefined reference to `BZ2_bzReadGetUnused' test_package.c:(.text+0x78a): undefined reference to `BZ2_bzReadClose' test_package.c:(.text+0x7d9): undefined reference to `BZ2_bzReadClose' CMakeFiles/test_package.dir/test_package.c.o: In function `uncompressStream': test_package.c:(.text+0xa61): undefined reference to `BZ2_bzReadOpen' test_package.c:(.text+0xa97): undefined reference to `BZ2_bzRead' test_package.c:(.text+0xaf6): undefined reference to `BZ2_bzReadGetUnused' test_package.c:(.text+0xcca): undefined reference to `BZ2_bzReadClose' test_package.c:(.text+0xd22): undefined reference to `BZ2_bzReadClose' CMakeFiles/test_package.dir/test_package.c.o: In function `compressStream': test_package.c:(.text+0x14ab): undefined reference to `BZ2_bzWriteOpen' test_package.c:(.text+0x152c): undefined reference to `BZ2_bzWrite' test_package.c:(.text+0x157a): undefined reference to `BZ2_bzWriteClose64' test_package.c:(.text+0x15ad): 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/11593471-eb08-44e1-a636-6ba162344673/recipes/bzip2/all/test_package/build/5a8ae163521984d1a4954a7402b52c04aa3d2bc2' '--' '-j3'