nginx with --with-http_perl_module compilation problems

gduarte nginx-forum at
Fri Nov 30 16:59:17 UTC 2012

Hello people,
yesterday I started trying to compile nginx with http_perl_module, but, at
the end of the compilation, the linkeditor gets confused about the
archtecture it's being linked. I'm using Mac OS/X 10.6.8. Here is part of
the output I get from terminal:

gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g
-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 ../pcre-8.31 -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 \
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler
(/usr/bin/../libexec/gcc/darwin/ppc/as or
/usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
lipo: can't open input file:
/var/folders/QZ/QZCif6epHb85Dwl9qHtI9E+++TM/-Tmp-//ccbScbid.out (No such
file or directory)
make[1]: *** [objs/src/http/modules/perl/ngx_http_perl_module.o] Error 2
make: *** [build] Error 2

Someone have seem this previously? It seems it's a problem with the ppc
linkedition, but I don't know why it is trying to link against ppc arch...
Any advice is welcome :)

PS: without the perl module, the compilation is clean...

Gabriel Duarte

Posted at Nginx Forum:,233440,233440#msg-233440

More information about the nginx mailing list