You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@thrift.apache.org by GitBox <gi...@apache.org> on 2022/12/02 18:21:49 UTC

[GitHub] [thrift] hdclark commented on pull request #2649: [WIP] Fix , capitalization for case sensitive cross compile.

hdclark commented on PR #2649:
URL: https://github.com/apache/thrift/pull/2649#issuecomment-1335648315

   +1
   
   I'm encountering the same case sensitivity issue using MXE to cross-compile on Linux for Windows. Compiling only the libraries using the current master branch, the following includes needed to be fixed:
   
   ```
   lib/cpp/src/thrift/transport/THttpServer.cpp:29  Shlwapi.h -> shlwapi.h
   lib/cpp/src/thrift/transport/TServerSocket.cpp:73   Windows.h -> windows.h
   lib/cpp/src/thrift/windows/Sync.h:40  Windows.h -> windows.h
   lib/cpp/src/thrift/transport/TPipeServer.cpp:30 AccCtrl.h -> accctrl.h
   lib/cpp/src/thrift/transport/TPipeServer.cpp:30 Aclapi.h -> aclapi.h
   lib/cpp/src/thrift/windows/SocketPair.cpp:37  WS2tcpip.h -> ws2tcpip.h
   ```
   
   In absence of a patch, the following also worked for me on both v0.17.0 release and current master branch:
   ```
   find repo_root/ \
    -type f \( -iname '*.h' -o -iname '*.cpp' \) \
    -exec sed -i -e 's/Windows[.]h/windows.h/g' \
       -e 's/Shlwapi[.]h/shlwapi.h/g' \
       -e 's/AccCtrl[.]h/accctrl.h/g' \
       -e 's/Aclapi[.]h/aclapi.h/g' \
       -e 's/WS2tcpip[.]h/ws2tcpip.h/g' '{}' \+
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@thrift.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org