Error: too many arguments to function 'ngx_time_update'

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

Hello!

On Mon, Nov 07, 2011 at 08:53:12PM +0000, Mark A. wrote:

[…]

Can you help me to avoid the following errors?

[…]

/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

Errors are caused by 3rd party module you are trying to use.
Either do not compile it, or update it (likely new version of the
module exists which resolves this).

Maxim D.

On Tue, Nov 8, 2011 at 4:53 AM, Mark A. [email protected]
wrote:

/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

There was an incompatible API change in 0.7.66 that the
ngx_time_update macro then takes a different number of arguments. This
issue was already fixed in ngx_echo v0.33+, see

http://wiki.nginx.org/HttpEchoModule#v0.33

I suggest you upgrade your ngx_echo module to the latest v0.37rc7
release, which can be downloaded here:

https://github.com/agentzh/echo-nginx-module/tags

Regards,
-agentzh

On Tue, 8 Nov 2011 12:08:20 +0400, Maxim D. [email protected]
wrote:

/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

Errors are caused by 3rd party module you are trying to use.
Either do not compile it, or update it (likely new version of the
module exists which resolves this).

Thank you. As usual you were right.

A simple sed -i ‘/MODULESDIR/d’ debian/rules took care of the
offending ‘nginx-echo’ module and of all the other modules that bloat
the current ubuntu/debian version of Nginx code.

Regards,
M.