Hello, I guess are you suffering this with Wt 3.1.6~maverick~pgquiles2, but it might also be that you are trying to build the examples out of the Wt source tree.
In either case, the problem stems from the Wt source itself: it does not explicitly link the dependencies, and CMake seems to be OK with this as long as you build the examples at the same time you build the Wt libraries. IMHO this is a wrong behavior on CMake side: it should fail with the very same linkage errors you are seeing. To make possible building the examples out of the Wt tree, in the Debian packages I am patching the examples' CMakeLists.txt files to explicitly look for and link all the dependencies. For some reason, examples build fine for me with gcc 4.4 on maverick, which is the reason I missed this (and a couple more) dependencies. I've updated the relevant patch and new ~pgquiles3 packages should be available in a few hours for all versions of Debian and Ubuntu. Thanks for the report and sorry for the inconvenience. On Mon, Nov 8, 2010 at 6:38 PM, John Robson <[email protected]> wrote: > Just to inform... > > I tested compiling the "Wt code" and "Wt Examples" using the version: > g++4.4 (default Ubuntu's 10.10) and g++4.5 > > An error occurs when compiling "Wt Examples" using g++4.5 > > ... > Linking CXX executable formexample.wt > [ 26%] Built target formexample.wt > Scanning dependencies of target gitview.wt > [ 26%] Building CXX object gitmodel/CMakeFiles/gitview.wt.dir/Git.o > [ 27%] Building CXX object gitmodel/CMakeFiles/gitview.wt.dir/GitModel.o > [ 28%] Building CXX object > gitmodel/CMakeFiles/gitview.wt.dir/__/wt-homepage/SourceView.o > [ 28%] Building CXX object gitmodel/CMakeFiles/gitview.wt.dir/GitView.o > Linking CXX executable gitview.wt > /usr/bin/ld: CMakeFiles/gitview.wt.dir/GitView.o: undefined reference > to symbol > 'boost::signals::detail::signal_base::signal_base(boost::function2<bool, > boost::signals::detail::stored_group, > boost::signals::detail::stored_group> const&, boost::any const&)' > /usr/bin/ld: note: > 'boost::signals::detail::signal_base::signal_base(boost::function2<bool, > boost::signals::detail::stored_group, > boost::signals::detail::stored_group> const&, boost::any const&)' is > defined in DSO //usr/lib/libboost_signals.so.1.42.0 so try adding it > to the linker command line > //usr/lib/libboost_signals.so.1.42.0: could not read symbols: Invalid > operation > collect2: ld returned 1 exit status > make[2]: *** [gitmodel/gitview.wt] Error 1 > make[1]: *** [gitmodel/CMakeFiles/gitview.wt.dir/all] Error 2 > make: *** [all] Error 2 > > > > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
