# Nginx 1.0.6 perl module build failure

**URL:** <https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666>\
**Category:** NGINX\
**Created:** [September 10, 2011, 3:08am UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666 "2011-09-10T03:08:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [September 10, 2011, 3:08am UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/1 "2011-09-10T03:08:46Z")

</div>

Snow Leopard 10.6.7, Xcode 4.0.1:

$ cd nginx-1.0.6  
$ ./configure --prefix=/usr/local --with-cc-opt=“-I/usr/local/include  
-O2 -Wno-deprecated-declarations” --with-ld-opt=“-L/usr/local/lib”  
–conf-path=/etc/nginx/nginx.conf  
–error-log-path=/var/log/nginx/error.log  
–http-log-path=/var/log/nginx/access.log  
–pid-path=/var/run/nginx/nginx.pid  
–lock-path=/var/run/nginx/nginx.lock  
–http-client-body-temp-path=/var/run/nginx/client\_body\_temp  
–http-proxy-temp-path=/var/run/nginx/proxy\_temp  
–http-fastcgi-temp-path=/var/run/nginx/fastcgi\_temp  
–http-uwsgi-temp-path=/var/run/nginx/uwsgi\_temp --with-http\_dav\_module  
–with-http\_flv\_module --with-mail --with-http\_ssl\_module  
–with-mail\_ssl\_module --with-http\_stub\_status\_module --with-ipv6  
–with-http\_perl\_module --with-perl=/usr/bin/perl  
–with-http\_realip\_module --with-http\_addition\_module  
–with-http\_sub\_module --with-http\_gzip\_static\_module

$ make  
…  
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter  
-Wunused-function -Wunused-variable -Wno-unused-value -Werror -g  
-I/usr/local/include -O2 -Wno-deprecated-declarations -arch x86\_64 -arch  
i386 -arch ppc -g -pipe -fno-common -DPERL\_DARWIN -fno-strict-aliasing  
-I/usr/local/include  
-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -I  
src/core -I src/event -I src/event/modules -I src/os/unix -I  
/opt/local/include -I objs -I src/http -I src/http/modules -I  
src/http/modules/perl   
-o objs/src/http/modules/perl/ngx\_http\_perl\_module.o   
src/http/modules/perl/ngx\_http\_perl\_module.c  
In file included from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE/perl.h:3240:  
error: expected specifier-qualifier-list before ‘bool’  
…

Seems to be a know issue in other contexts.

Posted at Nginx Forum:

> **[nginx 1.0.6 perl module build failure](https://forum.nginx.org/read.php?2,215048,215048#msg-215048)**
>
> Snow Leopard 10.6.7, Xcode 4.0.1: $ cd nginx-1.0.6 $ ./configure --prefix=/usr/local --with-cc-opt="-I/usr/local/include -O2 -Wno-deprecated-declarations" --with-ld-opt="-L/usr/local/lib" --conf-path=/etc/nginx/nginx.conf...

---

<div class="post-metadata">

**Author:** ![frostbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@frostbyte](https://www.ruby-forum.com/u/frostbyte)\
**Post date:** [September 10, 2011, 1:18pm UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/2 "2011-09-10T13:18:08Z")

</div>

Hello!

On Fri, Sep 09, 2011 at 09:08:08PM -0400, frostbyte wrote:

> –http-client-body-temp-path=/var/run/nginx/client\_body\_temp  
> …  
> src/http/modules/perl/ngx\_http\_perl\_module.c  
> In file included from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
> from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
> /System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE/perl.h:3240:  
> error: expected specifier-qualifier-list before ‘bool’  
> …
> 
> Seems to be a know issue in other contexts.

Looks like problem with perl in your environment.

You may try building basic samples from perlembed manpage to see  
what goes wrong, most likely either ccopts as returned by “perl  
-MExtUtils::Embed -e ccopts” are incorrect, or they correspond to  
other C compiler (check “perl -V” output).

Maxim D.

---

<div class="post-metadata">

**Author:** ![frostbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@frostbyte](https://www.ruby-forum.com/u/frostbyte)\
**Post date:** [September 10, 2011, 1:47pm UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/3 "2011-09-10T13:47:13Z")

</div>

On Sat, Sep 10, 2011 at 03:17:24PM +0400, Maxim D. wrote:

> > –error-log-path=/var/log/nginx/error.log  
> > –with-http\_realip\_module --with-http\_addition\_module  
> > src/core -I src/event -I src/event/modules -I src/os/unix -I  
> > Seems to be a know issue in other contexts.
> 
> Looks like problem with perl in your environment.
> 
> You may try building basic samples from perlembed manpage to see  
> what goes wrong, most likely either ccopts as returned by “perl  
> -MExtUtils::Embed -e ccopts” are incorrect, or they correspond to  
> other C compiler (check “perl -V” output).

No, this is known issue with MacOSX system perl.  
This is conflict between “bool” definition included via  
libkern/OSAtomic.h and perl’s CORE/handy.h.  
I do not personaly encounter this since I have perl from macports 🙂

–  
Igor S.

---

<div class="post-metadata">

**Author:** ![frostbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@frostbyte](https://www.ruby-forum.com/u/frostbyte)\
**Post date:** [September 10, 2011, 3:24pm UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/4 "2011-09-10T15:24:53Z")

</div>

Hello!

On Sat, Sep 10, 2011 at 03:46:26PM +0400, Igor S. wrote:

> > > –conf-path=/etc/nginx/nginx.conf  
> > > –with-http\_perl\_module --with-perl=/usr/bin/perl  
> > > -I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -I
> 
> This is conflict between “bool” definition included via  
> libkern/OSAtomic.h and perl’s CORE/handy.h.  
> I do not personaly encounter this since I have perl from macports 🙂

Error message suggests that “bool” is not defined. And looking  
though [1] I don’t see bool defined via libkern/OSAtomic.h.  
OSTypes.h defines “Boolean”, but not “bool”.

While I feel perl’s handy.h is utterly wrong in it’s aproach to  
“bool” (it’s 2011 now, more than 10 years since C99 defined  
stdbool.h!), I still doesn’t see what happens here. Additionally,  
I see Apple hacks handy.h on it’s system perl to include  
stdbool.h[2], and this makes me wonder even more.

Could you please confirm that perlembed sample does actually  
compiles fine with Mac OS X system perl without extra includes  
used?

[1]  
[http://www.opensource.apple.com/source/xnu/xnu-1699.22.81/libkern/libkern/OSAtomic.h](http://www.opensource.apple.com/source/xnu/xnu-1699.22.81/libkern/libkern/OSAtomic.h)  
[2]  
[http://www.opensource.apple.com/source/perl/perl-73/5.10/fix/handy.h.ed](http://www.opensource.apple.com/source/perl/perl-73/5.10/fix/handy.h.ed)

Maxim D.

---

<div class="post-metadata">

**Author:** ![frostbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@frostbyte](https://www.ruby-forum.com/u/frostbyte)\
**Post date:** [September 10, 2011, 4:10pm UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/5 "2011-09-10T16:10:03Z")

</div>

On Sat, Sep 10, 2011 at 05:24:04PM +0400, Maxim D. wrote:

> > > > –http-fastcgi-temp-path=/var/run/nginx/fastcgi\_temp  
> > > > -Wunused-function -Wunused-variable -Wno-unused-value -Werror -g  
> > > > from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
> > > > -MExtUtils::Embed -e ccopts" are incorrect, or they correspond to
> 
> [1]  
> [http://www.opensource.apple.com/source/xnu/xnu-1699.22.81/libkern/libkern/OSAtomic.h](http://www.opensource.apple.com/source/xnu/xnu-1699.22.81/libkern/libkern/OSAtomic.h)  
> [2] [http://www.opensource.apple.com/source/perl/perl-73/5.10/fix/handy.h.ed](http://www.opensource.apple.com/source/perl/perl-73/5.10/fix/handy.h.ed)

It seems last time when I tried to build nginx with MacOSX system perl  
it was Leopard 10.5.x. On Snow Leopard 10.6.8 “#undef bool” in  
src/os/unix/ngx\_atomic is not required, but  
perl -MExtUtils::Embed -e ldopts  
issues settings which do not allow to link nginx:  
-arch x86\_64 -arch i386 -arch ppc -L/usr/local/lib  
-L/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE -lperl  
-ldl -lm -lutil -lc

ld: warning: in objs.gcc/src/core/nginx.o, file was built for  
unsupported file format which is not the architecture being linked  
(i386)

–  
Igor S.

---

<div class="post-metadata">

**Author:** ![frostbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@frostbyte](https://www.ruby-forum.com/u/frostbyte)\
**Post date:** [September 12, 2011, 2:30am UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/6 "2011-09-12T02:30:52Z")

</div>

Same error using perl 5.12 from MacPorts:

$ ./configure --prefix=/usr/local --with-cc-opt=“-I/usr/local/include  
-O2 -Wno-deprecated-declarations” --with-ld-opt=“-L/usr/local/lib”  
–conf-path=/etc/nginx/nginx.conf  
–error-log-path=/var/log/nginx/error.log  
–http-log-path=/var/log/nginx/access.log  
–pid-path=/var/run/nginx/nginx.pid  
–lock-path=/var/run/nginx/nginx.lock  
–http-client-body-temp-path=/var/run/nginx/client\_body\_temp  
–http-proxy-temp-path=/var/run/nginx/proxy\_temp  
–http-fastcgi-temp-path=/var/run/nginx/fastcgi\_temp  
–http-uwsgi-temp-path=/var/run/nginx/uwsgi\_temp --with-http\_dav\_module  
–with-http\_flv\_module --with-mail --with-http\_ssl\_module  
–with-mail\_ssl\_module --with-http\_stub\_status\_module --with-ipv6  
–with-http\_perl\_module --with-perl=/usr/bin/perl  
–with-http\_realip\_module --with-http\_addition\_module  
–with-http\_sub\_module --with-http\_gzip\_static\_module  
–with-perl=/opt/local/bin/perl  
. . .  
checking for perl

- perl version: This is perl 5, version 12, subversion 3 (v5.12.3)  
built for darwin-multi-2level
- perl interpreter multiplicity found  
. . .

$ make  
. . .  
gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter  
-Wunused-function -Wunused-variable -Wno-unused-value -Werror -g  
-I/usr/local/include -O2 -Wno-deprecated-declarations -pipe -O2 -arch  
x86\_64 -fno-common -DPERL\_DARWIN -I/opt/local/include -no-cpp-precomp  
-fno-strict-aliasing -fstack-protector -I/opt/local/include  
-I/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE -I src/core -I  
src/event -I src/event/modules -I src/os/unix -I /opt/local/include -I  
objs -I src/http -I src/http/modules -I src/http/modules/perl   
-o objs/src/http/modules/perl/ngx\_http\_perl\_module.o   
src/http/modules/perl/ngx\_http\_perl\_module.c  
In file included from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE/perl.h:3336: error:  
expected specifier-qualifier-list before ‘bool’  
. . .

Actually I started with the MacPorts nginx 1.0.6 install and then tried  
the tarball (getting the same result).

Frosty

Posted at Nginx Forum:

> **[Re: nginx 1.0.6 perl module build failure](https://forum.nginx.org/read.php?2,215048,215096#msg-215096)**
>
> Snow Leopard 10.6.7, Xcode 4.0.1: $ cd nginx-1.0.6 $ ./configure --prefix=/usr/local --with-cc-opt="-I/usr/local/include -O2 -Wno-deprecated-declarations" --with-ld-opt="-L/usr/local/lib" --conf-path=/etc/nginx/nginx.conf...

---

<div class="post-metadata">

**Author:** ![frostbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@frostbyte](https://www.ruby-forum.com/u/frostbyte)\
**Post date:** [September 12, 2011, 10:39am UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/7 "2011-09-12T10:39:28Z")

</div>

Hello!

On Sun, Sep 11, 2011 at 08:30:15PM -0400, frostbyte wrote:

> –http-proxy-temp-path=/var/run/nginx/proxy\_temp
> 
> - perl version: This is perl 5, version 12, subversion 3 (v5.12.3)  
> -fno-strict-aliasing -fstack-protector -I/opt/local/include
> 
> Actually I started with the MacPorts nginx 1.0.6 install and then tried  
> the tarball (getting the same result).

It looks like macports also patch handy.h in perl 5.12 and perl  
5.14 to use stdbool.h [1][2] since about 3 months. (The perl 5.8  
from macports still uses perl’s native handy.h.)

Please try the following patch:

diff --git a/src/os/unix/ngx\_atomic.h b/src/os/unix/ngx\_atomic.h  
— a/src/os/unix/ngx\_atomic.h  
+++ b/src/os/unix/ngx\_atomic.h  
@@ -46,9 +46,6 @@ typedef volatile ngx\_atomic\_uint\_t ngx\_

#include \<libkern/OSAtomic.h\>

## -/\* “bool” conflicts with perl’s CORE/handy.h \*/ -#undef bool

#define NGX\_HAVE\_ATOMIC\_OPS 1

[1]  
[https://trac.macports.org/browser/trunk/dports/lang/perl5.12/files/patch-handy.h.stdbool.diff](https://trac.macports.org/browser/trunk/dports/lang/perl5.12/files/patch-handy.h.stdbool.diff)  
[2]  
[https://trac.macports.org/browser/trunk/dports/lang/perl5.14/files/patch-handy.h.stdbool.diff](https://trac.macports.org/browser/trunk/dports/lang/perl5.14/files/patch-handy.h.stdbool.diff)

Maxim D.

---

<div class="post-metadata">

**Author:** ![frostbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@frostbyte](https://www.ruby-forum.com/u/frostbyte)\
**Post date:** [September 12, 2011, 2:32am UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/8 "2011-09-12T02:32:43Z")

</div>

perl5.12 via MacPorts:

$ perl -MExtUtils::Embed -e ldopts  
-L/opt/local/lib -arch x86\_64 -fstack-protector  
-L/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE -lperl -ldl -lm  
-lutil -lc

$ perl -V  
Summary of my perl5 (revision 5 version 12 subversion 3) configuration:

Platform:  
osname=darwin, osvers=10.8.0, archname=darwin-multi-2level  
uname=‘darwin [beta.macosforge.org](http://beta.macosforge.org) 10.8.0 darwin kernel version  
10.8.0: tue jun 7 16:33:36 pdt 2011; root:xnu-1504.15.3~1release\_i386  
i386 ’  
config\_args=’-D inc\_version\_list=5.12.2/darwin-multi-2level 5.12.2  
5.12.1/darwin-multi-2level 5.12.1 5.12.0/darwin-multi-2level 5.12.0 -des  
-Dprefix=/opt/local -Dscriptdir=/opt/local/bin  
-Dcppflags=-I/opt/local/include -Dccflags=-pipe -O2 -arch x86\_64  
-Dldflags=-L/opt/local/lib -arch x86\_64 -Dvendorprefix=/opt/local  
-Dusemultiplicity=y -D cc=/usr/bin/gcc-4.2 -D ld=/usr/bin/gcc-4.2 -D  
man1ext=1pm -D man3ext=3pm -D man1dir=/opt/local/share/man/man1p -D  
man3dir=/opt/local/share/man/man3p -D  
siteman1dir=/opt/local/share/man/man1 -D  
siteman3dir=/opt/local/share/man/man3 -D  
vendorman1dir=/opt/local/share/man/man1 -D  
vendorman3dir=/opt/local/share/man/man3 -D pager=/usr/bin/less -sR’  
hint=recommended, useposix=true, d\_sigaction=define  
useithreads=undef, usemultiplicity=define  
useperlio=define, d\_sfio=undef, uselargefiles=define,  
usesocks=undef  
use64bitint=define, use64bitall=define, uselongdouble=undef  
usemymalloc=n, bincompat5005=undef  
Compiler:  
cc=‘/usr/bin/gcc-4.2’, ccflags =‘-pipe -O2 -arch x86\_64 -fno-common  
-DPERL\_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing  
-fstack-protector -I/opt/local/include’,  
optimize=‘-O3’,  
cppflags=‘-I/opt/local/include -no-cpp-precomp -pipe -O2 -arch  
x86\_64 -fno-common -DPERL\_DARWIN -I/opt/local/include -no-cpp-precomp  
-fno-strict-aliasing -fstack-protector -I/opt/local/include’  
ccversion=‘’, gccversion=‘4.2.1 (Apple Inc. build 5666) (dot 3)’,  
gccosandvers=‘’  
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678  
d\_longlong=define, longlongsize=8, d\_longdbl=define, longdblsize=16  
ivtype=‘long’, ivsize=8, nvtype=‘double’, nvsize=8, Off\_t=‘off\_t’,  
lseeksize=8  
alignbytes=8, prototype=define  
Linker and Libraries:  
ld=‘env MACOSX\_DEPLOYMENT\_TARGET=10.6 /usr/bin/gcc-4.2’, ldflags  
=‘-L/opt/local/lib -arch x86\_64 -fstack-protector’  
libpth=/opt/local/lib /usr/lib  
libs=-lgdbm -ldbm -ldl -lm -lutil -lc  
perllibs=-ldl -lm -lutil -lc  
libc=, so=dylib, useshrplib=false, libperl=libperl.a  
gnulibc\_version=‘’  
Dynamic Linking:  
dlsrc=dl\_dlopen.xs, dlext=bundle, d\_dlsymun=undef, ccdlflags=’ ’  
cccdlflags=’ ‘, lddlflags=’-L/opt/local/lib -arch x86\_64 -bundle  
-undefined dynamic\_lookup -fstack-protector’

Characteristics of this binary (from libperl):  
Compile-time options: MULTIPLICITY PERL\_DONT\_CREATE\_GVSV  
PERL\_IMPLICIT\_CONTEXT PERL\_MALLOC\_WRAP  
USE\_64\_BIT\_ALL  
USE\_64\_BIT\_INT USE\_LARGE\_FILES USE\_PERLIO  
USE\_PERL\_ATOF  
Built under darwin  
Compiled at Aug 29 2011 07:18:38  
@INC:  
/opt/local/lib/perl5/site\_perl/5.12.3/darwin-multi-2level  
/opt/local/lib/perl5/site\_perl/5.12.3  
/opt/local/lib/perl5/vendor\_perl/5.12.3/darwin-multi-2level  
/opt/local/lib/perl5/vendor\_perl/5.12.3  
/opt/local/lib/perl5/5.12.3/darwin-multi-2level  
/opt/local/lib/perl5/5.12.3  
/opt/local/lib/perl5/site\_perl  
/opt/local/lib/perl5/vendor\_perl  
.

Posted at Nginx Forum:

> **[Re: nginx 1.0.6 perl module build failure](https://forum.nginx.org/read.php?2,215048,215097#msg-215097)**
>
> Snow Leopard 10.6.7, Xcode 4.0.1: $ cd nginx-1.0.6 $ ./configure --prefix=/usr/local --with-cc-opt="-I/usr/local/include -O2 -Wno-deprecated-declarations" --with-ld-opt="-L/usr/local/lib" --conf-path=/etc/nginx/nginx.conf...

---

<div class="post-metadata">

**Author:** ![frostbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@frostbyte](https://www.ruby-forum.com/u/frostbyte)\
**Post date:** [September 12, 2011, 1:16pm UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/9 "2011-09-12T13:16:43Z")

</div>

Perfect. Thanks!

Posted at Nginx Forum:

> **[Re: nginx 1.0.6 perl module build failure](https://forum.nginx.org/read.php?2,215048,215107#msg-215107)**
>
> Snow Leopard 10.6.7, Xcode 4.0.1: $ cd nginx-1.0.6 $ ./configure --prefix=/usr/local --with-cc-opt="-I/usr/local/include -O2 -Wno-deprecated-declarations" --with-ld-opt="-L/usr/local/lib" --conf-path=/etc/nginx/nginx.conf...

---

<div class="post-metadata">

**Author:** ![frostbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@frostbyte](https://www.ruby-forum.com/u/frostbyte)\
**Post date:** [September 18, 2011, 4:11pm UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/10 "2011-09-18T16:11:45Z")

</div>

Hello!

On Sun, Sep 18, 2011 at 09:50:33AM -0400, SergeyQw wrote:

> Добрый день. Та же проблема.

This is English mailing list, please don’t write in Russian here.

> Mac OS X Lion.  
> Только сегодня сутра поставлен perl 5.12 из  
> MacPorts.

[…]

> ./configure   
> –sbin-path=/usr/local/nginx/nginx   
> –conf-path=/usr/local/nginx/nginx.conf   
> –error-log-path=/var/log/nginx/error.log   
> –http-log-path=/var/log/nginx/access.log   
> –pid-path=/var/run/nginx.pid   
> –lock-path=/var/lock/nginx.lock   
> –with-http\_perl\_module --with-perl=/usr/bin/perl \

You are building with system perl, not MacPorts one. Make sure to  
use path to correct perl binary in --with-perl configure argument.

> error: expected specifier-qualifier-list before ‘bool’  
> […]

> Я просто не доконца понял как всётаки  
> разрешили эту проблему выше.

1. You need to build with perl from MacPorts.

2. With Perl 5.8 and 5.10 from MacPorts it builds fine out of the  
box. For Perl 5.12 and 5.14 (from MacPorts) you need patch posted  
earlier in this thread.

Maxim D.

---

<div class="post-metadata">

**Author:** ![frostbyte](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e47774/32.png) [@frostbyte](https://www.ruby-forum.com/u/frostbyte)\
**Post date:** [September 18, 2011, 3:51pm UTC](https://www.ruby-forum.com/t/nginx-1-0-6-perl-module-build-failure/211666/11 "2011-09-18T15:51:20Z")

</div>

Добрый день. Та же проблема.

Mac OS X Lion.  
Только сегодня сутра поставлен perl 5.12 из  
MacPorts.

Summary of my perl5 (revision 5 version 12 subversion 3) configuration:

Platform:  
osname=darwin, osvers=11.1.0, archname=darwin-multi-2level  
uname=‘darwin macbook-pro-sergey.local 11.1.0 darwin kernel version  
11.1.0: tue jul 26 16:07:11 pdt 2011;  
root:xnu-1699.22.81~1release\_x86\_64 x86\_64 ’  
config\_args=’-D inc\_version\_list=5.12.2/darwin-multi-2level 5.12.2  
5.12.1/darwin-multi-2level 5.12.1 5.12.0/darwin-multi-2level 5.12.0 -des  
-Dprefix=/opt/local -Dscriptdir=/opt/local/bin  
-Dcppflags=-I/opt/local/include -Dccflags=-pipe -O2 -arch x86\_64  
-Dldflags=-L/opt/local/lib -arch x86\_64 -Dvendorprefix=/opt/local  
-Dusemultiplicity=y -D cc=/Developer/usr/bin/llvm-gcc-4.2 -D  
ld=/Developer/usr/bin/llvm-gcc-4.2 -D man1ext=1pm -D man3ext=3pm -D  
man1dir=/opt/local/share/man/man1p -D man3dir=/opt/local/share/man/man3p  
-D siteman1dir=/opt/local/share/man/man1 -D  
siteman3dir=/opt/local/share/man/man3 -D  
vendorman1dir=/opt/local/share/man/man1 -D  
vendorman3dir=/opt/local/share/man/man3 -D pager=/usr/bin/less -sR’  
hint=recommended, useposix=true, d\_sigaction=define  
useithreads=undef, usemultiplicity=define  
useperlio=define, d\_sfio=undef, uselargefiles=define,  
usesocks=undef  
use64bitint=define, use64bitall=define, uselongdouble=undef  
usemymalloc=n, bincompat5005=undef  
Compiler:  
cc=‘/Developer/usr/bin/llvm-gcc-4.2’, ccflags =‘-pipe -O2 -arch  
x86\_64 -fno-common -DPERL\_DARWIN -I/opt/local/include -no-cpp-precomp  
-fno-strict-aliasing -fstack-protector -I/opt/local/include’,  
optimize=‘-O3’,  
cppflags=‘-I/opt/local/include -no-cpp-precomp -pipe -O2 -arch  
x86\_64 -fno-common -DPERL\_DARWIN -I/opt/local/include -no-cpp-precomp  
-fno-strict-aliasing -fstack-protector -I/opt/local/include’  
ccversion=‘’, gccversion=‘4.2.1 (Based on Apple Inc. build 5658)  
(LLVM build 2335.15.00)’, gccosandvers=‘’  
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678  
d\_longlong=define, longlongsize=8, d\_longdbl=define, longdblsize=16  
ivtype=‘long’, ivsize=8, nvtype=‘double’, nvsize=8, Off\_t=‘off\_t’,  
lseeksize=8  
alignbytes=8, prototype=define  
Linker and Libraries:  
ld=‘env MACOSX\_DEPLOYMENT\_TARGET=10.3  
/Developer/usr/bin/llvm-gcc-4.2’, ldflags =‘-L/opt/local/lib -arch  
x86\_64 -fstack-protector’  
libpth=/opt/local/lib /usr/lib  
libs=-lgdbm -ldbm -ldl -lm -lutil -lc  
perllibs=-ldl -lm -lutil -lc  
libc=, so=dylib, useshrplib=false, libperl=libperl.a  
gnulibc\_version=‘’  
Dynamic Linking:  
dlsrc=dl\_dlopen.xs, dlext=bundle, d\_dlsymun=undef, ccdlflags=’ ’  
cccdlflags=’ ‘, lddlflags=’-L/opt/local/lib -arch x86\_64 -bundle  
-undefined dynamic\_lookup -fstack-protector’

Characteristics of this binary (from libperl):  
Compile-time options: MULTIPLICITY PERL\_DONT\_CREATE\_GVSV  
PERL\_IMPLICIT\_CONTEXT PERL\_MALLOC\_WRAP  
USE\_64\_BIT\_ALL  
USE\_64\_BIT\_INT USE\_LARGE\_FILES USE\_PERLIO  
USE\_PERL\_ATOF  
Built under darwin  
Compiled at Sep 18 2011 13:11:44  
@INC:  
/opt/local/lib/perl5/site\_perl/5.12.3/darwin-multi-2level  
/opt/local/lib/perl5/site\_perl/5.12.3  
/opt/local/lib/perl5/vendor\_perl/5.12.3/darwin-multi-2level  
/opt/local/lib/perl5/vendor\_perl/5.12.3  
/opt/local/lib/perl5/5.12.3/darwin-multi-2level  
/opt/local/lib/perl5/5.12.3  
/opt/local/lib/perl5/site\_perl  
/opt/local/lib/perl5/vendor\_perl

* * *

Пробовал nginx 1.0.6 и nginx 1.1.3 одинаково не  
собираются с perl модулем.  
Без модуля всё отлично.

./configure   
–sbin-path=/usr/local/nginx/nginx   
–conf-path=/usr/local/nginx/nginx.conf   
–error-log-path=/var/log/nginx/error.log   
–http-log-path=/var/log/nginx/access.log   
–pid-path=/var/run/nginx.pid   
–lock-path=/var/lock/nginx.lock   
–with-http\_perl\_module --with-perl=/usr/bin/perl   
–with-http\_ssl\_module   
–with-pcre=…/pcre-8.12   
–with-zlib=…/zlib-1.2.5

make

In file included from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:3336:  
error: expected specifier-qualifier-list before ‘bool’  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:3419,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/regexp.h:612:  
error: expected specifier-qualifier-list before ‘bool’  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/regexp.h:640:  
error: expected specifier-qualifier-list before ‘bool’  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/regexp.h:700:  
error: expected specifier-qualifier-list before ‘bool’  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:3428,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/cop.h:35:  
error: expected specifier-qualifier-list before ‘bool’  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:3449,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/parser.h:47:  
error: expected specifier-qualifier-list before ‘bool’  
In file included from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4196:  
error: expected declaration specifiers or ‘…’ before ‘_’  
token  
cc1: warnings being treated as errors  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4196:  
warning: type defaults to ‘int’ in declaration of ‘bool’  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4196:  
error: ‘bool’ declared as function returning a function  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4913,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:168:  
error: field ‘Iutf8locale’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:169:  
error: field ‘Irehash\_seed\_set’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:205:  
error: field ‘Icolorset’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:206:  
error: field ‘Idirty’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:209:  
error: field ‘Itainted’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:233:  
error: field ‘Iminus\_c’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:234:  
error: field ‘Iminus\_n’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:235:  
error: field ‘Iminus\_p’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:236:  
error: field ‘Iminus\_l’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:237:  
error: field ‘Iminus\_a’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:238:  
error: field ‘Iminus\_F’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:239:  
error: field ‘Idoswitches’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:240:  
error: field ‘Iminus\_E’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:252:  
error: field ‘Idoextract’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:253:  
error: field ‘Isawampersand’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:254:  
error: field ‘Iunsafe’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:256:  
error: field ‘Isrand\_called’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:258:  
error: field ‘Itainting’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:377:  
error: field ‘Icv\_has\_eval’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:378:  
error: field ‘Itaint\_warn’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:421:  
error: field ‘Iin\_clean\_objs’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:422:  
error: field ‘Iin\_clean\_all’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:423:  
error: field ‘Inomemok’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:424:  
error: field ‘Isavebegin’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:494:  
error: field ‘Icollation\_standard’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:510:  
error: field ‘Inumeric\_standard’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:512:  
error: field ‘Inumeric\_local’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:558:  
error: field ‘Ipad\_reset\_pending’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:710:  
error: expected specifier-qualifier-list before  
‘destroyable\_proc\_t’  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4946,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:63:  
error: ‘Perl\_doing\_taint’ declared as function returning a function  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4946,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:176:  
error: ‘Perl\_av\_exists’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:299:  
error: ‘Perl\_cando’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:544:  
error: ‘Perl\_do\_aexec5’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:559:  
error: ‘Perl\_do\_close’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:561:  
error: ‘Perl\_do\_eof’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:600:  
error: ‘Perl\_do\_exec3’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:669:  
error: ‘Perl\_do\_open9’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:675:  
error: ‘Perl\_do\_openn’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:680:  
error: ‘Perl\_do\_print’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:692:  
error: ‘Perl\_do\_seek’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1142:  
error: ‘Perl\_io\_close’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1166:  
error: ‘Perl\_is\_uni\_alnum’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1170:  
error: ‘Perl\_is\_uni\_idfirst’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1174:  
error: ‘Perl\_is\_uni\_alpha’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1178:  
error: ‘Perl\_is\_uni\_ascii’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1182:  
error: ‘Perl\_is\_uni\_space’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1186:  
error: ‘Perl\_is\_uni\_cntrl’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1190:  
error: ‘Perl\_is\_uni\_graph’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1194:  
error: ‘Perl\_is\_uni\_digit’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1198:  
error: ‘Perl\_is\_uni\_upper’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1202:  
error: ‘Perl\_is\_uni\_lower’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1206:  
error: ‘Perl\_is\_uni\_print’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1210:  
error: ‘Perl\_is\_uni\_punct’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1214:  
error: ‘Perl\_is\_uni\_xdigit’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1242:  
error: ‘Perl\_is\_uni\_alnum\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1246:  
error: ‘Perl\_is\_uni\_idfirst\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1250:  
error: ‘Perl\_is\_uni\_alpha\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1254:  
error: ‘Perl\_is\_uni\_ascii\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1258:  
error: ‘Perl\_is\_uni\_space\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1262:  
error: ‘Perl\_is\_uni\_cntrl\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1266:  
error: ‘Perl\_is\_uni\_graph\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1270:  
error: ‘Perl\_is\_uni\_digit\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1274:  
error: ‘Perl\_is\_uni\_upper\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1278:  
error: ‘Perl\_is\_uni\_lower\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1282:  
error: ‘Perl\_is\_uni\_print\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1286:  
error: ‘Perl\_is\_uni\_punct\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1290:  
error: ‘Perl\_is\_uni\_xdigit\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1293:  
error: ‘Perl\_is\_ascii\_string’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1303:  
error: ‘Perl\_is\_utf8\_string’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1313:  
error: ‘Perl\_is\_utf8\_string\_loclen’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1319:  
error: ‘Perl\_is\_utf8\_alnum’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1325:  
error: ‘Perl\_is\_utf8\_idfirst’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1331:  
error: ‘Perl\_is\_utf8\_idcont’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1337:  
error: ‘Perl\_is\_utf8\_alpha’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1343:  
error: ‘Perl\_is\_utf8\_ascii’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1349:  
error: ‘Perl\_is\_utf8\_space’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1355:  
error: ‘Perl\_is\_utf8\_perl\_space’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1361:  
error: ‘Perl\_is\_utf8\_perl\_word’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1367:  
error: ‘Perl\_is\_utf8\_cntrl’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1373:  
error: ‘Perl\_is\_utf8\_digit’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1379:  
error: ‘Perl\_is\_utf8\_posix\_digit’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1385:  
error: ‘Perl\_is\_utf8\_graph’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1391:  
error: ‘Perl\_is\_utf8\_upper’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1397:  
error: ‘Perl\_is\_utf8\_lower’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1403:  
error: ‘Perl\_is\_utf8\_print’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1409:  
error: ‘Perl\_is\_utf8\_punct’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1415:  
error: ‘Perl\_is\_utf8\_xdigit’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1421:  
error: ‘Perl\_is\_utf8\_mark’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1427:  
error: ‘Perl\_is\_utf8\_X\_begin’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1433:  
error: ‘Perl\_is\_utf8\_X\_extend’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1439:  
error: ‘Perl\_is\_utf8\_X\_prepend’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1445:  
error: ‘Perl\_is\_utf8\_X\_non\_hangul’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1451:  
error: ‘Perl\_is\_utf8\_X\_L’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1457:  
error: ‘Perl\_is\_utf8\_X\_LV’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1463:  
error: ‘Perl\_is\_utf8\_X\_LVT’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1469:  
error: ‘Perl\_is\_utf8\_X\_LV\_LVT\_V’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1475:  
error: ‘Perl\_is\_utf8\_X\_T’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1481:  
error: ‘Perl\_is\_utf8\_X\_V’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1511:  
error: ‘Perl\_lex\_bufutf8’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1538:  
error: ‘Perl\_lex\_next\_chunk’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1606:  
error: ‘Perl\_grok\_numeric\_radix’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:2410:  
error: ‘Perl\_vverify’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:2750:  
error: ‘Perl\_reg\_named\_buff\_exists’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:3135:  
error: ‘Perl\_sv\_2bool’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:3310:  
error: ‘Perl\_sv\_derived\_from’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:3317:  
error: ‘Perl\_sv\_does’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:3421:  
error: ‘Perl\_sv\_cat\_decode’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:3524:  
error: ‘Perl\_sv\_tainted’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:4132:  
error: ‘Perl\_sv\_utf8\_downgrade’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:4142:  
error: ‘Perl\_sv\_utf8\_decode’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:4331:  
error: ‘Perl\_sv\_destroyable’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:6496:  
error: ‘Perl\_is\_gv\_magical\_sv’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:6504:  
error: ‘Perl\_stashpv\_hvname\_match’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:6523:  
error: ‘Perl\_ckwarn’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:6524:  
error: ‘Perl\_ckwarn\_d’ declared as function returning a function  
In file included from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:3336:  
error: expected specifier-qualifier-list before ‘bool’  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:3419,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/regexp.h:612:  
error: expected specifier-qualifier-list before ‘bool’  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/regexp.h:640:  
error: expected specifier-qualifier-list before ‘bool’  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/regexp.h:700:  
error: expected specifier-qualifier-list before ‘bool’  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:3428,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/cop.h:35:  
error: expected specifier-qualifier-list before ‘bool’  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:3449,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/parser.h:47:  
error: expected specifier-qualifier-list before ‘bool’  
In file included from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4196:  
error: expected declaration specifiers or ‘…’ before ‘_’  
token  
cc1: warnings being treated as errors  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4196:  
warning: type defaults to ‘int’ in declaration of ‘bool’  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4196:  
error: ‘bool’ declared as function returning a function  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4913,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:168:  
error: field ‘Iutf8locale’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:169:  
error: field ‘Irehash\_seed\_set’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:205:  
error: field ‘Icolorset’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:206:  
error: field ‘Idirty’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:209:  
error: field ‘Itainted’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:233:  
error: field ‘Iminus\_c’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:234:  
error: field ‘Iminus\_n’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:235:  
error: field ‘Iminus\_p’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:236:  
error: field ‘Iminus\_l’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:237:  
error: field ‘Iminus\_a’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:238:  
error: field ‘Iminus\_F’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:239:  
error: field ‘Idoswitches’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:240:  
error: field ‘Iminus\_E’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:252:  
error: field ‘Idoextract’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:253:  
error: field ‘Isawampersand’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:254:  
error: field ‘Iunsafe’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:256:  
error: field ‘Isrand\_called’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:258:  
error: field ‘Itainting’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:377:  
error: field ‘Icv\_has\_eval’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:378:  
error: field ‘Itaint\_warn’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:421:  
error: field ‘Iin\_clean\_objs’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:422:  
error: field ‘Iin\_clean\_all’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:423:  
error: field ‘Inomemok’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:424:  
error: field ‘Isavebegin’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:494:  
error: field ‘Icollation\_standard’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:510:  
error: field ‘Inumeric\_standard’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:512:  
error: field ‘Inumeric\_local’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:558:  
error: field ‘Ipad\_reset\_pending’ declared as a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/intrpvar.h:710:  
error: expected specifier-qualifier-list before  
‘destroyable\_proc\_t’  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4946,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:63:  
error: ‘Perl\_doing\_taint’ declared as function returning a function  
In file included from  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:4946,  
from src/http/modules/perl/ngx\_http\_perl\_module.h:17,  
from src/http/modules/perl/ngx\_http\_perl\_module.c:10:  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:176:  
error: ‘Perl\_av\_exists’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:299:  
error: ‘Perl\_cando’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:544:  
error: ‘Perl\_do\_aexec5’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:559:  
error: ‘Perl\_do\_close’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:561:  
error: ‘Perl\_do\_eof’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:600:  
error: ‘Perl\_do\_exec3’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:669:  
error: ‘Perl\_do\_open9’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:675:  
error: ‘Perl\_do\_openn’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:680:  
error: ‘Perl\_do\_print’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:692:  
error: ‘Perl\_do\_seek’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1142:  
error: ‘Perl\_io\_close’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1166:  
error: ‘Perl\_is\_uni\_alnum’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1170:  
error: ‘Perl\_is\_uni\_idfirst’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1174:  
error: ‘Perl\_is\_uni\_alpha’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1178:  
error: ‘Perl\_is\_uni\_ascii’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1182:  
error: ‘Perl\_is\_uni\_space’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1186:  
error: ‘Perl\_is\_uni\_cntrl’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1190:  
error: ‘Perl\_is\_uni\_graph’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1194:  
error: ‘Perl\_is\_uni\_digit’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1198:  
error: ‘Perl\_is\_uni\_upper’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1202:  
error: ‘Perl\_is\_uni\_lower’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1206:  
error: ‘Perl\_is\_uni\_print’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1210:  
error: ‘Perl\_is\_uni\_punct’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1214:  
error: ‘Perl\_is\_uni\_xdigit’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1242:  
error: ‘Perl\_is\_uni\_alnum\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1246:  
error: ‘Perl\_is\_uni\_idfirst\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1250:  
error: ‘Perl\_is\_uni\_alpha\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1254:  
error: ‘Perl\_is\_uni\_ascii\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1258:  
error: ‘Perl\_is\_uni\_space\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1262:  
error: ‘Perl\_is\_uni\_cntrl\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1266:  
error: ‘Perl\_is\_uni\_graph\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1270:  
error: ‘Perl\_is\_uni\_digit\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1274:  
error: ‘Perl\_is\_uni\_upper\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1278:  
error: ‘Perl\_is\_uni\_lower\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1282:  
error: ‘Perl\_is\_uni\_print\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1286:  
error: ‘Perl\_is\_uni\_punct\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1290:  
error: ‘Perl\_is\_uni\_xdigit\_lc’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1293:  
error: ‘Perl\_is\_ascii\_string’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1303:  
error: ‘Perl\_is\_utf8\_string’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1313:  
error: ‘Perl\_is\_utf8\_string\_loclen’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1319:  
error: ‘Perl\_is\_utf8\_alnum’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1325:  
error: ‘Perl\_is\_utf8\_idfirst’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1331:  
error: ‘Perl\_is\_utf8\_idcont’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1337:  
error: ‘Perl\_is\_utf8\_alpha’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1343:  
error: ‘Perl\_is\_utf8\_ascii’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1349:  
error: ‘Perl\_is\_utf8\_space’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1355:  
error: ‘Perl\_is\_utf8\_perl\_space’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1361:  
error: ‘Perl\_is\_utf8\_perl\_word’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1367:  
error: ‘Perl\_is\_utf8\_cntrl’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1373:  
error: ‘Perl\_is\_utf8\_digit’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1379:  
error: ‘Perl\_is\_utf8\_posix\_digit’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1385:  
error: ‘Perl\_is\_utf8\_graph’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1391:  
error: ‘Perl\_is\_utf8\_upper’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1397:  
error: ‘Perl\_is\_utf8\_lower’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1403:  
error: ‘Perl\_is\_utf8\_print’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1409:  
error: ‘Perl\_is\_utf8\_punct’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1415:  
error: ‘Perl\_is\_utf8\_xdigit’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1421:  
error: ‘Perl\_is\_utf8\_mark’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1427:  
error: ‘Perl\_is\_utf8\_X\_begin’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1433:  
error: ‘Perl\_is\_utf8\_X\_extend’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1439:  
error: ‘Perl\_is\_utf8\_X\_prepend’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1445:  
error: ‘Perl\_is\_utf8\_X\_non\_hangul’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1451:  
error: ‘Perl\_is\_utf8\_X\_L’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1457:  
error: ‘Perl\_is\_utf8\_X\_LV’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1463:  
error: ‘Perl\_is\_utf8\_X\_LVT’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1469:  
error: ‘Perl\_is\_utf8\_X\_LV\_LVT\_V’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1475:  
error: ‘Perl\_is\_utf8\_X\_T’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1481:  
error: ‘Perl\_is\_utf8\_X\_V’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1511:  
error: ‘Perl\_lex\_bufutf8’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1538:  
error: ‘Perl\_lex\_next\_chunk’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:1606:  
error: ‘Perl\_grok\_numeric\_radix’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:2410:  
error: ‘Perl\_vverify’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:2750:  
error: ‘Perl\_reg\_named\_buff\_exists’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:3135:  
error: ‘Perl\_sv\_2bool’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:3310:  
error: ‘Perl\_sv\_derived\_from’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:3317:  
error: ‘Perl\_sv\_does’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:3421:  
error: ‘Perl\_sv\_cat\_decode’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:3524:  
error: ‘Perl\_sv\_tainted’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:4132:  
error: ‘Perl\_sv\_utf8\_downgrade’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:4142:  
error: ‘Perl\_sv\_utf8\_decode’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:4331:  
error: ‘Perl\_sv\_destroyable’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:6496:  
error: ‘Perl\_is\_gv\_magical\_sv’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:6504:  
error: ‘Perl\_stashpv\_hvname\_match’ declared as function returning a  
function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:6523:  
error: ‘Perl\_ckwarn’ declared as function returning a function  
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/proto.h:6524:  
error: ‘Perl\_ckwarn\_d’ declared as function returning a function

Я просто не доконца понял как всётаки  
разрешили эту проблему выше.

Posted at Nginx Forum:

> **[Re: nginx 1.0.6 perl module build failure](https://forum.nginx.org/read.php?2,215048,215355#msg-215355)**
>
> Snow Leopard 10.6.7, Xcode 4.0.1: $ cd nginx-1.0.6 $ ./configure --prefix=/usr/local --with-cc-opt="-I/usr/local/include -O2 -Wno-deprecated-declarations" --with-ld-opt="-L/usr/local/lib" --conf-path=/etc/nginx/nginx.conf...
