[ https://issues.apache.org/jira/browse/PROTON-1036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14987198#comment-14987198 ]
Otavio Rodolfo Piske commented on PROTON-1036: ---------------------------------------------- I noticed that select_broker.cpp fails to compile if one of the following GCC optimization levels is enabled: -Os, -O1, -O2, -O3. The reason for this seems to be because the function ntohs is optimized out and replaced with a macro by the compiler, therefore causing the following failure: /home/opiske/code/cpp/rh/qpid-proton/examples/cpp/select_broker.cpp: In member function ‘void broker::accept()’: /home/opiske/code/cpp/rh/qpid-proton/examples/cpp/select_broker.cpp:139:30: error: expected id-expression before ‘(’ token << ":" << ::ntohs(client_addr.sin_port) ^ examples/cpp/CMakeFiles/select_broker.dir/build.make:65: recipe for target 'examples/cpp/CMakeFiles/select_broker.dir/select_broker.cpp.o' failed make[2]: *** [examples/cpp/CMakeFiles/select_broker.dir/select_broker.cpp.o] Error 1 make[2]: Leaving directory '/home/opiske/code/cpp/rh/qpid-proton/build' CMakeFiles/Makefile2:2984: recipe for target 'examples/cpp/CMakeFiles/select_broker.dir/all' failed make[1]: *** [examples/cpp/CMakeFiles/select_broker.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... > c++: engine API for integration with external IO frameworks > ----------------------------------------------------------- > > Key: PROTON-1036 > URL: https://issues.apache.org/jira/browse/PROTON-1036 > Project: Qpid Proton > Issue Type: Improvement > Components: cpp-binding > Affects Versions: 0.10 > Reporter: Alan Conway > Assignee: Alan Conway > Fix For: 0.11 > > > Provide a simple bytes-in/bytes-out per-connection engine to allow simple > intergration of proton with external IO frameworks, where the goal is to have > proton do *only* the AMQP decoding/encodiing/event handling and let the > external framework take care of everything else: IO, timers etc. -- This message was sent by Atlassian JIRA (v6.3.4#6332)