zwoop opened a new issue, #10320:
URL: https://github.com/apache/trafficserver/issues/10320

   ```
     CXX      lua/tslua_la-ts_lua_log.lo
   /homer/leif/apache/trafficserver/plugins/lua/ts_lua_log.cc:21:24: error: 
redefinition of 'log' as different kind of symbol
   static TSTextLogObject log;
                          ^
   /opt/llvm-16/bin/../include/c++/v1/math.h:827:1: note: previous definition 
is here
   log(_A1 __x) _NOEXCEPT {return __builtin_log((double)__x);}
   ^
   /homer/leif/apache/trafficserver/plugins/lua/ts_lua_log.cc:67:11: error: no 
matching function for call to 'TSTextLogObjectCreate'
     error = TSTextLogObjectCreate(log_name, log_mode, &log);
             ^~~~~~~~~~~~~~~~~~~~~
   /homer/leif/apache/trafficserver/include/ts/ts.h:2287:16: note: candidate 
function not viable: no overload of 'log' matching 'TSTextLogObject *' (aka 
'tsapi::c::tsapi_textlogobject **') for 3rd argument
     TSReturnCode TSTextLogObjectCreate(const char *filename, int mode, 
TSTextLogObject *new_log_obj);
                  ^
   /homer/leif/apache/trafficserver/plugins/lua/ts_lua_log.cc:69:8: error: 
reference to overloaded function could not be resolved; did you mean to call it?
     if (!log || error == TS_ERROR) {
          ^~~
   /opt/llvm-16/bin/../include/c++/v1/math.h:827:1: note: possible target for 
call
   log(_A1 __x) _NOEXCEPT {return __builtin_log((double)__x);}
   ^
   /opt/llvm-16/bin/../include/c++/v1/math.h:821:42: note: possible target for 
call
   inline _LIBCPP_HIDE_FROM_ABI long double log(long double __x) _NOEXCEPT 
{return __builtin_logl(__x);}
                                            ^
   /opt/llvm-16/bin/../include/c++/v1/math.h:817:30: note: possible target for 
call
   _LIBCPP_HIDE_FROM_ABI double log(double __x) _NOEXCEPT {
                                ^
   /opt/llvm-16/bin/../include/c++/v1/math.h:814:42: note: possible target for 
call
   inline _LIBCPP_HIDE_FROM_ABI float       log(float __x) _NOEXCEPT       
{return __builtin_logf(__x);}
                                            ^
   /usr/include/x86_64-linux-gnu/bits/mathcalls.h:104:17: note: possible target 
for call
   __MATHCALL_VEC (log,, (_Mdouble_ __x));
                   ^
   /homer/leif/apache/trafficserver/plugins/lua/ts_lua_log.cc:90:7: error: 
reference to overloaded function could not be resolved; did you mean to call it?
     if (log) {
         ^~~
   /opt/llvm-16/bin/../include/c++/v1/math.h:827:1: note: possible target for 
call
   log(_A1 __x) _NOEXCEPT {return __builtin_log((double)__x);}
   ^
   /opt/llvm-16/bin/../include/c++/v1/math.h:821:42: note: possible target for 
call
   inline _LIBCPP_HIDE_FROM_ABI long double log(long double __x) _NOEXCEPT 
{return __builtin_logl(__x);}
                                            ^
   /opt/llvm-16/bin/../include/c++/v1/math.h:817:30: note: possible target for 
call
   _LIBCPP_HIDE_FROM_ABI double log(double __x) _NOEXCEPT {
                                ^
   /opt/llvm-16/bin/../include/c++/v1/math.h:814:42: note: possible target for 
call
   inline _LIBCPP_HIDE_FROM_ABI float       log(float __x) _NOEXCEPT       
{return __builtin_logf(__x);}
                                            ^
   /usr/include/x86_64-linux-gnu/bits/mathcalls.h:104:17: note: possible target 
for call
   __MATHCALL_VEC (log,, (_Mdouble_ __x));
                   ^
   /homer/leif/apache/trafficserver/plugins/lua/ts_lua_log.cc:91:5: error: no 
matching function for call to 'TSTextLogObjectWrite'
       TSTextLogObjectWrite(log, (char *)text, nullptr);
       ^~~~~~~~~~~~~~~~~~~~
   /homer/leif/apache/trafficserver/include/ts/ts.h:2308:16: note: candidate 
function not viable: no overload of 'log' matching 'TSTextLogObject' (aka 
'tsapi::c::tsapi_textlogobject *') for 1st argument
     TSReturnCode TSTextLogObjectWrite(TSTextLogObject the_object, const char 
*format, ...) TS_PRINTFLIKE(2, 3);
                  ^
   /homer/leif/apache/trafficserver/plugins/lua/ts_lua_log.cc:109:7: error: no 
matching function for call to 'TSTextLogObjectDestroy'
     if (TSTextLogObjectDestroy(log) != TS_SUCCESS) {
         ^~~~~~~~~~~~~~~~~~~~~~
   /homer/leif/apache/trafficserver/include/ts/ts.h:2330:16: note: candidate 
function not viable: no overload of 'log' matching 'TSTextLogObject' (aka 
'tsapi::c::tsapi_textlogobject *') for 1st argument
     TSReturnCode TSTextLogObjectDestroy(TSTextLogObject the_object);
                  ^
   6 errors generated.```


-- 
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: issues-unsubscr...@trafficserver.apache.org.apache.org

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

Reply via email to