Thread: [Cppcms-users] Problems after upgrading cppcms with booster
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2011-01-11 07:13:28
|
I was using a much older version of cppcms (from the temporary branch, before it was moved to trunk). I downloaded from svn a fresh copy of cppcms from the trunk. cmake .. make make test sudo make install All without any problem. But now, my own application won't compile anymore. I deleted the build directory of my app, and rebuild from scratch, but I get the following errors: /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::generator::get(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::ext_value(std::ios_base&, booster::locale::flags::value_type)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::info::encoding() const' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::ext_setf(std::ios_base&, booster::locale::flags::display_flags_type, booster::locale::flags::display_flags_type)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `void booster::locale::ext_pattern<char>(std::ios_base&, booster::locale::flags::pattern_type, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::impl::convert(booster::locale::impl::conversion_type, char const*, char const*, int, std::locale const*)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::generator::octet_encoding(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined reference to `booster::locale::generator::preload(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' collect2: ld returned 1 exit status libbooster.so.0.0.0 and libcppcms.so.1.0.0 are all properly installed in /usr/local/lib as before, but with today's timestamp. Actually, I had tried to upgrade cppcms earlier, but got a similar error and reverted to using the older cppcms. I added 'booster' to my target_link_libraries() in CMakeLists.txt (it seems it was not required in earlier versions of cppcms). I deleted the build directory and started again... But now, there are compiler errors about the template object: Linking CXX executable ../my_app.fcgi CMakeFiles/../my_app.fcgi.dir/view.cpp.o: In function `void booster::locale::message::write<char>(std::basic_ostream<char, std::char_traits<char> >&) const': view.cpp: (.text._ZNK7booster6locale7message5writeIcEEvRSt13basic_ostreamIT_St11char_traitsIS4_EE[void booster::locale::message::write<char>(std::basic_ostream<char, std::char_traits<char> >&) const]+0x59): undefined reference to `booster::locale::ios_info::get(std::ios_base&)' view.cpp: (.text._ZNK7booster6locale7message5writeIcEEvRSt13basic_ostreamIT_St11char_traitsIS4_EE[void booster::locale::message::write<char>(std::basic_ostream<char, std::char_traits<char> >&) const]+0x61): undefined reference to `booster::locale::ios_info::domain_id() const' collect2: ld returned 1 exit status where view.cpp is generated by cppcms_tmpl_cc from my template. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2011-01-11 08:08:57
|
1. Mare sure you have no two versions installed: For example cmake .. would install CppCMS to /usr/local/(lib|bin|include) But you may used: cmake -DCMAKE_INSTALL_PREFIX=/usr .. which would install CppCMS to /usr/(lib|bin|include) 2. Make sure you had headers and compilation scripts installed. 3. Make sure you rebuild your own application from the scratch with new cppcms. Artyom ----- Original Message ---- > From: augustin <aug...@ov...> > To: cpp...@li... > Sent: Tue, January 11, 2011 9:13:49 AM > Subject: [Cppcms-users] Problems after upgrading cppcms with booster > > I was using a much older version of cppcms (from the temporary branch, before > it was moved to trunk). > > I downloaded from svn a fresh copy of cppcms from the trunk. > cmake .. > make > make test > sudo make install > All without any problem. > > But now, my own application won't compile anymore. I deleted the build > directory of my app, and rebuild from scratch, but I get the following errors: > > > > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `booster::locale::generator::get(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&) const' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `booster::locale::ext_value(std::ios_base&, > booster::locale::flags::value_type)' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `booster::locale::info::encoding() const' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `booster::locale::ext_setf(std::ios_base&, > booster::locale::flags::display_flags_type, > booster::locale::flags::display_flags_type)' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `void booster::locale::ext_pattern<char>(std::ios_base&, > booster::locale::flags::pattern_type, std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to > `booster::locale::impl::convert(booster::locale::impl::conversion_type, char > const*, char const*, int, std::locale const*)' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to > `booster::locale::generator::octet_encoding(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > /usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libcppcms.so: undefined > reference to `booster::locale::generator::preload(std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > collect2: ld returned 1 exit status > > > libbooster.so.0.0.0 > and > libcppcms.so.1.0.0 > are all properly installed in /usr/local/lib as before, but with today's > timestamp. > > > Actually, I had tried to upgrade cppcms earlier, but got a similar error and > reverted to using the older cppcms. > > > I added 'booster' to my target_link_libraries() in CMakeLists.txt (it seems it > > was not required in earlier versions of cppcms). > I deleted the build directory and started again... > But now, there are compiler errors about the template object: > > > Linking CXX executable ../my_app.fcgi > CMakeFiles/../my_app.fcgi.dir/view.cpp.o: In function `void > booster::locale::message::write<char>(std::basic_ostream<char, > std::char_traits<char> >&) const': > view.cpp: >(.text._ZNK7booster6locale7message5writeIcEEvRSt13basic_ostreamIT_St11char_traitsIS4_EE[void >d > > booster::locale::message::write<char>(std::basic_ostream<char, > std::char_traits<char> >&) const]+0x59): undefined reference to > `booster::locale::ios_info::get(std::ios_base&)' > view.cpp: >(.text._ZNK7booster6locale7message5writeIcEEvRSt13basic_ostreamIT_St11char_traitsIS4_EE[void >d > > booster::locale::message::write<char>(std::basic_ostream<char, > std::char_traits<char> >&) const]+0x61): undefined reference to > `booster::locale::ios_info::domain_id() const' > collect2: ld returned 1 exit status > > where view.cpp is generated by cppcms_tmpl_cc from my template. > > > > > Augustin. > > > -- > Friends: http://www.reuniting.info/ http://activistsolutions.org/ > My projects: > http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ > > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: augustin <aug...@ov...> - 2011-01-11 08:22:24
|
That's was it! I usually do: cmake .. to install in /usr/local/ But a few months ago, when I just started using cppcms, I may have done an install using the prefix /usr. I deleted everything *cppcms* and *booster* that was installed, and reinstalled: it now works. Thanks you Artyom. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |