[CMake] cmake compile on 64-bit SUSE

George McConnell gmcconnell at gmail.com
Tue Feb 20 14:54:24 EST 2007


I meant to say "OR apply the patch manually to a clean cmake source tree."

On 2/20/07, George McConnell

> Thanks for the reply.
>
> I am running into the same error when I build from source RPM (rpmbuild
> -bb cmake.spec) and apply the patch manually to a clean cmake source tree.
>
> I can't install the binary rpm directly as it has dependencies on updated
> packages that I cannot install.
>
> Any other ideas?
>
> On 2/20/07, Andreas Schneider
>
> >
> > > I cannot get get cmake-2.4.6 to compile on a 64-bit SUSE Enterprise
> > > Server. I suspect this is an ncurses issue, but I can't find a
> > resolution.
> > >
> > > I have the ncurses development package installed.
> > >
> >
> > There is a cmake 2.4.6 package for SLE 10 on the build service
> >
> > http://software.opensuse.org/download/devel:/tools:/building/SLE_10/
> >
> > If you still want to compile it yourself, check the source rpm for the
> > patches.
> >
> >         -- andreas
> >
> > > node:/tmp/cmake- 2.4.6 # rpm -qa | grep ncurse
> > > ncurses-devel-5.4-61.4
> > > ncurses-5.4-61.4
> > > yast2-ncurses-2.9.26-0.5
> > >
> > > My build exits during the link of ccmake (~97%)
> > >
> > > Linking CXX executable ../bin/ccmake
> > > /tmp/cmake-2.4.6
> > > /Source/libCMakeLib.a(cmCacheManager.o )(.gnu.linkonce.t._ZNSt23_
> > > Rb_tree_const_iteratorISt4pairI
> > > KN5cmsys6StringEN14cmCacheManager10CacheEntryEEEp
> > > pEv+0x19): In function
> > > `std::_Rb_tree_const_iterator<std::pair<cmsys::String con
> > > st, cmCacheManager::CacheEntry> >::operator++()':
> > > : undefined reference to
> > > `std::_Rb_tree_increment(std::_Rb_tree_node_base const*
> > > )'
> > >
> > >  .............SNIP.....................
> > >
> > > /tmp/cmake-
> > > 2.4.6/Source/kwsys/libcmsys.a(SystemTools.o
> > )(.gnu.linkonce.t._ZNSt8_Rb_treeISsSt4pairIKSsSsESt10_Select1stIS2_ESt4lessISsESaIS2_EE9_M_insertEPSt18_Rb_tree_node_baseSA_RKS2_+0x92):
> > > In function `std::_Rb_tree<std::basic_string<char,
> > > std::char_traits<char>, std::allocator<char> >,
> > > std::pair<std::basic_string<char, std::char_traits<char>,
> > > std::allocator<char> > const, std::basic_string<char,
> > > std::char_traits<char>, std::allocator<char> > >,
> > > std::_Select1st<std::pair<std::basic_string<char,
> > > std::char_traits<char>, std::allocator<char> > const,
> > > std::basic_string<char, std::char_traits<char>, std::allocator<char> >
> > >
> > >>, std::less<std::basic_string<char, std::char_traits<char>,
> > > std::allocator<char> > >,
> > > std::allocator<std::pair<std::basic_string<char,
> > std::char_traits<char>,
> > > std::allocator<char> > const, std::basic_string<char,
> > > std::char_traits<char>, std::allocator<char> > > >
> > >>::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
> > > std::pair<std::basic_string<char, std::char_traits<char>,
> > > std::allocator<char> > const, std::basic_string<char,
> > > std::char_traits<char>, std::allocator<char> > > const&)':
> > > : undefined reference to `std::_Rb_tree_insert_and_rebalance(bool,
> > > std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
> > > std::_Rb_tree_node_base&)'
> > > /tmp/cmake-2.4.6/Source/kwsys/libcmsys.a(SystemTools.o
> > )(.gnu.linkonce.t._ZNSt17_Rb_tree_iteratorISt4pairIKSsSsEEmmEv+0x19):
> > > In function `std::_Rb_tree_iterator<std::pair<std::basic_string<char,
> > > std::char_traits<char>, std::allocator<char> > const,
> > > std::basic_string<char, std::char_traits<char>, std::allocator<char> >
> > >
> > >>::operator--()':
> > > : undefined reference to
> > `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
> > > collect2: ld returned 1 exit status
> > > make[2]: *** [bin/ccmake] Error 1
> > > make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
> > > make: *** [all] Error 2
> > >
> > > There is a large amount of errors like the one above. I chose to post
> > > the first and last error before the compile exits. I can attach the
> > rest
> > > if that will be helpful.
> > >
> > > Can anyone assist me?
> > >
> > > Thanks,
> > > George
> > >
> > >
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070220/54776c25/attachment-0001.htm


More information about the CMake mailing list