Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
0.4
-
None
-
None
-
None
-
Gentoo Linux x86_64
Python 2.7.9 (default)
Python 3.3.5
cmake version 2.8.12.2
Description
Steps to reproduce:
1. cmake ..
2. set proton_include and proton_library paths
3. cmake ..
4. make
Actual Results:
[ 2%] Generating schema_enum.h, schema_enum.c
Scanning dependencies of target qpid-dispatch
[ 4%] Building C object src/CMakeFiles/qpid-dispatch.dir/alloc.c.o
[ 7%] Building C object src/CMakeFiles/qpid-dispatch.dir/amqp.c.o
[ 9%] Building C object src/CMakeFiles/qpid-dispatch.dir/bitmask.c.o
[ 12%] Building C object src/CMakeFiles/qpid-dispatch.dir/buffer.c.o
[ 14%] Building C object src/CMakeFiles/qpid-dispatch.dir/error.c.o
/home/aranel/src/dispatch/src/error.c: In function 'py_set_item':
/home/aranel/src/dispatch/src/error.c:100:5: error: implicit declaration of function 'PyString_FromString' [-Werror=implicit-function-declaration]
PyObject *py_name = PyString_FromString(name);
^
/home/aranel/src/dispatch/src/error.c:100:25: error: initialization makes pointer from integer without a cast [-Werror]
PyObject *py_name = PyString_FromString(name);
^
/home/aranel/src/dispatch/src/error.c: In function 'log_trace_py':
/home/aranel/src/dispatch/src/error.c:130:9: error: implicit declaration of function 'PyString_AsString' [-Werror=implicit-function-declaration]
const char* trace = PyString_AsString(result);
^
/home/aranel/src/dispatch/src/error.c:130:29: error: initialization makes pointer from integer without a cast [-Werror]
const char* trace = PyString_AsString(result);
^
/home/aranel/src/dispatch/src/error.c: In function 'qd_error_py_impl':
/home/aranel/src/dispatch/src/error.c:153:80: error: pointer/integer type mismatch in conditional expression [-Werror]
const char *type_name = py_type_name ? PyString_AsString(py_type_name) : NULL;
^
/home/aranel/src/dispatch/src/error.c:156:80: error: pointer/integer type mismatch in conditional expression [-Werror]
const char *value_str = py_value_str ? PyString_AsString(py_value_str) : NULL;
^
cc1: all warnings being treated as errors
src/CMakeFiles/qpid-dispatch.dir/build.make:167: recipe for target 'src/CMakeFiles/qpid-dispatch.dir/error.c.o' failed
make[2]: *** [src/CMakeFiles/qpid-dispatch.dir/error.c.o] Error 1
CMakeFiles/Makefile2:946: recipe for target 'src/CMakeFiles/qpid-dispatch.dir/all' failed
make[1]: *** [src/CMakeFiles/qpid-dispatch.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
make: *** [all] Error 2
Expected results:
dispatch will compile using python2
Notes:
after removing python3 from system, dispatch will compile without any problems.
Attachments
Issue Links
- is superceded by
-
DISPATCH-187 CMake must choose the Python2 libraries when Python3 is available
- Closed