View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0010418 | CMake | Modules | public | 2010-03-13 17:42 | 2010-09-09 23:59 | ||||
Reporter | Clinton Stimpson | ||||||||
Assigned To | David Cole | ||||||||
Priority | normal | Severity | minor | Reproducibility | sometimes | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | CMake 2.8.3 | Fixed in Version | CMake 2.8.3 | ||||||
Summary | 0010418: get_prerequisites() gives bad results if ldd couldn't find full path to item | ||||||||
Description | ldd gives "not found" if the full path to a library could not be found. GetPrerequisites.cmake interprets that as the target depending on "not" and I have to debug the script for which library it really is. It should probably be fixed to return the name of the library, instead of the full path, so one can get relevant warnings/errors from BundleUtilities.cmake. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | gp.patch [^] (2,310 bytes) 2010-03-17 00:12 [Show Content] | ||||||||
Relationships | |
Relationships |
Notes | |
(0019895) Clinton Stimpson (developer) 2010-03-16 11:20 |
Here's an example to demonstrate the problem: ==== # pick any non-system library with non-system dependencies set(lib1 $ENV{HOME}/vtk/build/bin/libvtkFiltering.so) set(lib2 ${CMAKE_CURRENT_BINARY_DIR}/libvtkFiltering.so) configure_file("${lib1}" "${lib2}" COPYONLY) file(RPATH_REMOVE FILE "${lib2}") include(GetPrerequisites) get_prerequisites("${lib2}" deps 0 0 "" "") message("deps are:") foreach(dep ${deps}) message(" ${dep}") endforeach(dep) ==== Output of cmake -P <script> is: deps are: /lib/libc.so.6 /lib/libdl.so.2 /lib/libgcc_s.so.1 /lib/libm.so.6 /usr/lib/libstdc++.so.6 not Instead of "not" I'd rather see "libvtkCommon.so.5.5" and "libvtksys.so.5.5" which comes out in the first column of ldd, even without full paths, just so I can see what the problem really is. |
(0019917) Clinton Stimpson (developer) 2010-03-17 00:12 |
I've attached a patch that fixes it. |
(0021180) Clinton Stimpson (developer) 2010-06-25 16:47 |
fixed in git |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2010-03-13 17:42 | Clinton Stimpson | New Issue | |
2010-03-16 08:58 | Bill Hoffman | Status | new => assigned |
2010-03-16 08:58 | Bill Hoffman | Assigned To | => David Cole |
2010-03-16 11:20 | Clinton Stimpson | Note Added: 0019895 | |
2010-03-17 00:12 | Clinton Stimpson | File Added: gp.patch | |
2010-03-17 00:12 | Clinton Stimpson | Note Added: 0019917 | |
2010-06-25 16:47 | Clinton Stimpson | Note Added: 0021180 | |
2010-06-25 16:47 | Clinton Stimpson | Status | assigned => closed |
2010-06-25 16:47 | Clinton Stimpson | Resolution | open => fixed |
2010-09-09 23:59 | David Cole | Fixed in Version | => CMake 2.8.3 |
2010-09-09 23:59 | David Cole | Target Version | => CMake 2.8.3 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |