MantisBT - CMake
View Issue Details
0015260CMake(No Category)public2014-11-23 13:302015-04-06 09:07
szukw000 
 
normalminorhave not tried
closedno change required 
LinuxLinux3.17.1
CMake 3.0.2 
 
0015260: Compilation error for cmake-3.1.0-rc2 with gcc-4.8.2
LINUX, gcc-4.8.2
==================
/sources/CMAKE/cmake-3.1.0-rc2/Source/cmArchiveWrite.cxx: In function 'void cm_archive_entry_copy_sourcepath(archive_entry*, const string&)':
/sources/CMAKE/cmake-3.1.0-rc2/Source/cmArchiveWrite.cxx:43:75: error: 'archive_entry_copy_sourcepath_w' was not declared in this scope
   archive_entry_copy_sourcepath_w(e, cmsys::Encoding::ToWide(file).c_str());
                                                                           ^
/sources/CMAKE/cmake-3.1.0-rc2/Source/cmArchiveWrite.cxx: In constructor 'cmArchiveWrite::cmArchiveWrite(std::ostream&, cmArchiveWrite::Compress, cmArchiveWrite::Type)':
/sources/CMAKE/cmake-3.1.0-rc2/Source/cmArchiveWrite.cxx:164:53: error: 'archive_write_set_format_7zip' was not declared in this scope
       if(archive_write_set_format_7zip(this->Archive) != ARCHIVE_OK)
                                                     ^
make[2]: *** [Source/CMakeFiles/CMakeLib.dir/cmArchiveWrite.cxx.o] Error 1
make[1]: *** [Source/CMakeFiles/CMakeLib.dir/all] Error 2
make: *** [all] Error 2

winfried

No tags attached.
Issue History
2014-11-23 13:30szukw000New Issue
2014-11-25 09:29Brad KingNote Added: 0037274
2014-11-25 16:13szukw000Note Added: 0037285
2014-11-25 18:09Brad KingNote Added: 0037286
2014-11-26 02:55szukw000Note Added: 0037287
2014-11-26 09:31Brad KingNote Added: 0037292
2014-11-26 09:31Brad KingStatusnew => resolved
2014-11-26 09:31Brad KingResolutionopen => no change required
2015-04-06 09:07Robert MaynardNote Added: 0038448
2015-04-06 09:07Robert MaynardStatusresolved => closed

Notes
(0037274)
Brad King   
2014-11-25 09:29   
Please provide instructions to reproduce the build you did.

Are you using a system-installed libarchive?
(0037285)
szukw000   
2014-11-25 16:13   
Upto cmake-3.0.2 I use:

do_configure:
    ./configure \
    --prefix=/usr \
    --qt-gui \
    --system-libs

Then 'make' and 'make install'. It always worked upto cmake-3.0.2.

What the hell is 'a system-installed libarchive'?

winfried
(0037286)
Brad King   
2014-11-25 18:09   
Re 0015260:0037285: The --system-libs option tells CMake to find and use the "libarchive" project as installed (perhaps by a package manager) on your system instead of building its own. The version of libarchive on your system may be older than that required by CMake 3.1 (for the lzma support advertised in the release notes). You could add --no-system-libarchive to tell CMake to use its own copy of libarchive but still use other libraries found on your system. Or, you could install a libarchive version new enough to provide archive_write_set_format_7zip. Coincidentally, libarchive 3.0.2 appears to have added it.
(0037287)
szukw000   
2014-11-26 02:55   
OK:
OLD: libarchive-2.8.5, /usr/lib64/libarchive.so.2.8.4
NEW: libarchive-3.1.2, /usr/lib64/libarchive.so.13.1.2

No compilation error. Thank you.
winfried
(0037292)
Brad King   
2014-11-26 09:31   
Great. Thanks for reporting back.
(0038448)
Robert Maynard   
2015-04-06 09:07   
Closing resolved issues that have not been updated in more than 4 months.