# Build failed, ngx\_http\_ssl\_module requires?

**URL:** <https://www.ruby-forum.com/t/build-failed-ngx-http-ssl-module-requires/235464>\
**Category:** NGINX\
**Created:** [June 23, 2013, 9:43am UTC](https://www.ruby-forum.com/t/build-failed-ngx-http-ssl-module-requires/235464 "2013-06-23T09:43:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [June 23, 2013, 9:43am UTC](https://www.ruby-forum.com/t/build-failed-ngx-http-ssl-module-requires/235464/1 "2013-06-23T09:43:06Z")

</div>

Hi,

I’ve tried to build nginx 1.4.1 under FreeBSD 9.1-STABLE and the build  
has been failed.

Here is configure arguments:

–prefix=/usr/local/etc/nginx --with-cc-opt=-I /usr/local/include  
–with-ld-opt=-L /usr/local/lib  
–conf-path=/usr/local/etc/nginx/nginx.conf  
–sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid  
–error-log-path=/var/log/nginx-error.log --user=www --group=www  
–with-ipv6 --http-client-body-temp-path=/var/tmp/nginx/client\_body\_temp  
–http-fastcgi-temp-path=/var/tmp/nginx/fastcgi\_temp  
–http-proxy-temp-path=/var/tmp/nginx/proxy\_temp  
–http-scgi-temp-path=/var/tmp/nginx/scgi\_temp  
–http-uwsgi-temp-path=/var/tmp/nginx/uwsgi\_temp  
–http-log-path=/var/log/nginx-access.log --with-http\_flv\_module  
–with-http\_gzip\_static\_module --with-http\_mp4\_module  
–with-http\_realip\_module --with-http\_stub\_status\_module --with-pcre  
–with-mail --with-mail\_ssl\_module

Here is error message:

cc -c -O2 -pipe -fno-strict-aliasing -I /usr/local/include -I src/core  
-I src/event -I src/event/modules -I src/os/unix -I objs -I src/http  
-I src/http/modules -o objs/src/http/ngx\_http\_request.o  
src/http/ngx\_http\_request.c  
src/http/ngx\_http\_request.c: In function ‘ngx\_http\_set\_virtual\_server’:  
src/http/ngx\_http\_request.c:1992: error: ‘ngx\_http\_ssl\_srv\_conf\_t’  
undeclared (first use in this function)  
src/http/ngx\_http\_request.c:1992: error: (Each undeclared identifier is  
reported only once  
src/http/ngx\_http\_request.c:1992: error: for each function it appears  
in.)  
src/http/ngx\_http\_request.c:1992: error: ‘sscf’ undeclared (first use in  
this function)  
src/http/ngx\_http\_request.c:1999: error: ‘ngx\_http\_ssl\_module’  
undeclared (first use in this function)  
\*\*\* [objs/src/http/ngx\_http\_request.o] Error code 1

Could you investigate the issue.

–  
Sergey A. Osokin  
removed\_email\_address@domain.invalid  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Sergey\_ASOsokin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@Sergey\_ASOsokin](https://www.ruby-forum.com/u/Sergey_ASOsokin)\
**Post date:** [June 23, 2013, 10:14am UTC](https://www.ruby-forum.com/t/build-failed-ngx-http-ssl-module-requires/235464/2 "2013-06-23T10:14:38Z")

</div>

Patch.

---

<div class="post-metadata">

**Author:** ![Sergey\_ASOsokin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@Sergey\_ASOsokin](https://www.ruby-forum.com/u/Sergey_ASOsokin)\
**Post date:** [June 23, 2013, 11:17am UTC](https://www.ruby-forum.com/t/build-failed-ngx-http-ssl-module-requires/235464/3 "2013-06-23T11:17:44Z")

</div>

Hello!

On Sun, Jun 23, 2013 at 11:42:47AM +0400, Sergey A. Osokin wrote:

> cc -c -O2 -pipe -fno-strict-aliasing -I /usr/local/include -I src/core -I  
> src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I  
> src/http/modules -o objs/src/http/ngx\_http\_request.o src/http/ngx\_http\_request.c  
> src/http/ngx\_http\_request.c: In function ‘ngx\_http\_set\_virtual\_server’:  
> src/http/ngx\_http\_request.c:1992: error: ‘ngx\_http\_ssl\_srv\_conf\_t’ undeclared  
> (first use in this function)  
> src/http/ngx\_http\_request.c:1992: error: (Each undeclared identifier is reported  
> only once  
> src/http/ngx\_http\_request.c:1992: error: for each function it appears in.)  
> src/http/ngx\_http\_request.c:1992: error: ‘sscf’ undeclared (first use in this  
> function)  
> src/http/ngx\_http\_request.c:1999: error: ‘ngx\_http\_ssl\_module’ undeclared (first  
> use in this function)  
> \*\*\* [objs/src/http/ngx\_http\_request.o] Error code 1
> 
> Could you investigate the issue.

This is fixed in 1.5.1, see this commit:

> **[hg.nginx.org is decommissioned](http://hg.nginx.org/nginx/rev/9d83ec073c51)**

–  
Maxim D.

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