error: too many arguments to function 'ngx_time_update'

Mark Alan varia at e-healthexpert.org
Mon Nov 7 20:53:12 UTC 2011


Hello,

While trying to compile with:
  pdebuild ../nginx_1.1.7-0.ubuntu.2.dsc
the latest nginx code using an Ubuntu 11.10 machine
with these parameters:
 ./configure \\\
\t    --prefix=/etc/nginx \\\
\t    --conf-path=/etc/nginx/nginx.conf \\\
\t    --error-log-path=/var/log/nginx/error.log \\\
\t    --http-client-body-temp-path=/var/lib/nginx/body \\\
\t    --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \\\
\t    --http-log-path=/var/log/nginx/access.log \\\
\t    --http-proxy-temp-path=/var/lib/nginx/proxy \\\
\t    --lock-path=/var/lock/nginx.lock \\\
\t    --pid-path=/var/run/nginx.pid \\\
\t    --with-http_gzip_static_module \\\
\t    --with-http_ssl_module \\\
\t    --without-http-cache \\\
\t    --without-http_browser_module \\\
\t    --without-http_geo_module \\\
\t    --without-http_limit_req_module \\\
\t    --without-http_limit_zone_module \\\
\t    --without-http_map_module \\\
\t    --without-http_memcached_module \\\
\t    --without-http_referer_module \\\
\t    --without-http_scgi_module \\\
\t    --without-http_split_clients_module \\\
\t    --without-http_ssi_module \\\
\t    --without-http_upstream_keepalive_module \\\
\t    --without-http_userid_module \\\
\t    --without-http_uwsgi_module \\\
            $CONFIGURE_OPTS >$@ \
\ttouch $@ 

Can you help me to avoid the following errors?

M.

(...)
gcc -c -Wall -g -O2   -I src/core -I src/event -I src/event/modules -I
src/os/unix -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/mail \
   -o objs/addon/src/ngx_http_echo_timer.o \
  /tmp/buildd/nginx-1.1.7/debian/modules/nginx-echo/src/ngx_http_echo_timer.c

/tmp/buildd/nginx-1.1.7/debian/modules/nginx-echo/src/ngx_http_echo_timer.c:
In function
'ngx_http_echo_timer_elapsed_variable':

/tmp/buildd/nginx-1.1.7/debian/modules/nginx-echo/src/ngx_http_echo_timer.c:32:5: error: too many arguments to function 'ngx_time_update'
src/core/ngx_times.h:23:6: note: declared here

/tmp/buildd/nginx-1.1.7/debian/modules/nginx-echo/src/ngx_http_echo_timer.c:
In function
'ngx_http_echo_exec_echo_reset_timer':

/tmp/buildd/nginx-1.1.7/debian/modules/nginx-echo/src/ngx_http_echo_timer.c:70:5: error: too many arguments to function 'ngx_time_update'
src/core/ngx_times.h:23:6: note: declared here

make[2]: *** [objs/addon/src/ngx_http_echo_timer.o] Error 1
make[2]: Leaving directory `/tmp/buildd/nginx-1.1.7/debian/build-full'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/tmp/buildd/nginx-1.1.7/debian/build-full'
make: *** [build-arch.full] Error 2

dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I: unmounting /var/cache/pbuilder/ccache filesystem
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/pbuilder/build//23240 and its subdirectories



More information about the nginx mailing list