nginx with --with-http_perl_module compilation problems
Sergey A. Osokin
osa at FreeBSD.org.ru
Fri Nov 30 17:13:13 UTC 2012
Hi Gabriel,
it looks like the problem because of your perl.
Could you try different perl (modern version 5.16.2), compiled without ppc arch.
On Fri, Nov 30, 2012 at 11:59:17AM -0500, gduarte wrote:
> 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 \
> src/http/modules/perl/ngx_http_perl_module.c
> /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
> 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...
--
Sergey A. Osokin
osa at FreeBSD.org
More information about the nginx
mailing list