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

ASF GitHub Bot commented on THRIFT-4374:
----------------------------------------

Github user jeking3 commented on a diff in the pull request:

    https://github.com/apache/thrift/pull/1400#discussion_r147188692
  
    --- Diff: lib/php/src/ext/thrift_protocol/config.m4 ---
    @@ -25,6 +25,8 @@ PHP_ARG_ENABLE(thrift_protocol, whether to enable the 
thrift_protocol extension,
     
     if test "$PHP_THRIFT_PROTOCOL" != "no"; then
       PHP_REQUIRE_CXX()
    +  PHP_ADD_LIBRARY_WITH_PATH(stdc++, "", THRIFT_PROTOCOL_SHARED_LIBADD)
    +  PHP_SUBST(THRIFT_PROTOCOL_SHARED_LIBADD)
       CXXFLAGS="$CXXFLAGS -std=c++11"
    --- End diff --
    
    Interesting - the project does not require c++11, but apparently here it 
does. :|


> cannot load thrift_protocol due to undefined symbol: 
> _ZTVN10__cxxabiv120__si_class_type_infoE
> ---------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-4374
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4374
>             Project: Thrift
>          Issue Type: Bug
>          Components: PHP - Library
>         Environment: PHP 7.1.10, x86_64 GNU/Linux
>            Reporter: Robert Lu
>            Assignee: Robert Lu
>
> After compiled php extesion, php cannot load php extension:
> at commit 350fe7531feecf7df5208fa19d25730c6ce0a30d
> {code}
> php -d extension=./thrift_protocol.so -m
> PHP Warning: PHP Startup: Unable to load dynamic library 
> './thrift_protocol.so' - ./thrift_protocol.so: undefined symbol: 
> ZTVN10cxxabiv120_si_class_type_infoE in Unknown on line 0
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to