Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts_mruby build failed #5

Open
matsumotory opened this issue May 6, 2014 · 2 comments
Open

ts_mruby build failed #5

matsumotory opened this issue May 6, 2014 · 2 comments

Comments

@matsumotory
Copy link

My environment is Ubuntu 14.04 64bit.

FIrst, build trafficserver.

git clone https://github.com/apache/trafficserver.git
cd trafficserver
autoreconf -if
./configure --enable-cppapi --prefix=/usr/local/trafficserver-git-master
make
sudo make install

but, not found /usr/local/trafficserver-git-master/bin/tsxs. Then,

./configure --prefix=/usr/local/trafficserver-git-master
make
sudo make install

installed bin/tsxs and related binary.
Then, build ts_mruby after downloading mruby.

cd ts_mruby
autoreconf -if
./configure --with-ts-prefix-root=/usr/local/trafficserver-git-master/ --with-mruby-root=../mruby/
make build_mruby
make

But, a below error occurred.

$ make
/usr/local/trafficserver-git-master/bin/tsxs -I/usr/local/trafficserver-git-master/include -I../mruby/include -L/usr/local/trafficserver-git-master/lib/ts -L/usr/local/trafficserver-git-master/lib -L/home/matsumotory/DEV/mruby/build/host/lib -latscppapi -lmruby -lm -lreadline src/ts_mruby_*.cpp src/ts_mruby.cpp
  compiling src/ts_mruby_core.cpp -> src/ts_mruby_core.lo
In file included from /usr/local/trafficserver-git-master/include/atscppapi/Transaction.h:30:0,
                 from src/ts_mruby_core.cpp:13:
/usr/local/trafficserver-git-master/include/atscppapi/shared_ptr.h:28:26: fatal error: ink_autoconf.h: No such file or directory
 #include "ink_autoconf.h"
                          ^
compilation terminated.
tsxs: compilation failed: c++ -I/usr/local/trafficserver-git-master/include -I/usr/local/trafficserver-git-master/include -I../mruby/include -std=c++11 -g -pipe -Wall -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Wno-invalid-offsetof -mcx16 -fpic -c src/ts_mruby_core.cpp -o src/ts_mruby_core.lo
make: *** [ts_mruby.la] Error 1
@syucream
Copy link
Owner

Build failure which is related to ink_autoconf.h seems to be caused by problems of atscppapi. I already reported it.
https://issues.apache.org/jira/browse/TS-2794

To fix it quickly, please copy this header file from src directory of trafficserver to your destination directory(In this case, /usr/local/trafficserver-git-master/ ).

@matsumotory
Copy link
Author

I already reported it.
https://issues.apache.org/jira/browse/TS-2794

It's awesome! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants