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

Leif Hedstrom commented on TS-3761:
-----------------------------------

Right, I don't see anything there that tells you to use the internal include 
files from ATS. I fixed the version.c example to remove the offending #include, 
it should not have been there to begin with.

We could add details how to include your private plugin into your ATS builds, 
which would of course have to be a patch that you apply on top of the ATS 
source. But, you probably are best of just using tsxs outside of the source 
tree, and don't use any of the internal include files. If you do, things like 
this can happen, and you will have to adjust your builds if/when we change 
something internally.

in this case, what you'd do is to change the include to -I../lib   and al the 
#include to "ts/<...>".

> tsxs tools can not working
> --------------------------
>
>                 Key: TS-3761
>                 URL: https://issues.apache.org/jira/browse/TS-3761
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Plugins
>            Reporter: Oknet Xu
>            Assignee: Leif Hedstrom
>             Fix For: 6.1.0
>
>
> the commit: 
> https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=36e1dd0 
> leads the include files broken and tsxs tools can not compiling plugins.
> {code}
> root@debian:/root/trafficserver# cd example/version
> root@debian:/root/trafficserver/example/version# /usr/local/ats/bin/tsxs 
> -I../../lib/ts -c version.c -o version.so
>   compiling version.c -> version.lo
> version.c:27:25: fatal error: ts/ink_defs.h: No such file or directory
> compilation terminated.
> tsxs: compilation failed: ccache cc -I/usr/local/ats/include -I../../lib/ts 
> -std=gnu99 -ggdb3 -pipe -Wall -mcx16 -fpic -c version.c -o version.lo
> root@debian:/root/trafficserver/example/version# 
> {code}



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

Reply via email to