You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Paweł (JIRA)" <ji...@apache.org> on 2015/06/27 11:53:04 UTC

[jira] [Updated] (THRIFT-3206) Visual Studio build fail due 'pthread_self': identifier not found

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

Paweł updated THRIFT-3206:
--------------------------
    Attachment: THRIFT-3206.patch

The code calls pthread_self() which is not available on Windows platform in
current thrift library dependency set.

Issue was resolved by using native WINAPI equivalent GetCurrentThreadId() in
case source is compiled when _WIN32 macro is defined.


> Visual Studio build fail due 'pthread_self': identifier not found
> -----------------------------------------------------------------
>
>                 Key: THRIFT-3206
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3206
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.9.2
>         Environment: Visual Studio 2013 Update 5 RC
>            Reporter: Paweł
>              Labels: easyfix
>         Attachments: THRIFT-3206.patch
>
>
> Build fail of project lib\cpp\libthrift.vcxproj due to compile error
> {noformat}
> 1>c:\...\thrift\lib\cpp\src\thrift\transport\tsslsocket.cpp(69): error C3861: 'pthread_self': identifier not found
> {noformat}



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