Welcome! Log In Create A New Profile

Advanced

Re: Compilation of Nginx on Solris 10 as 64bit

October 15, 2009 06:42AM
I have also had this problem on Solaris 10 and SunCC.

The problem is that nginx's configure creates a broken objbs/Makefile when your own CFLAGS defined in your environment.

If you look at objs/Makefile after you've run configure without CFLAGS set, you will see in there
CFLAGS = -fast -xipo -errwarn=%all -g. Until the configure is fixed, I guess you could just edit that CFLAGS to what you want in the Makefile after running configure and before running your gmake.

Igor - The problem that the environment CFLAGS causes to the objs/MakeFile is illustrated in the following diff (Makefile generated with environment CFLAGS set is on the left, Makefile generated without environment CFLAGS is on the right)...

diff CFLAGSsetMakefile CFLAGSnotsetMakefile
3c3
< CFLAGS = -m32
---
> CFLAGS = -fast -xipo -errwarn=%all -g
293c293,294
< -lsocket -lnsl -lsendfile -lmd -lz
---
> -lsocket -lnsl -lsendfile -lmd -lz \
> -fast -xipo
301c302
< objs/ngx_modules.c
---
> objs/ngx_modules.c src/os/unix/ngx_sunpro_x86.il
308c309
< src/core/nginx.c
---
> src/core/nginx.c src/os/unix/ngx_sunpro_x86.il
315c316
< src/core/ngx_log.c
---
> src/core/ngx_log.c src/os/unix/ngx_sunpro_x86.il
322c323
< src/core/ngx_palloc.c
---
> src/core/ngx_palloc.c src/os/unix/ngx_sunpro_x86.il
329c330
< src/core/ngx_array.c
---
> src/core/ngx_array.c src/os/unix/ngx_sunpro_x86.il
336c337
< src/core/ngx_list.c

etc... You see the problem :)
Subject Author Posted

Compilation of Nginx on Solris 10 as 64bit

arin October 06, 2009 03:40PM

Re: Compilation of Nginx on Solris 10 as 64bit

edogawaconan October 06, 2009 10:32PM

Re: Compilation of Nginx on Solris 10 as 64bit

arin October 07, 2009 03:38PM

Re: Compilation of Nginx on Solris 10 as 64bit

Dustin Marquess October 07, 2009 06:00PM

Re: Compilation of Nginx on Solris 10 as 64bit

W-Mark Kubacki October 08, 2009 10:52AM

Re: Compilation of Nginx on Solris 10 as 64bit

Igor Sysoev October 08, 2009 11:42AM

Re: Compilation of Nginx on Solris 10 as 64bit

wega3k October 15, 2009 06:42AM

Re: Compilation of Nginx on Solris 10 as 64bit

william March 20, 2010 07:49AM

Re: Compilation of Nginx on Solris 10 as 64bit

Stefan Parvu March 20, 2010 08:46AM

Re: Compilation of Nginx on Solris 10 as 64bit

william March 20, 2010 08:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready