# Nginx make fail (passenger standalone) on Mac Os X 10.6.8

**URL:** <https://www.ruby-forum.com/t/nginx-make-fail-passenger-standalone-on-mac-os-x-10-6-8/209024>\
**Category:** NGINX\
**Created:** [July 3, 2011, 11:20am UTC](https://www.ruby-forum.com/t/nginx-make-fail-passenger-standalone-on-mac-os-x-10-6-8/209024 "2011-07-03T11:20:30Z")\
**Posts on this page:** 1\
**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:** [July 3, 2011, 11:20am UTC](https://www.ruby-forum.com/t/nginx-make-fail-passenger-standalone-on-mac-os-x-10-6-8/209024/1 "2011-07-03T11:20:30Z")

</div>

I’m trying to install passenger standalone, but it keeps failing.

The same error comes when trying to build from source Nginx (I’ve tried  
1.0.0 and 1.0.4).

Snow Leopard 10.6.8  
Xcode 4.1 installed

Error traced:

make -f objs/Makefile  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/nginx.o   
src/core/nginx.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_log.o   
src/core/ngx\_log.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_palloc.o   
src/core/ngx\_palloc.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_array.o   
src/core/ngx\_array.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_list.o   
src/core/ngx\_list.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_hash.o   
src/core/ngx\_hash.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_buf.o   
src/core/ngx\_buf.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_queue.o   
src/core/ngx\_queue.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_output\_chain.o   
src/core/ngx\_output\_chain.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_string.o   
src/core/ngx\_string.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_parse.o   
src/core/ngx\_parse.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_inet.o   
src/core/ngx\_inet.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_file.o   
src/core/ngx\_file.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_crc32.o   
src/core/ngx\_crc32.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_rbtree.o   
src/core/ngx\_rbtree.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_radix\_tree.o   
src/core/ngx\_radix\_tree.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_slab.o   
src/core/ngx\_slab.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_times.o   
src/core/ngx\_times.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_shmtx.o   
src/core/ngx\_shmtx.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_connection.o   
src/core/ngx\_connection.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_cycle.o   
src/core/ngx\_cycle.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_spinlock.o   
src/core/ngx\_spinlock.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_cpuinfo.o   
src/core/ngx\_cpuinfo.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_conf\_file.o   
src/core/ngx\_conf\_file.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_resolver.o   
src/core/ngx\_resolver.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/core/ngx\_open\_file\_cache.o   
src/core/ngx\_open\_file\_cache.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/event/ngx\_event.o   
src/event/ngx\_event.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/event/ngx\_event\_timer.o   
src/event/ngx\_event\_timer.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/event/ngx\_event\_posted.o   
src/event/ngx\_event\_posted.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/event/ngx\_event\_busy\_lock.o   
src/event/ngx\_event\_busy\_lock.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/event/ngx\_event\_accept.o   
src/event/ngx\_event\_accept.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/event/ngx\_event\_connect.o   
src/event/ngx\_event\_connect.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/event/ngx\_event\_pipe.o   
src/event/ngx\_event\_pipe.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/os/unix/ngx\_time.o   
src/os/unix/ngx\_time.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/os/unix/ngx\_errno.o   
src/os/unix/ngx\_errno.c  
gcc -c -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  
/opt/local/include -I objs   
-o objs/src/os/unix/ngx\_alloc.o   
src/os/unix/ngx\_alloc.c  
cc1: warnings being treated as errors  
src/os/unix/ngx\_alloc.c: In function ‘ngx\_memalign’:  
src/os/unix/ngx\_alloc.c:56: warning: implicit declaration of function  
‘posix\_memalign’  
make[1]: \*\*\* [objs/src/os/unix/ngx\_alloc.o] Error 1  
make: \*\*\* [build] Error 2

I have header files mm\_alloc.h in Xcode library. But not luck. Any  
idea?
