View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010933CMakeCMakepublic2010-07-03 10:372012-07-09 06:52
ReporterAndrey Rahmatullin 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake 2.8.8 
Summary0010933: CMake tries to link against -llibarchive
DescriptionSET(CMAKE_TAR_LIBRARIES libarchive) causes CMake to link against "libarchive", not "archive":

/usr/bin/ld: cannot find -llibarchive
collect2: ld returned 1 exit status
make[2]: *** [Source/libCMakeLib.so] Error 1
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0021378)
Bill Hoffman (manager)
2010-07-13 09:18

How did you configure CMake?
(0021389)
Andrey Rahmatullin (reporter)
2010-07-14 03:03

Well, I've added -DCMAKE_USE_SYSTEM_LIBARCHIVE=1 to cmake_bootstrap_system_libs= in bootstrap and used bootstrap --system-libs. I've ignored the message about missing FindLibArchive.cmake because it is not needed here and to build cmake with system libarchive I've needed only to change "libarchive" to "archive" in the line mentioned in this report.
(0021390)
Andrey Rahmatullin (reporter)
2010-07-14 03:06

I've looked at the Debian patch in 0010923, it solves the same problem in a more proper way (it changes "libarchive" to the FindLibArchive.cmake result).
(0028246)
Brad King (manager)
2012-01-10 17:12

Is this still a problem in CMake's Git master? Lots of stuff has changed since this issue was reported.
(0028254)
Andrey Rahmatullin (reporter)
2012-01-11 03:36

No, it looks fixed.
(0029951)
David Cole (manager)
2012-07-09 06:52

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

 Issue History
Date Modified Username Field Change
2010-07-03 10:37 Andrey Rahmatullin New Issue
2010-07-13 09:18 Bill Hoffman Note Added: 0021378
2010-07-13 09:19 Bill Hoffman Status new => assigned
2010-07-13 09:19 Bill Hoffman Assigned To => Bill Hoffman
2010-07-14 03:03 Andrey Rahmatullin Note Added: 0021389
2010-07-14 03:06 Andrey Rahmatullin Note Added: 0021390
2012-01-10 17:12 Brad King Note Added: 0028246
2012-01-11 03:36 Andrey Rahmatullin Note Added: 0028254
2012-01-11 08:33 Brad King Status assigned => resolved
2012-01-11 08:33 Brad King Fixed in Version => CMake 2.8.8
2012-01-11 08:33 Brad King Resolution open => fixed
2012-01-11 08:33 Brad King Assigned To Bill Hoffman => Brad King
2012-07-09 06:52 David Cole Note Added: 0029951
2012-07-09 06:52 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team