View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015260CMake(No Category)public2014-11-23 13:302015-04-06 09:07
Reporterszukw000 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformLinuxOSLinuxOS Version3.17.1
Product VersionCMake 3.0.2 
Target VersionFixed in Version 
Summary0015260: Compilation error for cmake-3.1.0-rc2 with gcc-4.8.2
DescriptionLINUX, 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

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0037274)
Brad King (manager)
2014-11-25 09:29

Please provide instructions to reproduce the build you did.

Are you using a system-installed libarchive?
(0037285)
szukw000 (reporter)
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 (manager)
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 (reporter)
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 (manager)
2014-11-26 09:31

Great. Thanks for reporting back.
(0038448)
Robert Maynard (manager)
2015-04-06 09:07

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-11-23 13:30 szukw000 New Issue
2014-11-25 09:29 Brad King Note Added: 0037274
2014-11-25 16:13 szukw000 Note Added: 0037285
2014-11-25 18:09 Brad King Note Added: 0037286
2014-11-26 02:55 szukw000 Note Added: 0037287
2014-11-26 09:31 Brad King Note Added: 0037292
2014-11-26 09:31 Brad King Status new => resolved
2014-11-26 09:31 Brad King Resolution open => no change required
2015-04-06 09:07 Robert Maynard Note Added: 0038448
2015-04-06 09:07 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team