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

James E. King, III commented on THRIFT-2000:
--------------------------------------------

Okay - you filled in the environment as libevent-2.0.21 with gcc-4.7 but did 
not specify a platform so I assumed linux.

As an aside, how are you able to build on Windows with libevent?  I tried 
pulling in libevent-2.0.22-stable on Windows and it fails to build every time 
for these reasons:

1. libevent requires a config.h to be generated by autoconf in order to 
compile, but this doesn't happen on Windows.
2. libevent has a header called event.h which conflicts with the Microsoft 
Platform SDK header by the same name.
3. libevent on Windows has no installer that would place event.h in the same 
directory as event2/

Please open a separate ticket as en enhancement to move to event2 - this sounds 
like a similar conversion folks had to do in other projects with 
boost/filesystem v2->v3.

> TNonblocking server does not compile with libevent 2.0.21-stable
> ----------------------------------------------------------------
>
>                 Key: THRIFT-2000
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2000
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.9
>         Environment: libevent 2.0.21
> gcc 4.7
>            Reporter: Konrad Grochowski
>            Assignee: Konrad Grochowski
>         Attachments: libevent_2_0_21.patch
>
>
> problem lays in usage of deprecated libevent API, which is still available 
> but in different headers
> In patch there's ifdef based on libevent version, which will include missing 
> headers, but maybe some refactoring for future will be needed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to