If everything described below, we need to *fix the book*.
I was trying to check packages build with cmake-3.3.0. Apparently no
problem, have checked many. One that has given problems in the past is
kde-workspace, so I am trying to get to kde-workspace-4.11.21 build.
There is a problem in building akonadi-1.13.0 (have boost-1.58.0 installed).
I found a post related to this problem, apparently there is a solution,
but couldn't find it:
Problem described from my log is at the end, and is similar, if not
identical, to the one described at
[https://www.mail-archive.com/[email protected]/msg26626.html]
The last reply apparently tells that a solution was found:
[https://www.mail-archive.com/[email protected]/msg26714.html]
{{{
>>> nm -o /sw/lib/libboost_program_options-mt.1.41.0.dylib | c++filt |
>>> grep boost::program_options::detail::cmdline::set_options_description
>> Running this I get the following:
>>
>> /sw/lib/libboost_program_options-mt.1.41.0.dylib: 0000000000002320 T
>>
boost::program_options::detail::cmdline::set_options_description(boost::program_options::options_description
>> const&)
>
> On that linker line, there should be a -lboost_program_options-mt or an
> explicit path name for this library. My guess is that cmake didn't find
> the boost librairies. This might have been indicated earlier in the
> build process. Look for the string "boost" in the log.
Nope, cmake and boost and akonadi conspired to confuse or change what
variable is used to handle that flag. I just *committed* a new revision
that *Works For Me* (I previously had the same build failure)
}}}
*My build log*:
{{{
...
[ 6%] Building CXX object
shared/CMakeFiles/akonadi_shared.dir/akapplication.cpp.o
...
[ 8%] Linking CXX executable ../bin/akonadi_agent_launcher
../lib/libakonadi_shared.a(akapplication.cpp.o): In function
`AkApplication::parseCommandLine()':
akapplication.cpp:(.text+0x330): undefined reference to
`boost::program_options::options_description::options_description(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int,
unsigned int)'
akapplication.cpp:(.text+0x424): undefined reference to
`boost::program_options::options_description::options_description(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, unsigned int,
unsigned int)'
akapplication.cpp:(.text+0x774): undefined reference to
`boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) const'
../lib/libakonadi_shared.a(akapplication.cpp.o): In function
`boost::program_options::typed_value<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
char>::xparse(boost::any&, std::vector<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > const&) const':
akapplication.cpp:(.text._ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE6xparseERNS_3anyERKSt6vectorIS7_SaIS7_EE[_ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE6xparseERNS_3anyERKSt6vectorIS7_SaIS7_EE]+0x17):
undefined reference to `boost::program_options::validate(boost::any&,
std::vector<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > const&,
std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >*, int)'
../lib/libakonadi_shared.a(akapplication.cpp.o): In function
`boost::program_options::typed_value<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >, char>::name() const':
akapplication.cpp:(.text._ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE4nameEv[_ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE4nameEv]+0x22):
undefined reference to `boost::program_options::arg[abi:cxx11]'
akapplication.cpp:(.text._ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE4nameEv[_ZNK5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcE4nameEv]+0x28):
undefined reference to `boost::program_options::arg[abi:cxx11]'
../lib/libakonadi_shared.a(akapplication.cpp.o): In function
`boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int,
char const* const*)':
akapplication.cpp:(.text._ZN5boost15program_options25basic_command_line_parserIcEC2EiPKPKc[_ZN5boost15program_options25basic_command_line_parserIcEC5EiPKPKc]+0x288):
undefined reference to
`boost::program_options::to_internal(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
akapplication.cpp:(.text._ZN5boost15program_options25basic_command_line_parserIcEC2EiPKPKc[_ZN5boost15program_options25basic_command_line_parserIcEC5EiPKPKc]+0x317):
undefined reference to
`boost::program_options::detail::cmdline::cmdline(std::vector<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > const&)'
../lib/libakonadi_shared.a(akapplication.cpp.o):(.rodata._ZTVN5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEE[_ZTVN5boost15program_options11typed_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEE]+0x38):
undefined reference to
`boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&,
std::vector<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > const&, bool) const'
collect2: error: ld returned 1 exit status
agentserver/CMakeFiles/akonadi_agent_launcher.dir/build.make:154: recipe
for target 'bin/akonadi_agent_launcher' failed
make[2]: *** [bin/akonadi_agent_launcher] Error 1
CMakeFiles/Makefile2:1418: recipe for target
'agentserver/CMakeFiles/akonadi_agent_launcher.dir/all' failed
make[1]: *** [agentserver/CMakeFiles/akonadi_agent_launcher.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
real 0m36.874s
}}}
--
[]s,
Fernando
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page