qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien GALLET (JIRA) <j...@apache.org>
Subject [jira] [Created] (QPID-5628) Build fails when both python 2.7 and 3 are installed
Date Fri, 14 Mar 2014 15:50:42 GMT
Sébastien GALLET created QPID-5628:
--------------------------------------

             Summary: Build fails when both python 2.7 and 3 are installed
                 Key: QPID-5628
                 URL: https://issues.apache.org/jira/browse/QPID-5628
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker, C++ Client
    Affects Versions: 0.26
         Environment: Ubuntu Saucy
            Reporter: Sébastien GALLET
             Fix For: 0.27
         Attachments: python2.patch

When python 2.7 and python 3 are installed, the cmake scripts use python 3 to build bindings
... and it fails

[ 97%] Building CXX object bindings/qpid/python/CMakeFiles/_qpid_messaging.dir/pythonPYTHON_wrap.cxx.o
cd /home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python
&& /usr/bin/c++   -D_qpid_messaging_EXPORTS -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -Wno-error=cast-qual -Wno-error=cast-align -D_FORTIFY_SOURCE=2
 -O2 -g -DNDEBUG -fPIC -I/usr/include/python3.3m -I/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/include
-I/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/bindings    -fno-strict-aliasing
-o CMakeFiles/_qpid_messaging.dir/pythonPYTHON_wrap.cxx.o -c /home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘qpid::types::Variant PyToVariant(PyObject*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:3620:88:
error: ‘PyInt_AS_LONG’ was not declared in this scope
         if (PyBool_Check(value))   return qpid::types::Variant(bool(PyInt_AS_LONG(value)
? true : false));
                                                                                        ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:3622:91:
error: ‘PyInt_AS_LONG’ was not declared in this scope
         if (PyInt_Check(value))    return qpid::types::Variant(int64_t(PyInt_AS_LONG(value)));
                                                                                         
 ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:756:52:
error: ‘PyUnicode_AS_STRING’ was not declared in this scope
 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
                                                    ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:3624:76:
note: in expansion of macro ‘PyString_AS_STRING’
         if (PyString_Check(value)) return qpid::types::Variant(std::string(PyString_AS_STRING(value)));
                                                                            ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘PyObject* VariantToPy(const qpid::types::Variant*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:3688:80:
error: ‘PyString_FromStringAndSize’ was not declared in this scope
                     result = PyString_FromStringAndSize(val.c_str(), val.size());
                                                                                ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘PyObject* MapToPy(const Map*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:3721:86:
error: ‘PyString_FromStringAndSize’ was not declared in this scope
             PyDict_SetItem(result, PyString_FromStringAndSize(key.c_str(), key.size()), pyval);
                                                                                      ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘PyObject* UuidToPy(const qpid::types::Uuid*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:3750:42:
error: ‘PyString_FromStringAndSize’ was not declared in this scope
           (const char*)(uuid->data()), 16);
                                          ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘void PyToMap(PyObject*, qpid::types::Variant::Map*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:756:52:
error: ‘PyUnicode_AS_STRING’ was not declared in this scope
 #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)
                                                    ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:3770:32:
note: in expansion of macro ‘PyString_AS_STRING’
             (*map)[std::string(PyString_AS_STRING(key))] = PyToVariant(val);
                                ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘PyObject* _wrap_new_Duration(PyObject*, PyObject*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:6920:57:
error: ‘PyInt_AsUnsignedLongLongMask’ was not declared in this scope
       arg1 = (uint64_t)PyInt_AsUnsignedLongLongMask(obj0);
                                                         ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘PyObject* _wrap_Duration___mul__(PyObject*, PyObject*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:7332:57:
error: ‘PyInt_AsUnsignedLongLongMask’ was not declared in this scope
       arg2 = (uint64_t)PyInt_AsUnsignedLongLongMask(obj1);
                                                         ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘PyObject* _wrap___mul____SWIG_0(PyObject*, PyObject*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:7691:57:
error: ‘PyInt_AsUnsignedLongLongMask’ was not declared in this scope
       arg2 = (uint64_t)PyInt_AsUnsignedLongLongMask(obj1);
                                                         ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘PyObject* _wrap___mul____SWIG_1(PyObject*, PyObject*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:7868:57:
error: ‘PyInt_AsUnsignedLongLongMask’ was not declared in this scope
       arg1 = (uint64_t)PyInt_AsUnsignedLongLongMask(obj0);
                                                         ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘PyObject* _wrap_Receiver_setCapacity(PyObject*, PyObject*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:19991:54:
error: ‘PyInt_AsUnsignedLongMask’ was not declared in this scope
       arg2 = (uint32_t) PyInt_AsUnsignedLongMask(obj1);
                                                      ^
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:
In function ‘PyObject* _wrap_Sender_setCapacity(PyObject*, PyObject*)’:
/home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu/bindings/qpid/python/pythonPYTHON_wrap.cxx:22816:54:
error: ‘PyInt_AsUnsignedLongMask’ was not declared in this scope
       arg2 = (uint32_t) PyInt_AsUnsignedLongMask(obj1);
                                                      ^
make[3]: *** [bindings/qpid/python/CMakeFiles/_qpid_messaging.dir/pythonPYTHON_wrap.cxx.o]
Erreur 1
make[3]: quittant le répertoire « /home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu
»
make[2]: *** [bindings/qpid/python/CMakeFiles/_qpid_messaging.dir/all] Erreur 2
make[2]: quittant le répertoire « /home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu
»
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /home/sebastien/devel/admin-repository/qpid-cpp/qpid-cpp-0.26/obj-x86_64-linux-gnu
»
dh_auto_build: make -j1 returned exit code 2

A patch is attached to use python 2.7




--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message