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

Error when compiling source code using OpenResty #120

Open
javierlga opened this issue Jan 3, 2020 · 1 comment
Open

Error when compiling source code using OpenResty #120

javierlga opened this issue Jan 3, 2020 · 1 comment

Comments

@javierlga
Copy link

Hello, I'm building OpenTracing from source code to be added as a module for OpenResty/NGINX, using the following command:

./configure --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC 
-I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre/include 
-I/usr/local/openresty/openssl/include' 
--with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib 
-L/usr/local/openresty/zlib/lib 
-L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl/lib 
-Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl/lib' 
--with-pcre-jit --with-stream --with-stream_ssl_module 
--with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module 
--without-mail_imap_module 
--without-mail_smtp_module --with-http_stub_status_module 
--with-http_realip_module --with-http_addition_module 
--with-http_auth_request_module --with-http_secure_link_module 
--with-http_random_index_module --with-http_gzip_static_module 
--with-http_sub_module --with-http_dav_module 
--with-http_flv_module --with-http_mp4_module --with-http_gunzip_module 
--with-threads --with-dtrace-probes --with-stream --with-stream_ssl_preread_module 
--with-http_ssl_module 
--add-dynamic-module=/home/centos/openresty-1.15.8.2/nginx-opentracing-0.9.0/opentracing

After running running gmake install, I'm receiving the following error:

/home/centos/openresty-1.15.8.2/nginx-opentracing-0.9.0/opentracing/src/load_tracer.h:3:38: fatal error: opentracing/dynamic_load.h: No such file or directory
 #include <opentracing/dynamic_load.h>
                                      ^
compilation terminated.
make[2]: *** [objs/addon/src/ngx_http_opentracing_module.o] Error 1
make[2]: Leaving directory `/home/centos/openresty-1.15.8.2/build/nginx-1.15.8'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/centos/openresty-1.15.8.2/build/nginx-1.15.8'
make: *** [install] Error 2

Information:

  • OpenTracing version: 0.9
  • OpenResty/NGINX version: 1.15.8
  • Source code

Any help is appreciated.

@Grokon
Copy link

Grokon commented Feb 26, 2020

You need to install https://github.com/opentracing/opentracing-cpp

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