# Error: too many arguments to function 'ngx\_time\_update'

**URL:** <https://www.ruby-forum.com/t/error-too-many-arguments-to-function-ngx-time-update/213640>\
**Category:** NGINX\
**Created:** [November 7, 2011, 9:54pm UTC](https://www.ruby-forum.com/t/error-too-many-arguments-to-function-ngx-time-update/213640 "2011-11-07T21:54:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 7, 2011, 9:54pm UTC](https://www.ruby-forum.com/t/error-too-many-arguments-to-function-ngx-time-update/213640/1 "2011-11-07T21:54:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![larios](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/bc79bd/32.png) [@larios](https://www.ruby-forum.com/u/larios)\
**Post date:** [November 8, 2011, 9:08am UTC](https://www.ruby-forum.com/t/error-too-many-arguments-to-function-ngx-time-update/213640/2 "2011-11-08T09:08:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![larios](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/bc79bd/32.png) [@larios](https://www.ruby-forum.com/u/larios)\
**Post date:** [November 8, 2011, 9:34am UTC](https://www.ruby-forum.com/t/error-too-many-arguments-to-function-ngx-time-update/213640/3 "2011-11-08T09:34:17Z")

</div>

On Tue, Nov 8, 2011 at 4:53 AM, Mark A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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

---

<div class="post-metadata">

**Author:** ![larios](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/bc79bd/32.png) [@larios](https://www.ruby-forum.com/u/larios)\
**Post date:** [November 8, 2011, 11:59am UTC](https://www.ruby-forum.com/t/error-too-many-arguments-to-function-ngx-time-update/213640/4 "2011-11-08T11:59:13Z")

</div>

On Tue, 8 Nov 2011 12:08:20 +0400, Maxim D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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.
