You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Ben Craig (JIRA)" <ji...@apache.org> on 2015/07/14 17:58:05 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14626544#comment-14626544 ] 

Ben Craig commented on THRIFT-3206:
-----------------------------------

This is only an issue with older versions of open ssl.  The pthread_self() aspect is guarded with an openssl preprocessor version check.

> 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ł Janicki
>              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)