<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Begin forwarded message:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Amita Shirish Amte <<a href="mailto:aamte@petabi.com" class="">aamte@petabi.com</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Adding dynamic library to nginx module</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">August 2, 2016 at 11:19:24 AM PDT<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><a href="mailto:nginx@nginx.org" class="">nginx@nginx.org</a><br class=""></span></div><br class=""><div class=""><div class="">Hi,<br class=""><br class="">My name is Amita and I am newbie in using nginx. I am writing a dynamic nginx http module which needs to link to a dynamic library. Currently, I have the following config file :<br class=""><br class="">ngx_addon_name=ngx_http_remake_module <br class="">CORE_LIBS="$CORE_LIBS -L /usr/local/lib/libtest_web.dylib"<br class="">if test -n "$ngx_module_link"; then<br class=""> ngx_module_type=HTTP<br class=""> ngx_module_name=$ngx_addon_name<br class=""> ngx_module_incs=<br class=""> ngx_module_deps=<br class=""> ngx_module_srcs="$ngx_addon_dir/ngx_http_remake_module.c"<br class=""> ngx_module_libs=<br class=""> . auto/module<br class="">else<br class=""> HTTP_MODULES="$HTTP_MODULES ngx_http_remake_module"<br class=""> NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_remake_module.c"<br class="">fi<br class=""><br class="">When I run sudo make, I get the following clang error: clang: error: no such file or directory: ‘libtest_web.dylib’, kindly let me know how exactly should I load the dynamic library or where should it be located so that nginx will automatically link it to the module.<br class=""><br class="">Thanks for the help and time.<br class=""><br class="">Regards,<br class="">Amita</div></div></blockquote></div><br class=""></body></html>