# HELP: ngx\_http\_token\_module compile failed

**URL:** <https://www.ruby-forum.com/t/help-ngx-http-token-module-compile-failed/213083>\
**Category:** NGINX\
**Created:** [October 23, 2011, 3:40am UTC](https://www.ruby-forum.com/t/help-ngx-http-token-module-compile-failed/213083 "2011-10-23T03:40:34Z")\
**Posts on this page:** 3\
**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:** [October 23, 2011, 3:40am UTC](https://www.ruby-forum.com/t/help-ngx-http-token-module-compile-failed/213083/1 "2011-10-23T03:40:34Z")

</div>

gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter  
-Wunused-function -Wunused-variable -Wunused-value -Werror -g -I  
src/core -I src/event -I src/event/modules -I src/os/unix -I  
/usr/local/include -I objs -I src/http -I src/http/modules -o  
objs/src/http/modules/ngx\_http\_upstream\_ip\_hash\_module.o  
src/http/modules/ngx\_http\_upstream\_ip\_hash\_module.c  
gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter  
-Wunused-function -Wunused-variable -Wunused-value -Werror -g -I  
src/core -I src/event -I src/event/modules -I src/os/unix -I  
/usr/local/include -I objs -I src/http -I src/http/modules -I  
src/mail -o objs/addon/nginx-token/ngx\_http\_token\_module.o  
/usr/local/pureftp\_user/nginx-token/ngx\_http\_token\_module.c  
/usr/local/pureftp\_user/nginx-token/ngx\_http\_token\_module.c: In function  
‘ngx\_http\_token\_handler’:  
/usr/local/pureftp\_user/nginx-token/ngx\_http\_token\_module.c:148: error:  
‘ngx\_http\_upstream\_conf\_t’ has no member named ‘schema’  
/usr/local/pureftp\_user/nginx-token/ngx\_http\_token\_module.c: In function  
‘ngx\_http\_token\_merge\_loc\_conf’:  
/usr/local/pureftp\_user/nginx-token/ngx\_http\_token\_module.c:358: error:  
‘ngx\_http\_upstream\_conf\_t’ has no member named ‘schema’  
/usr/local/pureftp\_user/nginx-token/ngx\_http\_token\_module.c:358: error:  
‘ngx\_http\_upstream\_conf\_t’ has no member named ‘schema’  
/usr/local/pureftp\_user/nginx-token/ngx\_http\_token\_module.c: In function  
‘ngx\_http\_token\_server’:  
/usr/local/pureftp\_user/nginx-token/ngx\_http\_token\_module.c:374: error:  
‘ngx\_http\_upstream\_conf\_t’ has no member named ‘schema’  
/usr/local/pureftp\_user/nginx-token/ngx\_http\_token\_module.c:390: error:  
‘ngx\_http\_upstream\_conf\_t’ has no member named ‘schema’  
/usr/local/pureftp\_user/nginx-token/ngx\_http\_token\_module.c:391: error:  
‘ngx\_http\_upstream\_conf\_t’ has no member named ‘schema’  
\*\*\* Error code 1

Stop in /usr/local/pureftp\_user/nginx-0.7.65.

Posted at Nginx Forum:

> **[HELP: ngx\_http\_token\_module compile failed.](https://forum.nginx.org/read.php?2,217060,217060#msg-217060)**
>
> gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include -I objs -I src/http -I src/http/modules...

---

<div class="post-metadata">

**Author:** ![jische](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@jische](https://www.ruby-forum.com/u/jische)\
**Post date:** [October 23, 2011, 3:44am UTC](https://www.ruby-forum.com/t/help-ngx-http-token-module-compile-failed/213083/2 "2011-10-23T03:44:53Z")

</div>

The software ,including nginx and the module, are downloaded from

> **[GitHub - roast/nginx-token: A token module for nginx based on memcache.](https://github.com/roast/nginx-token)**
>
> A token module for nginx based on memcache. Contribute to roast/nginx-token development by creating an account on GitHub.

I write a config file and come to the above error while do making… is  
there any suggestion on the next step?  
Thanks.

Posted at Nginx Forum:

> **[Re: HELP: ngx\_http\_token\_module compile failed.](https://forum.nginx.org/read.php?2,217060,217061#msg-217061)**
>
> gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/include -I objs -I src/http -I src/http/modules...

---

<div class="post-metadata">

**Author:** ![jische](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@jische](https://www.ruby-forum.com/u/jische)\
**Post date:** [October 23, 2011, 9:07am UTC](https://www.ruby-forum.com/t/help-ngx-http-token-module-compile-failed/213083/3 "2011-10-23T09:07:37Z")

</div>

# cat config

ngx\_addon\_name=ngx\_http\_token\_module  
HTTP\_MODULES=“$HTTP\_MODULES ngx\_http\_token\_module”  
NGX\_ADDON\_SRCS=“$NGX\_ADDON\_SRCS $ngx\_addon\_dir/ngx\_http\_token\_module.c”  
#CORE\_LIBS=“$CORE\_LIBS -lm”

=============  
the config file is not in place in the downloaded zip file, I wrote one  
as above.

Any one can help on this?

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,217060,217074#msg-217074](http://forum.nginx.org/read.php?2,217060,217074#msg-217074)
