Closed liquiz closed 10 years ago
You are having an old version of libarchive. The config script is missing a check for the correct version.
Regards, Moinak. On Jan 14, 2014 12:03 AM, "liquiz" notifications@github.com wrote:
Initial ./config returned a request to install libarchive-dev which was done.
At this point when you do a build everything goes fine until you get to archive/pc_archive.c which starts a string of failures.
archive/pc_archive.c: In function âarchiver_thread_funcâ: archive/pc_archive.c:1048:19: error: âARCHIVE_READDISK_NO_TRAVERSE_MOUNTSâ undeclared (first use in this function) archive/pc_archive.c:1048:19: note: each undeclared identifier is reported only once for each function it appears in archive/pc_archive.c:1049:20: error: âARCHIVE_READDISK_HONOR_NODUMPâ undeclared (first use in this function) archive/pc_archive.c:1052:2: warning: implicit declaration of function âarchive_read_disk_set_behaviorâ [-Wimplicit-function-declaration] make: *\ [archive/pc_archive.o] Error 1
root@virtually-putzu:/tmp/moinakg-pcompress-ba1de93# gcc --version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
— Reply to this email directly or view it on GitHubhttps://github.com/moinakg/pcompress/issues/14 .
Quick turnaround :)
I can verify that after "removing" the version that ubuntu provided(which is probably a 2.8 version) and going to libarchive-3.1.2 (untar, configure, make install) that the compile works.
So Im guessing to close the loop on this the problem really ends up an update to the config script to check for version and or a readme.
Either way problem is fixed per suggestion of upgrading to a current version of libarchive.
Thanks
Initial ./config returned a request to install libarchive-dev which was done.
At this point when you do a build everything goes fine until you get to archive/pc_archive.c which starts a string of failures.
I did a ./config make clean make
. . . archive/pc_archive.c: In function âarchiver_thread_funcâ: archive/pc_archive.c:1048:19: error: âARCHIVE_READDISK_NO_TRAVERSE_MOUNTSâ undeclared (first use in this function) archive/pc_archive.c:1048:19: note: each undeclared identifier is reported only once for each function it appears in archive/pc_archive.c:1049:20: error: âARCHIVE_READDISK_HONOR_NODUMPâ undeclared (first use in this function) archive/pc_archive.c:1052:2: warning: implicit declaration of function âarchive_read_disk_set_behaviorâ [-Wimplicit-function-declaration] make: *\ [archive/pc_archive.o] Error 1
root@virtually-putzu:/tmp/moinakg-pcompress-ba1de93# gcc --version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.