MantisBT - CMake
View Issue Details
0007508CMakeModulespublic2008-08-20 06:482009-02-23 22:41
Jarl Friis 
Philip Lowman 
normalmajoralways
closedunable to reproduce 
CMake-2-6 
CMake-2-6 
0007508: FindBoost fails to find boost on SuSE 10.3
Summary says it all, here is a patch:


--- FindBoost.cmake~ 2008-08-01 17:34:50.000000000 +0200
+++ FindBoost.cmake 2008-08-20 12:34:47.000000000 +0200
@@ -438,6 +438,7 @@
                ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}-${Boost_LIB_VERSION}
                ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}
                ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG}
+ ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}-${Boost_LIB_VERSION}
                ${Boost_LIB_PREFIX}boost_${COMPONENT}
         HINTS ${_boost_LIBRARIES_SEARCH_DIRS}
     )
No tags attached.
related to 0008404closed Philip Lowman FindBoost in CMake 2.6.2 doesn't work on Gentoo 
txt boost-devel.txt (179,296) 2009-01-19 04:38
https://public.kitware.com/Bug/file/1999/boost-devel.txt
Issue History
2008-08-20 06:48Jarl FriisNew Issue
2008-08-20 09:53Bill HoffmanStatusnew => assigned
2008-08-20 09:53Bill HoffmanAssigned To => Douglas Gregor
2009-01-19 02:36Philip LowmanNote Added: 0014613
2009-01-19 04:37Jarl FriisNote Added: 0014614
2009-01-19 04:38Jarl FriisFile Added: boost-devel.txt
2009-01-19 04:40Jarl FriisNote Edited: 0014614
2009-01-19 05:10Philip LowmanNote Added: 0014615
2009-01-19 05:16Philip LowmanNote Edited: 0014615
2009-01-19 23:00Philip LowmanRelationship addedrelated to 0008404
2009-01-19 23:00Philip LowmanNote Added: 0014642
2009-01-28 23:48Philip LowmanAssigned ToDouglas Gregor => Philip Lowman
2009-01-28 23:48Philip LowmanStatusassigned => resolved
2009-01-28 23:48Philip LowmanResolutionopen => unable to reproduce
2009-02-23 22:41Philip LowmanStatusresolved => closed
2009-02-23 22:41Philip LowmanFixed in Version => CMake-2-6

Notes
(0014613)
Philip Lowman   
2009-01-19 02:36   
Jarl,

I've included the patch. Would you be so kind as to include a directory listing of what your Boost filenams look like on Suse 10.3?

Committer: Philip Lowman <philip@yhbt.com>
/cvsroot/CMake/CMake/Modules/FindBoost.cmake,v <-- FindBoost.cmake
new revision: 1.27; previous revision: 1.26
(0014614)
Jarl Friis   
2009-01-19 04:37   
(edited on: 2009-01-19 04:40)
I have switched to Ubuntu, but from ftp://mirrors.kernel.org/opensuse/distribution/10.3/repo/oss/suse/i586/ [^] I have taken
boost-1.33.1-108.i586.rpm boost-devel-1.33.1-108.i586.rpm

and the result of rpm -qlp boost-1.33.1-108.i586.rpm is
/usr/lib/libboost_date_time.so.1.33.1
/usr/lib/libboost_filesystem.so.1.33.1
/usr/lib/libboost_iostreams.so.1.33.1
/usr/lib/libboost_prg_exec_monitor.so.1.33.1
/usr/lib/libboost_program_options.so.1.33.1
/usr/lib/libboost_python.so.1.33.1
/usr/lib/libboost_regex.so.1.33.1
/usr/lib/libboost_serialization.so.1.33.1
/usr/lib/libboost_signals.so.1.33.1
/usr/lib/libboost_test_exec_monitor.so.1.33.1
/usr/lib/libboost_thread-mt.so.1.33.1
/usr/lib/libboost_unit_test_framework.so.1.33.1
/usr/lib/libboost_wserialization.so.1.33.1
/usr/share/doc/packages/boost
/usr/share/doc/packages/boost/NEWS


and I will attach the result of rpm -qlp boost-devel-1.33.1-108.i586.rpm

Further you may want to investigate the filenames in the equivalent packages in the 11.0 version. These can be found on same ftp site.

Jarl

(0014615)
Philip Lowman   
2009-01-19 05:10   
(edited on: 2009-01-19 05:16)
Hmm, the lines below (in current FindBoost) should catch the symlinks in the boost-devel package without you having to add the line that you did. I'm not sure what went wrong with FindBoost for you but I suspect it was one of the other dozen bugs I've fixed in the last few days.

 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}
 ${Boost_LIB_PREFIX}boost_${COMPONENT}

Resolves to
  boost_regex-mt
  boost_regex

Adding the line you proposed: ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}-${Boost_LIB_VERSION}

Would resolve to:
  boost_regex-mt-1_33_1
  boost_regex-1_33_1
In other words search for the following files (in this order)
  libboost_regex-mt-1_33_1.so
  libboost_regex-mt-1_33_1.a
  libboost_regex-1_33_1.so
  libboost_regex-1_33_1.a

Not sure what went wrong exactly, I wouldn't lose much sleep over it though. FindBoost has had some serious issues (which hopefully are all fixed now. =) )

(0014642)
Philip Lowman   
2009-01-19 23:00   
Perhaps Suse patched their RPMs? A user suggested adding the same line as you to FindBoost (amongst a few others) to resolve issues on Gentoo.

http://public.kitware.com/Bug/view.php?id=8404 [^]