Ollivier Robert created PROTON-1073:
---------------------------------------

             Summary: Building tests for C++ bindings seems to be broken on OSX 
10.11/Xcode 7.1.1
                 Key: PROTON-1073
                 URL: https://issues.apache.org/jira/browse/PROTON-1073
             Project: Qpid Proton
          Issue Type: Bug
          Components: cpp-binding
    Affects Versions: 0.11
         Environment: MacOS X 10.11.1, XCode 7.1.1
Compilation options:
env CFLAGS="-I/opt/local/include -m64" LDFLAGS="-m64 -L/opt/local/lib" cmake .. 
-DCMAKE_INSTALL_PREFIX=/usr/local -DSYSINSTALL_BINDINGS=ON -DBUILD_PHP=OFF 
-DBUILD_PERL=OFF -DBUILD_PYTHON=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64
            Reporter: Ollivier Robert
            Assignee: Cliff Jansen


Compiling 0.11 leads to build failure in the tests for the C++ bindings:

[...]
Linking CXX shared library libqpid-proton-cpp.dylib
[ 66%] Built target qpid-proton-cpp
Scanning dependencies of target conversion_test
[ 66%] Building CXX object 
proton-c/bindings/cpp/CMakeFiles/conversion_test.dir/src/conversion_test.cpp.o
/Users/roberto/Src/ERC/GIT/qpid-proton-0.11.0/proton-c/bindings/cpp/src/conversion_test.cpp:36:17:
 error:
      no viable constructor copying variable of type 'std::unique_ptr<session>'
    session_ptr p = s.ptr();
                ^   ~~~~~~~
/Users/roberto/Src/ERC/GIT/qpid-proton-0.11.0/proton-c/bindings/cpp/src/conversion_test.cpp:58:25:
 note:
      in instantiation of function template specialization
      'test_owning<std::__1::unique_ptr<proton::connection,
      std::__1::default_delete<proton::connection> >,
      std::__1::unique_ptr<proton::session, 
std::__1::default_delete<proton::session> > >'
      requested here
    failed += run_test(&test_owning<
                        ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2497:5:
 note:
      candidate constructor not viable: expects an l-value for 1st argument
    unique_ptr(unique_ptr&);
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2499:9:
 note:
      candidate constructor [with _Up = proton::session, _Ep =
      std::__1::default_delete<proton::session>] not viable: expects an l-value 
for 1st
      argument
        unique_ptr(unique_ptr<_Up, _Ep>&);
        ^
/Users/roberto/Src/ERC/GIT/qpid-proton-0.11.0/proton-c/bindings/cpp/src/conversion_test.cpp:37:17:
 error:
      no viable constructor copying variable of type 'std::unique_ptr<session>'
    session_ptr p2 = s.ptr();
                ^    ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2497:5:
 note:
      candidate constructor not viable: expects an l-value for 1st argument
    unique_ptr(unique_ptr&);
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2499:9:
 note:
      candidate constructor [with _Up = proton::session, _Ep =
      std::__1::default_delete<proton::session>] not viable: expects an l-value 
for 1st
      argument
        unique_ptr(unique_ptr<_Up, _Ep>&);
        ^
2 errors generated.
make[2]: *** 
[proton-c/bindings/cpp/CMakeFiles/conversion_test.dir/src/conversion_test.cpp.o]
 Error 1
make[1]: *** [proton-c/bindings/cpp/CMakeFiles/conversion_test.dir/all] Error 2
make: *** [all] Error 2



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to