# Nginx-1.4.1 fails when adding nginx\_upload\_module-2.2.0

**URL:** <https://www.ruby-forum.com/t/nginx-1-4-1-fails-when-adding-nginx-upload-module-2-2-0/246324>\
**Category:** NGINX\
**Created:** [September 26, 2013, 4:28pm UTC](https://www.ruby-forum.com/t/nginx-1-4-1-fails-when-adding-nginx-upload-module-2-2-0/246324 "2013-09-26T16:28:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [September 26, 2013, 4:28pm UTC](https://www.ruby-forum.com/t/nginx-1-4-1-fails-when-adding-nginx-upload-module-2-2-0/246324/1 "2013-09-26T16:28:42Z")

</div>

I am attempting to configure ngixn-1.4.1 on a SLES box for a galaxy  
server  
deployment. I am able to get it to work fine as long as I do not try to  
–add-module=…/nginx\_upload\_module-2.2.0. When I add the upload\_module  
to  
the configuration it fails as shown below:

```
../nginx_upload_module-2.2.0/ngx_http_upload_module.c

```

…/nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c: In function  
‘ngx\_http\_read\_upload\_client\_request\_body’:  
…/nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c:2628: error:  
‘ngx\_http\_request\_body\_t’ has no member named ‘to\_write’  
…/nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c:2687: error:  
‘ngx\_http\_request\_body\_t’ has no member named ‘to\_write’  
…/nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c: In function  
‘ngx\_http\_do\_read\_upload\_client\_request\_body’:  
…/nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c:2769: error:  
‘ngx\_http\_request\_body\_t’ has no member named ‘to\_write’  
…/nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c:2785: error:  
‘ngx\_http\_request\_body\_t’ has no member named ‘to\_write’  
…/nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c:2877: error:  
‘ngx\_http\_request\_body\_t’ has no member named ‘to\_write’  
make[1]: \*\*\*  
[objs/addon/nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.o]  
Error 1  
make[1]: Leaving directory `/root/nginx-1.4.1’  
make: \*\*\* [build] Error 2

My configuration script is:

./configure --add-module=/var/tmp/ldap/nginx-auth-ldap-master  
–add-module=…/nginx\_upload\_module-2.2.0 --with-pcre=…/pcre-8.33  
–with-http\_ssl\_module --conf-path=/usr/local/nginx/conf/nginx.conf  
–pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log  
–http-log-path=/var/log/nginx/access.log --user=galaxy --group=galaxy  
–with-debug

Is there a known issue with this version of nginx\_upload\_module? Is  
there a  
work around?

Thanks,

Iry Witham

Posted at Nginx Forum:

> **[Nginx-1.4.1 fails when adding nginx\_upload\_module-2.2.0](https://forum.nginx.org/read.php?2,243166,243166#msg-243166)**
>
> I am attempting to configure ngixn-1.4.1 on a SLES box for a galaxy server deployment. I am able to get it to work fine as long as I do not try to --add-module=../nginx\_upload\_module-2.2.0. When I add the upload\_module to the configuration it fails...

---

<div class="post-metadata">

**Author:** ![iwitham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/a8b319/32.png) [@iwitham](https://www.ruby-forum.com/u/iwitham)\
**Post date:** [September 26, 2013, 7:11pm UTC](https://www.ruby-forum.com/t/nginx-1-4-1-fails-when-adding-nginx-upload-module-2-2-0/246324/2 "2013-09-26T19:11:16Z")

</div>

Hello Davromaniak

Thanks for pointing me to this patch. I have made the needed changes  
and  
was able to compile it just fine.

Iry

Posted at Nginx Forum:

> **[Re: Nginx-1.4.1 fails when adding nginx\_upload\_module-2.2.0](https://forum.nginx.org/read.php?2,243166,243169#msg-243169)**
>
> I am attempting to configure ngixn-1.4.1 on a SLES box for a galaxy server deployment. I am able to get it to work fine as long as I do not try to --add-module=../nginx\_upload\_module-2.2.0. When I add the upload\_module to the configuration it fails...

---

<div class="post-metadata">

**Author:** ![iwitham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/a8b319/32.png) [@iwitham](https://www.ruby-forum.com/u/iwitham)\
**Post date:** [September 26, 2013, 4:53pm UTC](https://www.ruby-forum.com/t/nginx-1-4-1-fails-when-adding-nginx-upload-module-2-2-0/246324/3 "2013-09-26T16:53:15Z")

</div>

On 09/26/2013 04:27 PM, iwitham wrote:

> ../nginx\_upload\_module-2.2.0/ngx\_http\_upload\_module.c:2687: error:  
> Error 1  
> –with-debug
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://mailman.nginx.org/mailman/listinfo/nginx)  
> Hello Iwitham.

For nginx starting 1.3.9, it’s a known problem.

I produced a patch (a kludge then corrected by another person), and the  
github issue is here :  
[https://github.com/vkholodkov/nginx-upload-module/issues/41](https://github.com/vkholodkov/nginx-upload-module/issues/41)

The modified patch seems to work with nginx 1.5.1.

Thanks.

–  
Cyril “Davromaniak” Lavier  
KeyID 59E9A881  
[http://www.davromaniak.eu](http://www.davromaniak.eu)
