You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Danek (JIRA)" <ji...@apache.org> on 2016/05/18 08:16:12 UTC

[jira] [Comment Edited] (DISPATCH-138) Python3 is selected default when compiling with both installed

    [ https://issues.apache.org/jira/browse/DISPATCH-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15288609#comment-15288609 ] 

Jiri Danek edited comment on DISPATCH-138 at 5/18/16 8:15 AM:
--------------------------------------------------------------

It is possible that DISPATCH-187 is a duplicate of this. As of now, that issue was not closed.


was (Author: jdanek):
It is possible that DISPATCH-187 is a duplicate. This issue is probably fixed since that issue was resolved.

> 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
>
> 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
(v6.3.4#6332)

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