<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yiv1530301568"><div id="yui_3_16_0_1_1445694175839_9555"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_1_1445694175839_9554"><div id="yiv1530301568"><div id="yiv1530301568yui_3_16_0_1_1445694175839_7360"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yiv1530301568yui_3_16_0_1_1445694175839_7359"><div class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6561"><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6560"><font size="3" id="yiv1530301568yui_3_16_0_1_1445694175839_6559">Hey NGINX Devs,</font></span></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6576"><font size="3"><br class="yiv1530301568"></font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6579"><font size="3" id="yiv1530301568yui_3_16_0_1_1445694175839_6578">I want to compile and run NGINX on OSv from Cloudius <a rel="nofollow" target="_blank" href="https://github.com/cloudius-systems/osv" style="color:rgb(17, 85, 204);" class="yiv1530301568">https://github.com/ cloudius-systems/osv</a>.</font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6573"><font size="3" id="yiv1530301568yui_3_16_0_1_1445694175839_6572">For that I have to compile NGINX as Position Independent Code (-fPIC / -fPIE).</font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6571"><font size="3"><br class="yiv1530301568"></font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6574"><font size="3"><br class="yiv1530301568"></font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6570"><font size="3" id="yiv1530301568yui_3_16_0_1_1445694175839_6569">The issue I currently have is that when I run 'make build' after executing the ./configure script in the source folder I get following error:</font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6575"><font size="3"><br class="yiv1530301568"></font></div><blockquote style="color:rgb(34, 34, 34);font-family:arial, sans-serif;margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6566"><font size="3" id="yiv1530301568yui_3_16_0_1_1445694175839_6567">cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -fPIE -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -o objs/src/os/unix/ngx_process_ cycle.o \ src/os/unix/ngx_process_cycle. o src/os/unix/ngx_process_cycle. c: In function ‘ngx_master_process_cycle’:<br class="yiv1530301568"><br class="yiv1530301568"><b class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6568">src/os/unix/ngx_process_cycle. c:124:5: error: implicit declaration of function ‘setproctitle’ [-Werror=implicit-function- declaration]<br class="yiv1530301568">ngx_setproctitle(title);</b><br class="yiv1530301568"> ^<br class="yiv1530301568">cc1: all warnings being treated as errors<br class="yiv1530301568">make[1]: *** [objs/src/os/unix/ngx_process_ cycle.o] Error 1<br class="yiv1530301568">make[1]: Leaving directory `/tmp/thesis_vs/osv_proj/ nginx/upstream/nginx-1.8.0'<br class="yiv1530301568">make: *** [build] Error 2<br class="yiv1530301568"><br class="yiv1530301568"><br class="yiv1530301568"></font></blockquote><div class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6565"><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yui_3_16_0_1_1445694175839_9613"><font size="3" id="yui_3_16_0_1_1445694175839_9612">My current workflow to compile NGNIX with fPIE is as follows:</font></span></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568"><font size="3"><br class="yiv1530301568"></font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568"><ol class="yiv1530301568"><li style="margin-left:15px;" class="yiv1530301568"><font size="3">Load Sources (1.8 Stable Release)</font></li><li style="margin-left:15px;" class="yiv1530301568"><font size="3">Patch source files from <a rel="nofollow" target="_blank" href="http://git.buildroot.net/buildroot/tree/package/nginx" style="color:rgb(17, 85, 204);" class="yiv1530301568">http://git.buildroot.net/ buildroot/tree/package/nginx</a> to pass some of the configure checks and adjust as needed for OSv Operating System.</font></li><li style="margin-left:15px;" class="yiv1530301568"><font size="3">Export flags for configure script as required for OSv<br class="yiv1530301568"></font></li></ol></div><blockquote style="color:rgb(34, 34, 34);font-family:arial, sans-serif;margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6430"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568"><font size="3">export ngx_force_gcc_have_atomic=yes \</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568"><font size="3">export ngx_force_c99_have_variadic_ macros=yes \</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568"><font size="3">export ngx_force_gcc_have_variadic_ macros=yes \</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568"><font size="3">export ngx_force_have_epoll=yes \</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568"><font size="3">export ngx_force_have_sendfile=yes \</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568"><font size="3">export ngx_force_have_sendfile64=yes \ ?!??!</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568"><font size="3">export ngx_force_have_pr_set_ dumpable=yes \ ?!?!</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568"><font size="3">export ngx_force_sys_nerr=100 \</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568"><font size="3">export ngx_force_have_map_anon=yes \</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568"><font size="3">export ngx_force_have_posix_sem=yes\</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6429"><font size="3">export ngx_force_have_sysvshm=yes\</font></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6437"><font size="3">export ngx_force_have_map_devzero=no<br class="yiv1530301568"><br class="yiv1530301568"></font></blockquote></blockquote><blockquote style="color:rgb(34, 34, 34);font-family:arial, sans-serif;margin:0px 0px 0px 40px;border:none;padding:0px;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6438"><font size="3">4. ./configure --with-cc-opt="-fPIE" \<br class="yiv1530301568"><br class="yiv1530301568">--with-ld-opt="-shared" \<br class="yiv1530301568">--prefix=/none \<br class="yiv1530301568">--conf-path=/data/conf/nginx. conf \<br class="yiv1530301568">--sbin-path=/none \<br class="yiv1530301568">--pid-path=/tmp/nginx.pid \<br class="yiv1530301568">--lock-path=/tmp/nginx.lock \<br class="yiv1530301568">--error-log-path=/tmp/error. log \<br class="yiv1530301568">--http-log-path=/tmp/access. log \<br class="yiv1530301568">--http-client-body-temp-path=/ tmp/client-body \<br class="yiv1530301568">--http-proxy-temp-path=/tmp/ proxy \<br class="yiv1530301568">--http-fastcgi-temp-path=/tmp/ fastcgi \<br class="yiv1530301568">--http-scgi-temp-path=/tmp/ scgi \<br class="yiv1530301568">--http-uwsgi-temp-path=/tmp/ uwsgi \<br class="yiv1530301568">--without-http_rewrite_module \<br class="yiv1530301568">--with-http_ssl_module \<br class="yiv1530301568">--with-ipv6 \<br class="yiv1530301568">--with-pcre <br class="yiv1530301568"><br class="yiv1530301568">5. make build<br class="yiv1530301568"><br class="yiv1530301568"></font></blockquote><div class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6465"><font size="3"><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6464">Im using Ubuntu 14.04 and gcc-4.8 to compile NGINX</span><br style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568"><span style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568">I have no idea if / what I'm doing wrong here. Any help is highly appreciated. :) </span></font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6466"><font size="3"><br class="yiv1530301568"></font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6467"><font size="3">Kind regards,</font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6468"><font size="3"><br class="yiv1530301568"></font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6473"><font size="3">Vincent</font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6474"><font size="3"><br class="yiv1530301568"></font></div><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;" dir="ltr" class="yiv1530301568" id="yiv1530301568yui_3_16_0_1_1445694175839_6475"><font size="3" id="yiv1530301568yui_3_16_0_1_1445694175839_6563">P.S.: Sorry for sending it on both lists but I wasn't sure which is the right one for this kind of question.</font></div></div></div></div></div></div></div></div></body></html>