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

Sebastian Pesman commented on TS-3614:
--------------------------------------

I'm not a programmer, but this appears to be a quick/dirty fix.

There are some directories missing when compiling.

Edit
plugins/experimental/ats_pagespeed/Makefile
Add the following after PAGESPEED_OUT=$(shell 
pwd)/psol/lib/$(BUILDTYPE)/linux/x64/

ATS=/tmp/trafficserver/proxy/api/
ATS2=/tmp/trafficserver/lib/ts

Change/add
 -I$(MOD_PAGESPEED_DIR)out/$(BUILDTYPE)/obj/gen/protoc_out/instaweb\
 -I$(ATS)\
 -I$(ATS2)

Then the MAKE process seems to be working, but in my case I get a "command tsxs 
not found"  which is dirty resolved with:
export PATH=$PATH:/opt/ats/bin

When starting ATS with ./traffic_server -T ".*speed.*" it shows that 
ATS_pagespeed is loaded.


> ats_pagespeed make > fatal error: ts/ts.h
> -----------------------------------------
>
>                 Key: TS-3614
>                 URL: https://issues.apache.org/jira/browse/TS-3614
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Configuration
>            Reporter: Sebastian Pesman
>            Assignee: Otto van der Schaaf
>             Fix For: 6.0.0
>
>
> When running the MAKE command on a git clone of ATS it fails to MAKE the 
> plugin. It's not clear to me which ts.h file it needs.
> OS: Centos 7
> Git: https://git-wip-us.apache.org/repos/asf/trafficserver.git 
> Branch: Master
> /tmp/trafficserver/plugins/experimental/ats_pagespeed
> make
> Errors:
> In file included from ats_base_fetch.cc:24:0:
> ats_base_fetch.h:29:19: fatal error: ts/ts.h: No such file or directory
>  #include <ts/ts.h>
>                    ^
> compilation terminated.
> In file included from ats_beacon_intercept.cc:24:0:
> ats_beacon_intercept.h:27:19: fatal error: ts/ts.h: No such file or directory
>  #include "ts/ts.h"
>                    ^
> compilation terminated.
> In file included from ats_config.cc:24:0:
> ats_config.h:30:19: fatal error: ts/ts.h: No such file or directory
>  #include <ts/ts.h>
>                    ^
> compilation terminated.
> In file included from ats_header_utils.cc:24:0:
> ats_header_utils.h:29:19: fatal error: ts/ts.h: No such file or directory
>  #include <ts/ts.h>
>                    ^
> compilation terminated.
> ats_log_message_handler.cc:26:19: fatal error: ts/ts.h: No such file or 
> directory
>  #include <ts/ts.h>
>                    ^
> compilation terminated.
> In file included from ats_message_handler.cc:24:0:
> ats_message_handler.h:27:19: fatal error: ts/ts.h: No such file or directory
>  #include <ts/ts.h>
>                    ^
> compilation terminated.
> ats_pagespeed.cc:33:19: fatal error: ts/ts.h: No such file or directory
>  #include <ts/ts.h>
>                    ^
> compilation terminated.
> In file included from ats_process_context.cc:30:0:
> ats_message_handler.h:27:19: fatal error: ts/ts.h: No such file or directory
>  #include <ts/ts.h>
>                    ^
> compilation terminated.
> ats_resource_intercept.cc:24:19: fatal error: ts/ts.h: No such file or 
> directory
>  #include <ts/ts.h>
>                    ^
> compilation terminated.
> In file included from ats_rewrite_driver_factory.cc:29:0:
> ats_thread_system.h:29:19: fatal error: ts/ts.h: No such file or directory
>  #include <ts/ts.h>
>                    ^
> compilation terminated.
> In file included from ats_rewrite_options.cc:35:0:
> ats_message_handler.h:27:19: fatal error: ts/ts.h: No such file or directory
>  #include <ts/ts.h>
>                    ^
> compilation terminated.
> make: *** [ats_pagespeed.so] Error 1



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

Reply via email to