masaori335 opened a new pull request, #12017:
URL: https://github.com/apache/trafficserver/pull/12017

   # Problem
   
   `traffic_crashlog` uses nongnu libunwind  and including `libunwind.h` and 
`libunwind-ptrace.h` header. OTOH, LLVM has its own `libunwind.h`. Sometime, 
CMake pickup LLVM's `libunwind.h` and making error like below.
   
   ```
   In file included from /workspace/src/traffic_crashlog/backtrace.cc:39:
   /usr/include/libunwind-ptrace.h:57:8: error: unknown type name 
'unw_accessors_t'; did you mean 'unw_cursor_t'?
   extern unw_accessors_t _UPT_accessors;
          ^
   /opt/llvm/include/libunwind.h:78:29: note: 'unw_cursor_t' declared here
   typedef struct unw_cursor_t unw_cursor_t;
                               ^
   ```
   
   # Approach
   
   Force CMake to set `${unwind_INCLUDE_DIRS}` first and pickup nongnu 
libunwind's `libunwind.h` header.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to