# Error compiling 1.3.8 (or .4 or .7) with SPDY patch

**URL:** <https://www.ruby-forum.com/t/error-compiling-1-3-8-or-4-or-7-with-spdy-patch/224866>\
**Category:** NGINX\
**Created:** [November 28, 2012, 11:28pm UTC](https://www.ruby-forum.com/t/error-compiling-1-3-8-or-4-or-7-with-spdy-patch/224866 "2012-11-28T23:28:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [November 28, 2012, 11:28pm UTC](https://www.ruby-forum.com/t/error-compiling-1-3-8-or-4-or-7-with-spdy-patch/224866/1 "2012-11-28T23:28:31Z")

</div>

On ubuntu 10.04. (AWS AMI)  
Background:  
I’m trying to setup a rails server to host nginx + SPDY on an AWS AMI  
with Ubuntu 10.04.

After patching the source tree with the SPDY path I keep getting this  
error:

src/http/ngx\_http\_request\_body.c: In function  
‘ngx\_http\_read\_client\_request\_body’:  
src/http/ngx\_http\_request\_body.c:51: error: ‘rc’ undeclared (first use  
in this function)  
src/http/ngx\_http\_request\_body.c:51: error: (Each undeclared identifier  
is reported only once  
src/http/ngx\_http\_request\_body.c:51: error: for each function it appears  
in.)  
src/http/ngx\_http\_request\_body.c:52: error: label ‘done’ used but not  
defined

not sure what else to post, so below are some other things that I  
thought might be useful.

I’m confused because it seems like so many others aren’t running into  
compile issues so it makes me think that maybe I’m missing something. So  
any help is greatly appreciated.

I’m also passing in the path to OpenSSL 1.0.1 (see the configure command  
below).  
Thanks  
Chris

Gcc:  
Using built-in specs.  
Target: i686-apple-darwin11  
Configured with:  
/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure  
–disable-checking --enable-werror  
–prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2  
–mandir=/share/man --enable-languages=c,objc,c++,obj-c++  
–program-prefix=llvm- --program-transform-name=/^[cg][^.-]\*$/s/$/-4.2/  
–with-slibdir=/usr/lib --build=i686-apple-darwin11  
–enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local  
–program-prefix=i686-apple-darwin11- --host=x86\_64-apple-darwin11  
–target=i686-apple-darwin11  
–with-gxx-include-dir=/usr/include/c++/4.2.1  
Thread model: posix  
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build  
2336.11.00)

nginx version can be 1.3.4 or 1.3.7 or 1.3.8

configure command:

./configure --with-cc-opt=-Wno-error --prefix=/opt/nginx --user=nginx  
–group=nginx --with-http\_ssl\_module  
–with-openssl=/usr/local/build/openssl-1.0.1c

---

<div class="post-metadata">

**Author:** ![Chris\_Brulak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85e7bf/32.png) [@Chris\_Brulak](https://www.ruby-forum.com/u/Chris_Brulak)\
**Post date:** [November 29, 2012, 2:33am UTC](https://www.ruby-forum.com/t/error-compiling-1-3-8-or-4-or-7-with-spdy-patch/224866/2 "2012-11-29T02:33:07Z")

</div>

On Thursday 29 November 2012 02:27:44 Chris Brulak wrote:

> error: ‘rc’ undeclared (first use in this function)  
> src/http/ngx\_http\_request\_body.c:51: error: (Each undeclared identifier is  
> reported only once src/http/ngx\_http\_request\_body.c:51: error: for each  
> function it appears in.) src/http/ngx\_http\_request\_body.c:52: error: label  
> ‘done’ used but not defined  
> […]  
> nginx version can be 1.3.4 or 1.3.7 or 1.3.8  
> […]

The latest patch only suitable for 1.3.9. If you want to compile 1.3.8  
with  
SPDY, then you should use  
[http://nginx.org/patches/spdy/patch.spdy-53.txt](http://nginx.org/patches/spdy/patch.spdy-53.txt)

wbr, Valentin V. Bartenev

–

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.

> **[nginx: donation](http://nginx.org/en/donation.html)**

---

<div class="post-metadata">

**Author:** ![Chris\_Brulak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85e7bf/32.png) [@Chris\_Brulak](https://www.ruby-forum.com/u/Chris_Brulak)\
**Post date:** [November 29, 2012, 3:46am UTC](https://www.ruby-forum.com/t/error-compiling-1-3-8-or-4-or-7-with-spdy-patch/224866/3 "2012-11-29T03:46:44Z")

</div>

ok. I’ll try that right now.

Thanks for the quick reply.
