View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011027CMakeModulespublic2010-07-22 05:342011-10-27 19:01
ReporterGeorge Petasis 
Assigned ToDavid Cole 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake 2.8.4 
Summary0011027: FindPerlLibs.cmake fails to locate perl library under OS X 10.6
DescriptionFindPerlLibs does not work for perl under Snow Leopard.
In order to locate the libperl.dylib, it constructs PERL_POSSIBLE_LIB_PATHS
based on the value of PERL_ARCHLIB, which is filled with "perl -V:installarchlib".

Thus, PERL_ARCHLIB gets the value /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level, while "perl -V:archlib" returns /System/Library/Perl/5.10.0/darwin-thread-multi-2level.

locate libperl:
/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE/libperl.dylib
/System/Library/Perl/5.8.9/darwin-thread-multi-2level/CORE/libperl.dylib
/System/Library/Perl/lib/5.10/libperl.dylib
/System/Library/Perl/lib/5.8/libperl.dylib

So, FindPerlLibs.cmake needs to also add the path returned aby archlib when searching for library & include files.
TagsNo tags attached.
Attached Files

 Relationships
related to 0012544closedKitware Robot FindPerlLibs.cmake still fails to locate perl library under OS X 10.7 

  Notes
(0024826)
David Cole (manager)
2011-01-17 16:37

Can you try CMake 2.8.4-rc1 and see if this issue is resolved?

I suspect this improvement to FindPerlLibs.cmake (specifically for the Mac) may have fixed this issue:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=20ceccc4f28474c89af5797640852f966b731be4 [^]

Thanks!
(0024925)
David Cole (manager)
2011-01-19 11:56

I have tested this on my Mac using CMake 2.8.4-rc1 with the built-in perl and with a MacPorts installed perl in /opt/local, and they both produce what I would consider the expected results. No mention of the "/Updates/" anywhere in any found paths.

Please re-open if there is still any issue with this on your end after updating to CMake 2.8.4-rc1 or later.

Thanks!
(0026367)
David Cole (manager)
2011-05-02 14:46

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

 Issue History
Date Modified Username Field Change
2010-07-22 05:34 George Petasis New Issue
2011-01-17 16:36 David Cole Assigned To => David Cole
2011-01-17 16:36 David Cole Status new => assigned
2011-01-17 16:37 David Cole Note Added: 0024826
2011-01-19 11:56 David Cole Note Added: 0024925
2011-01-19 11:56 David Cole Status assigned => resolved
2011-01-19 11:56 David Cole Fixed in Version => CMake 2.8.4
2011-01-19 11:56 David Cole Resolution open => fixed
2011-05-02 14:46 David Cole Note Added: 0026367
2011-05-02 14:46 David Cole Status resolved => closed
2011-10-28 13:33 Brad King Relationship added related to 0012544


Copyright © 2000 - 2018 MantisBT Team