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

Oknet Xu commented on TS-5082:
------------------------------

>From my understand:

- The {code}TS_INLINE{code} defined as {code}inline{code} in 
lib/ts/ink_apidefs.h only for libts, for libts.so these functions declared by 
TS_INLINE is inline function.
- And {code}TS_INLINE{code} defined as empty in iocore/*/Inline.cc, for a sub 
module static libs (*.a) these functions declared by TS_INLINE is not inline 
function.

I don't know the reasons about the TS_INLINE macro, this case only fix the 
compile error.

[~zwoop]

> Compile error: undefined reference to IOBufferReader::is_read_avail_more_than
> -----------------------------------------------------------------------------
>
>                 Key: TS-5082
>                 URL: https://issues.apache.org/jira/browse/TS-5082
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Oknet Xu
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> autoreconf -fi
> ./configure
> make
> got some error message like below:
> {code}
> CXXLD traffic_server
> undefined reference to IOBufferReader::is_read_avail_more_than(...)
> {code}
> file: P_IOBuffer.h
> {code}
> inline bool
> IOBufferReader::is_read_avail_more_than(int64_t size)
> {code}
> should be
> {code}
> TS_INLINE bool
> IOBufferReader::is_read_avail_more_than(int64_t size)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to