Yes, 1.48 was Boost, I get confused sometimes, I was thinking about what
I was going to write instead of what I was writing, I never found
anything searching the Internet about this, thanks for the help.

On Wed, 2014-06-18 at 18:14 -0400, Robert Goley wrote:
> Assuming you meant gcc/g++ 4.8.  I thought 4.8 might be the issue.
>  There was a reason I did not move up to it at the time.  It was still
> under a good bit of development and I thought it had some stability
> issues. I went up to 4.7 because it was the minimum version that would
> allow for using the std=c++11 options/functionality.  You might also
> try the CLANG Debian/Ubuntu packages as they worked pretty well and
> seemed to support more of the C++11 spec.  The application codebase I
> was working with did not play as nicely with it though.
> 
> 
> 
> On Wed, Jun 18, 2014 at 5:51 PM, Jeffrey Scott Flesher Gmail
> <jeffrey.scott.fles...@gmail.com> wrote:
> 
>         So far this is what I have done to get back to where you are
>         # remove Boost 1.55
>         sudo apt-get purge libboost*1.55*
>         sudo apt-get install gcc-4.7 g++-4.7
>         sudo apt-get purge gcc-4.8 g++-4.8
>         # Remove Boost 1.55 ppa
>         sudo add-apt-repository --remove ppa:boost-latest/ppa
>         sudo apt-get update -y && sudo apt-get upgrade -y &&  sudo apt-get 
> dist-upgrade -y && sudo apt-get check && sudo apt-get build-dep  && sudo dpkg 
> --configure -a && sudo apt-get -f
>         sudo apt-get autoremove
>         # Install Boost 1.48
>         sudo apt-get install libboost1.48-all-dev
>         sudo update-alternatives --config gcc
>         sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 
> 40; sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 40
>         sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 
> 60; sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 60
>         sudo update-alternatives --config gcc
>         
>         gcc --version
>         gcc (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3
>         
>         g++ --version
>         gcc (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3
>         
>         
>         cat /usr/include/boost/version.hpp | grep "BOOST_LIB_VERSION"
>         
>         1_48
>         
>         cmake -G 'Unix Makefiles' -DWT_CPP_11_MODE=-std=c++11 
> -DCMAKE_INSTALL_PREFIX=/usr/local -DCONNECTOR_FCGI=1 -DCONNECTOR_HTTP=1 
> -DBUILD_EXAMPLES=1 -DCMAKE_BUILD_TYPE="RelWithDebInfo" 
> -DEXAMPLES_CONNECTOR="wtfcgi" ../
>         
>         Not using Apache so I removed:
>         -DCONNECTOR_FCGI=1
>         -DEXAMPLES_CONNECTOR="wtfcgi"
>         
>         cmake -G 'Unix Makefiles' -DWT_CPP_11_MODE=-std=c++11 
> -DCMAKE_INSTALL_PREFIX=/usr/local -DCONNECTOR_HTTP=1 -DBUILD_EXAMPLES=1 
> -DCMAKE_BUILD_TYPE="RelWithDebInfo" 
> -DBOOST_SIGNALS_NO_DEPRECATION_WARNING=-Wcpp ../
>         
>         
>         It turns out to be a bug in gcc/g++ 1.48, it worked fine with Boost 
> 1.48 and 1.55 on both machines.
>         
>         
>         On Wed, 2014-06-18 at 15:13 -0400, Robert Goley wrote: 
>         
>         > One other note is that I am using the 1.48 Boost packages
>         > for ubuntu.  
>         > 
>         > 
>         > On Wed, Jun 18, 2014 at 2:49 PM, Jeffrey Scott Flesher Gmail
>         > <jeffrey.scott.fles...@gmail.com> wrote:
>         > 
>         >         Command: cmake
>         >         -DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick
>         >         -DBOOST_SIGNALS_NO_DEPRECATION_WARNING=-Wcpp
>         >         -DWT_CPP_11_MODE=-std=c++11 ..;make
>         >         
>         >         Note the std level of c++11 and c++0x, I tried both
>         >         of them, to avoid confusion the value does not
>         >         matter, as long as std is set to true, see below.
>         >         
>         >         I Verified these two version of Wt Examples compiles
>         >         with cmake and g++ fine under Manjaro Archlinux, so
>         >         I do not think its a problem with the Code under
>         >         some environments, but it is in these.
>         >         
>         >         I have two Ubuntu 12.04 servers both with slightly
>         >         different specs:
>         >         
>         >         Wt Version: 3.3.2 and 3.3.3 from
>         >         http://kent.dl.sourceforge.net/sourceforge/witty/
>         >         
>         >         OS x86_64: 
>         >             Machine 1: Ubuntu 12.04 LTS #40~precise1-Ubuntu
>         >         SMP Wed Jun 4 22:06:36 UTC 201
>         >             Machine 2: Ubuntu 12.04 LTS #1 SMP Wed Jan 16
>         >         18:54:05 MSK 2013 
>         >         QT: 5.0.2+dfsg1-7ubuntu12~precise1~test4 -
>         >         qt-default and 5.0.2+dfsg1-3ubuntu1~precise1~test2 -
>         >         qt-default 
>         >             versions: qt4 and qt5 (5.02)
>         >             ppa:ubuntu-sdk-team/ppa
>         >         Kernels:
>         >             1. localhost Archlinux Manjaro virtualbox (VM)
>         >         Ubuntu 12.04 Desktop with server
>         >                 Kernel: Machine 1 = 3.11.0-23-generic 
>         >             2. myhosting.com Virtuozzo (VM) Ubuntu 12.04 LTS
>         >         server
>         >                 Kernel: Machine 2 = 2.6.32-042stab072.10
>         >         (requiring
>         >         BOOST_SIGNALS_NO_DEPRECATION_WARNING=-Wcpp)
>         >         gcc (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1 using
>         >         ppa:ubuntu-toolchain-r/test
>         >         cmake version 2.8.9
>         >         BOOST LIB VERSION: 1_55 using ppa:boost-latest/ppa
>         >         GNU Make 3.81
>         >         
>         >         Note: Machine 1 and 2 both fail for Same error with
>         >         g++ (blog), even though Machine 2 cmake fails at a
>         >         different point also, they both fail.
>         >         g++ command:
>         >         g++ -o blog.wt model/BlogSession.C
>         >         model/BlogUserDatabase.C model/Post.C
>         >         model/Comment.C model/User.C model/Tag.C
>         >         model/Token.C view/PostView.C view/CommentView.C
>         >         view/BlogLoginWidget.C view/BlogView.C
>         >         view/EditUsers.C asciidoc/asciidoc.C BlogRSSFeed.C
>         >         blog.C   -I/usr/lib/qt/mkspecs/linux-g++ -I.
>         >         -isystem /usr/include/qt5
>         >         -isystem /usr/include/qt5/QtSql
>         >         -isystem /usr/include/qt5/QtCore -I. -L/usr/lib
>         >         -I/usr/local/include
>         >         -DBOOST_SIGNALS_NO_DEPRECATION_WARNING=-Wcpp
>         >         -DNDEBUG -std=c++11 -lwt -lwthttp -lwtdbo -lcrypt
>         >         -lboost_signals -lboost_filesystem -lboost_system
>         >         -lboost_regex -lboost_date_time -lboost_thread
>         >         -lwtdbosqlite3 -lwtdbopostgres -lQt5Sql -lQt5Core
>         >         -lpthread -pipe -g -Wall -W -D_REENTRANT -fPIE
>         >         -DPOSTGRES -DRAPIDXML -DTHEME3 -DVIDEOMAN
>         >         -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_SQL_LIB
>         >         -DQT_CORE_LIB
>         >         
>         >         Same things to both servers, I did upgrade gcc, if I
>         >         do not I get the error: cc1plus: error: unrecognized
>         >         command line option ‘-std=c++11’, 
>         >         so it is a moot point about the upgrade, since you
>         >         can not even compile it without the switch:
>         >         ELSE(HAS_CXX11)  MESSAGE("*** Not building widget
>         >         gallery; C++11 required (gcc > 4.6 + set
>         >         WT_CPP_11_MODE=-std=c++0x or MSVS >= 2012)")
>         >         so I see it requires the WT_CPP_11_MODE=-std=c++0x,
>         >         where as this works with c++0x and c++11 in Manjaro
>         >         Archlinux,
>         >         I might point out its a little confusing asking for
>         >         -std=c++11, yet requiring -std=c++0x, 
>         >         and this is the only reason I even mention the
>         >         version number of std,
>         >         but that is a moot point with the error that plagues
>         >         these two Ubuntu 12.04 servers.
>         >         # BOOST_SIGNALS_NO_DEPRECATION_WARNING=-Wcpp why is
>         >         it that I still get these warnings even if I define
>         >         this?
>         >         
>         >         Command for both machines:
>         >         cmake
>         >         -DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick
>         >         -DBOOST_SIGNALS_NO_DEPRECATION_WARNING=-Wcpp
>         >         -DWT_CPP_11_MODE=-std=c++11 ..
>         >         make
>         >         
>         >         on Machine 1 I get these errors:
>         >         
>         >         
> /home/~/Downloads/wt/wt-3.3.2/examples/blog/model/BlogUserDatabase.C:296:39: 
> error: declaration of ‘BlogUserDatabase::WithUser::~WithUser() noexcept 
> (false)’ has a different exception specifier
>         >         BlogUserDatabase::WithUser::~WithUser()
>         >                                                ^
>         >         In file included
>         >         from 
> /home/~/Downloads/wt/wt-3.3.2/examples/blog/model/BlogUserDatabase.C:10:0:
>         >         
> /home/~/Downloads/wt/wt-3.3.2/examples/blog/model/BlogUserDatabase.h:75:5: 
> error: from previous declaration ‘BlogUserDatabase::WithUser::~WithUser() 
> noexcept (true)’
>         >              ~WithUser();
>         >              ^
>         >         make[2]: ***
>         >         
> [examples/blog/CMakeFiles/blog.wt.dir/model/BlogUserDatabase.C.o] Error 1
>         >         make[1]: ***
>         >         [examples/blog/CMakeFiles/blog.wt.dir/all] Error 2
>         >         make: *** [all] Error 2
>         >         
>         >         The code at 296:
>         >         BlogUserDatabase::WithUser::WithUser(const
>         >         BlogUserDatabase& self, const Auth::User& user) :
>         >         transaction(self.session_)
>         >         {
>         >           self.getUser(user.id());
>         >           if (!self.user_)  throw InvalidUser(user.id());
>         >         }
>         >         BlogUserDatabase::WithUser::~WithUser()
>         >         {
>         >           transaction.commit();
>         >         }
>         >         The Header at 75:
>         >         ...
>         >         private:
>         >           struct WithUser 
>         >           {
>         >             WithUser(const BlogUserDatabase& self, const
>         >         Wt::Auth::User& user);
>         >             ~WithUser();
>         >             dbo::Transaction transaction;
>         >           };
>         >         ...
>         >         on Machine 2 I get this error during cmake:
>         >         
>         >         c++: internal compiler error: Killed (program
>         >         cc1plus) Please submit a full bug report,
>         >         make[2]: ***
>         >         [src/CMakeFiles/wt.dir/Wt/Render/CssParser.o] Error
>         >         4
>         >         
>         >         I read somewhere that I need to increase my RAM, I
>         >         have 3 GB, I have Apache running on this server
>         >         also, I read they had to increase it to 5 GB, is
>         >         this True?
>         >         
>         >         Steps taken to install Wt
>         >         sudo apt-get install build-essential perl python git
>         >         cmake python-software-properties
>         >         # Latest Qt is 5.02
>         >         sudo apt-add-repository ppa:ubuntu-sdk-team/ppa
>         >         # Latest Boost is 1.55
>         >         sudo add-apt-repository ppa:boost-latest/ppa
>         >         # Latest gcc is 4.8
>         >         sudo add-apt-repository ppa:ubuntu-toolchain-r/test
>         >         sudo apt-get update -y && sudo apt-get upgrade -y &&
>         >         sudo apt-get dist-upgrade -y && sudo apt-get check
>         >         && sudo apt-get build-dep  && sudo dpkg --configure
>         >         -a && sudo apt-get -f
>         >         sudo apt-get install gcc-4.8 g++-4.8
>         >         sudo update-alternatives --install /usr/bin/gcc
>         >         gcc /usr/bin/gcc-4.8 50; sudo update-alternatives
>         >         --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
>         >         sudo apt-get purge libboost*
>         >         sudo apt-get install libboost1.55-all-dev
>         >         sudo apt-get install libssl-dev libfcgi-dev
>         >         libpq-dev libmysqlclient-dev firebird-dev
>         >         ibpng12-dev libgraphicsmagick1-dev graphicsmagick
>         >         libhpdf-dev libpng12-dev libpango1.0-dev
>         >         mesa-common-dev asciidoc libqt4-dev doxygen graphviz
>         >         sudo apt-get install "^libxcb.*" libx11-xcb-dev
>         >         libglu1-mesa-dev libxrender-dev
>         >         
>         >         wget -c
>         >         
> http://kent.dl.sourceforge.net/sourceforge/witty/wt-3.3.3.tar.gz; tar xvxf 
> wt-3.3.3.tar.gz
>         >         cd wt-3.3.3; mkdir -p build;cd build;cmake
>         >         -DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick
>         >         -DBOOST_SIGNALS_NO_DEPRECATION_WARNING=-Wcpp
>         >         -DWT_CPP_11_MODE=-std=c++11 ..;make
>         >         
>         >         Conclusion: The only real difference in Ubuntu
>         >         servers is the VM's and kernals
>         >         
>         >         Has anyone ever seen this error?
>         >         
>         >         Does anyone know how to fix this error?
>         >         
>         >         I am stuck at this point, I can not upgrade Ubuntu
>         >         to 14 its a hosting service, and my app is based on
>         >         the Wt-home and blog project and its failing to
>         >         compile, as does my app for the same reason.
>         >         
>         >         Thanks 
>         
>         
>         
>         
>         
> ------------------------------------------------------------------------------
>         HPCC Systems Open Source Big Data Platform from LexisNexis
>         Risk Solutions
>         Find What Matters Most in Your Big Data with HPCC Systems
>         Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>         Leverages Graph Analysis for Fast Processing & Easy Data
>         Exploration
>         http://p.sf.net/sfu/hpccsystems
>         _______________________________________________
>         witty-interest mailing list
>         witty-interest@lists.sourceforge.net
>         https://lists.sourceforge.net/lists/listinfo/witty-interest
>         
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________ witty-interest mailing list 
> witty-interest@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to