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/07/07 13:40:04 UTC
[jira] [Issue Comment Deleted] (THRIFT-3206) Fix Visual Studio
build failure 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:
--------------------------
Comment: was deleted
(was: Issue was resolved by using native WINAPI equivalent [GetCurrentThreadId()|https://msdn.microsoft.com/en-us/library/windows/desktop/ms683183(v=vs.85).aspx] in case source is compiled when _WIN32 macro is defined.
)
> Fix Visual Studio build failure 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}
> The current Thrift code calls [pthread_self()|http://man7.org/linux/man-pages/man3/pthread_self.3.html] which is not available on Windows platform in current Thrift library dependency set.
> Herein I propose resolution by using native WINAPI equivalent GetCurrentThreadId() in case source is compiled when _WIN32 macro is defined.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)