Ram, I've tried to reproduce your problem with no success. Here are the steps I took: * Created a new EC2 instance of SLES 12 SP1, ami-cae4b7dd on am3.large dual core instance type * Installed some prerequisites sudo zypper install cmake sudo zypper install gcc-c++ * Downloaded and built qpid-proton-0-14 as follows: mkdir -p proton/build cd proton wget http://archive.apache.org/dist/qpid/proton/0.14.0/qpid-proton-0.14.0.tar.gz tar zxf qpid-proton-0.14.0.tar.gz cd build/ cmake ../qpid-proton-0.14.0 make -j3
This built with no problems. Then I noticed from the pathnames in your original post that you're using rpmbuild so I tried that too. I haven't used rpmbuild before but it seems you need a specfile, so I hashed one up (see attached). Then I ran $rpmbuild -ba qpid-proton-0.14.0.spec and the build succeded again, terminating with the messages: Wrote: /home/ec2-user/rpmbuild/SRPMS/qpid-proton-0.14.0-1.src.rpm Wrote: /home/ec2-user/rpmbuild/RPMS/x86_64/qpid-proton-0.14.0-1.x86_64.rpm In both cases the compilation of connection.cpp (which failed in your build) happened earlier in my output (27%) than in yours so I guess you're including some extra cmake settings you haven't mentioned. This could affect the build outcome. Another possibility common to c++ it that your build system is "dirty" in some way, for instance if you have a previous version of proton already installed. That could result in the compiler picking up a conflicting version of a header file from eg: /usr/include instead of the one it should find in your build tree. Might be worth trying this again on a clean system. Hope that helps! Chris On 21 November 2016 at 16:32, rammohan ganapavarapu <rammohanga...@gmail.com > wrote: > Chris, > > Thanks for trying to help me, below are my env details. > > OS: SUSE Linux Enterprise Server 12 SP1 (x86_64) - Kernel \r (\l). > cmake -version > cmake version 2.8.12.1 > gcc version 4.8.5 (SUSE Linux) > > > > Ram > > On Fri, Nov 18, 2016 at 6:16 PM, Chris Richardson <c...@fourc.eu> wrote: > > > Hi Ram, > > > > It looks like you're not entirely alone with this problem: > > http://stackoverflow.com/questions/39708294/error-changes-meaning-when- > > installing-apache-qpid > > notably also SUSE, unfortunately no solution posted. > > > > May I suggest you post some more info about your environment, > particularly > > arch (whether you're on 32 or 64 bit) and what compiler (incl. version) > > you're using. Steps to reproduce would also help. Unfortunately I don't > > have SUSE but I'd be happy to test on the distros I do have if it's of > any > > benefit. > > > > /Chris > > > > > > > > On 18 November 2016 at 23:34, rammohan ganapavarapu < > > rammohanga...@gmail.com > > > wrote: > > > > > Hi, > > > > > > If any one built qpid-cpp rpms for suse please share your experience, > if > > > you already have a rpms to download please share. > > > > > > Ram > > > > > > On Tue, Nov 8, 2016 at 8:19 AM, rammohan ganapavarapu < > > > rammohanga...@gmail.com> wrote: > > > > > > > Hi, > > > > > > > > I am trying to build qpid-cpp v1.35 rpms for SUSE, while i am > building > > > > qpid-proton rpm i am getting this compilation error any idea why i am > > > > getting this error and how to fix it? > > > > > > > > [ 34%] Building CXX object proton-c/bindings/cpp/ > > > > CMakeFiles/qpid-proton-cpp.dir/src/connection.cpp.o > > > > In file included from /mnt/ec2-user/rpmbuild/BUILD/ > > > > qpid-proton-0.14.0/proton-c/bindings/cpp/include/proton/./ > > > ././link.hpp:31, > > > > from /mnt/ec2-user/rpmbuild/BUILD/ > > > > qpid-proton-0.14.0/proton-c/bindings/cpp/include/proton/./ > > > > ./receiver.hpp:27, > > > > from /mnt/ec2-user/rpmbuild/BUILD/ > > > > qpid-proton-0.14.0/proton-c/bindings/cpp/include/proton/./ > > > session.hpp:27, > > > > from /mnt/ec2-user/rpmbuild/BUILD/ > > > > qpid-proton-0.14.0/proton-c/bindings/cpp/include/proton/ > > > connection.hpp:28, > > > > from /mnt/ec2-user/rpmbuild/BUILD/ > > > > qpid-proton-0.14.0/proton-c/bindings/cpp/src/connection.cpp:24: > > > > /mnt/ec2-user/rpmbuild/BUILD/qpid-proton-0.14.0/proton-c/ > > > > bindings/cpp/include/proton/././././sender_options.hpp:87: error: > > > > declaration of ‘proton::sender_options& proton::sender_options:: > > > > delivery_mode(proton::delivery_mode)’ > > > > /mnt/ec2-user/rpmbuild/BUILD/qpid-proton-0.14.0/proton-c/ > > > > bindings/cpp/include/proton/./././././delivery_mode.hpp:30: error: > > > > changes meaning of ‘delivery_mode’ from ‘struct > proton::delivery_mode’ > > > > In file included from /mnt/ec2-user/rpmbuild/BUILD/ > > > > qpid-proton-0.14.0/proton-c/bindings/cpp/include/proton/./ > > > ././link.hpp:32, > > > > from /mnt/ec2-user/rpmbuild/BUILD/ > > > > qpid-proton-0.14.0/proton-c/bindings/cpp/include/proton/./ > > > > ./receiver.hpp:27, > > > > from /mnt/ec2-user/rpmbuild/BUILD/ > > > > qpid-proton-0.14.0/proton-c/bindings/cpp/include/proton/./ > > > session.hpp:27, > > > > from /mnt/ec2-user/rpmbuild/BUILD/ > > > > qpid-proton-0.14.0/proton-c/bindings/cpp/include/proton/ > > > connection.hpp:28, > > > > from /mnt/ec2-user/rpmbuild/BUILD/ > > > > qpid-proton-0.14.0/proton-c/bindings/cpp/src/connection.cpp:24: > > > > /mnt/ec2-user/rpmbuild/BUILD/qpid-proton-0.14.0/proton-c/ > > > > bindings/cpp/include/proton/././././receiver_options.hpp:83: error: > > > > declaration of ‘proton::receiver_options& proton::receiver_options:: > > > > delivery_mode(proton::delivery_mode)’ > > > > /mnt/ec2-user/rpmbuild/BUILD/qpid-proton-0.14.0/proton-c/ > > > > bindings/cpp/include/proton/./././././delivery_mode.hpp:30: error: > > > > changes meaning of ‘delivery_mode’ from ‘struct > proton::delivery_mode’ > > > > make[2]: *** [proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp. > > > dir/src/connection.cpp.o] > > > > Error 1 > > > > make[1]: *** [proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp. > > dir/all] > > > > Error 2 > > > > > > > > > > > > Ram > > > > > > > > > > > > > > > -- > > > > *Chris Richardson*, System Architect > > c...@fourc.eu > > > > > > *FourC AS, Vestre Rosten 81, Trekanten, NO-7075 Tiller, > Norwaywww.fourc.eu > > <http://www.fourc.eu/>* > > > > *Follow us on LinkedIn <http://bit.ly/fourcli>, Facebook > > <http://bit.ly/fourcfb>, Google+ <http://bit.ly/fourcgp> and Twitter > > <http://bit.ly/fourctw>!* > > > -- *Chris Richardson*, System Architect c...@fourc.eu *FourC AS, Vestre Rosten 81, Trekanten, NO-7075 Tiller, Norwaywww.fourc.eu <http://www.fourc.eu/>* *Follow us on LinkedIn <http://bit.ly/fourcli>, Facebook <http://bit.ly/fourcfb>, Google+ <http://bit.ly/fourcgp> and Twitter <http://bit.ly/fourctw>!*
Name: qpid-proton Version: 0.14.0 Release: 1%{?dist} Summary: qpid-proton URL: https://www.gnu.org/ License: GPLv3+ Source: http://archive.apache.org/dist/qpid/proton/0.14.0/qpid-proton-%{version}.tar.gz %description Qpid Proton %prep %setup %build %cmake make %{?_smp_mflags} %install %files %changelog
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org