[
https://issues.apache.org/jira/browse/TS-3761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14624161#comment-14624161
]
Oknet Xu edited comment on TS-3761 at 7/13/15 6:33 AM:
-------------------------------------------------------
example/version plugin is included in ATS source code.
>From my understanding, TSXS should compile all the plugins no matter it is
>inside or outside the ATS source tree, unless there is new plugin (inside
>plugin) introduced in the next release.
If there is only outside plugin (no new plugin introduced), we'd better include
the following headers files ( such as ink_defs.h, ink_config.h,
tsconfig/TsValue.h, thread.h, etc... ) into API in order to meet the
requirement of the plugin.
I'm just a ATS user want create/build my own plugin, maybe the document is too
old to match the lates ATS release.
also I think this issue can be linked to TS-3614.
was (Author: oknet):
there is only one section introducing the command/tool of TSXS in
"sdk/getting-started/a-simple-plugin".
the plugin samples in the example dir, include many internal header file:
ink_defs.h, ink_config.h, tsconfig/TsValue.h, thread.h, etc...
we should install these header files into <traffic server install dir>/include/
if the plugin developer need them.
the tsxs should compile any plugin both inside and outside the ATS source tree
as the document side.
Or we should introduce the inside plugin and outside plugin and update them
into document.
I'm just a ATS user want create/build my own plugin, However, the document is
too old to match the lates ATS release.
also I think this issue can be linked to TS-3614.
> 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
>
> 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)