[
https://issues.apache.org/jira/browse/BOOKKEEPER-598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13623555#comment-13623555
]
Jiannan Wang commented on BOOKKEEPER-598:
-----------------------------------------
I have a try on my new laptop and find the same problem, Matthew's patch works
for me. My environment is "gcc version 4.2.1 (Based on Apple Inc. build 5658)
(LLVM build 2336.11.00)" with protobuf 2.4.1.
However, it seems I have to explicitly add -lboost_thread somewhere to make the
link process happy.
By the way, the newest boost release 1.53 does not compatible with our code
since at this release the shared_dynamic_cast is moved out of shared_ptr.hpp.
boost-1.52 and before version is ok.
> Fails to compile - RESUBSCRIBE_EXCEPTION conflict
> -------------------------------------------------
>
> Key: BOOKKEEPER-598
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-598
> Project: Bookkeeper
> Issue Type: Bug
> Components: hedwig-client
> Affects Versions: 4.2.1, 4.3.0
> Environment: Fedora 17 w/ gcc version 4.7.2 20120921
> Reporter: Matthew Farrellee
> Attachments: BOOKKEEPER-598.patch
>
>
> 0. cd hedwig-client/src/main/cpp
> 1. autoreconf -fi
> 2. ./configure
> 3. make
> (3) fails with subscriberimpl.cpp:150:48: error: no match for 'operator==' in
> '(Hedwig::StatusCode)407u == *(const
> std::type_info*)(*(exception.std::exception::_vptr.exception + -8u))'
> The static const RESUBSCRIBE_EXCEPTION is conflicting with an enum from
> hedwig-client/src/main/cpp/inc/hedwig/protocol.h (line 153
> RESUBSCRIBE_EXCEPTION = 407).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira