Unable to build
David Murphy
david at icewatermedia.com
Fri Sep 4 01:32:20 MSD 2009
File builds fine by hand but
make clean
./configure --with-http_ssl_module --with-http_gzip_static_module --with-http_dav_module --with-http_stub_status_module --without-http_rewrite_module --with-pcre=../pcre-7.7 --add-module=/root/nginx-0.7.61/nginx-upstream-fair
make
fails in the exact same spot
:(
David
-----Original Message-----
From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of Grzegorz Nosek
Sent: Thursday, September 03, 2009 3:42 PM
To: nginx at sysoev.ru
Subject: Re: Unable to build
On czw, wrz 03, 2009 at 02:16:29 -0500, David Murphy wrote:
> This is interesting ....
>
> [root at loba1 ~/nginx-0.7.61]# ls objs/addon/nginx-upstream-fair/ -la
> total 8.0K drwxr-xr-x 2 root root 4.0K Sep 3 14:10 .
> drwxr-xr-x 3 root root 4.0K Sep 3 14:10 ..
>
>
>
> [root at loba1 ~/nginx-0.7.61]# cat build-stderr.log ', needed by
> `objs/nginx'. Stop.et
> `objs/addon/nginx-upstream-fair/ngx_http_upstream_fair_module.o
> make: *** [build] Error 2
>
> Same results from the build after a make 2> build-stderr.log
>
> For clarity this is my upstream folder
>
>
> [root at loba1 ~/nginx-0.7.61]# ls -la nginx-upstream-fair total 68K
> drwxr-xr-x 3 root root 4.0K Sep 2 14:52 .
> drwxr-xr-x 9 resgen resgen 4.0K Sep 3 14:14 ..
> -rw-r--r-- 1 root root 1.3K Sep 2 14:52 .gdbinit
> drwxr-xr-x 7 root root 4.0K Sep 2 14:52 .git
> -rw-r--r-- 1 root root 1.4K Sep 2 14:52 README
> -rw-r--r-- 1 root root 187 Sep 2 14:52 config
> -rw-r--r-- 1 root root 43K Sep 2 14:52 ngx_http_upstream_fair_module.c
>
OK, so please try compiling the module by hand, maybe then the messages will be more meaningful (while being in top-level Nginx directory):
gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../pcre-7.7 -I objs -I src/http -Isrc/http/modules -o objs/addon/nginx-upstream-fair/ngx_http_upstream_fair_module.o nginx-upstream-fair/ngx_http_upstream_fair_module.c
Also (especially if the above command works), try passing the absolute path to this module in your configure invocation (I vaguely remember this making a difference at least some time ago).
Best regards,
Grzegorz Nosek
More information about the nginx
mailing list