[ 
https://issues.apache.org/jira/browse/DISPATCH-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jiri Daněk closed DISPATCH-138.
-------------------------------
    Resolution: Duplicate

Superceded by DISPATCH-187, there is more activity.

> Python3 is selected default when compiling with both installed
> --------------------------------------------------------------
>
>                 Key: DISPATCH-138
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-138
>             Project: Qpid Dispatch
>          Issue Type: Bug
>    Affects Versions: 0.4
>         Environment: Gentoo Linux x86_64
> Python 2.7.9 (default)
> Python 3.3.5
> cmake version 2.8.12.2
>            Reporter: Zdenek Kraus
>            Priority: Minor
>             Fix For: Backlog
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to