Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.7.46

All files from this thread

File Name File Size   Posted by Date  
patch.freebsd4 1.8 KB open | download Igor Sysoev 03/30/2009 Read message
patch.openbsd 465 bytes open | download Igor Sysoev 04/01/2009 Read message
March 30, 2009 08:21AM
On Mon, Mar 30, 2009 at 03:43:19PM +0400, Maxim Dounin wrote:

> On Mon, Mar 30, 2009 at 03:06:21PM +0400, Igor Sysoev wrote:
>
> > Changes with nginx 0.7.46 30 Mar 2009
> >
> > *) Bugfix: the previous release tarball was incorrect.
>
> I've got the following under FreeBSD 6.2:
>
> cd nginx
> && make
> make -f objs/Makefile
> gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter
> -Wno-unused-function -Wunused-variable -Wunused-value -Werror -g
> -D NGX_DEBUG_MALLOC -I src/core -I src/event -I
> src/event/modules -I src/os/unix -I /usr/local/include -I objs
> -o objs/src/core/nginx.o src/core/nginx.c
> In file included from /usr/include/sys/mount.h:36,
> from src/os/unix/ngx_freebsd_config.h:25,
> from src/core/ngx_config.h:21,
> from src/core/nginx.c:7:
> /usr/include/sys/ucred.h:71: error: `NGROUPS' undeclared here (not
> in a function)
> *** Error code 1
>
> Including sys/param.h before sys/mount.h as statfs() manpage
> suggests fixes this issue, but then it dies with:
>
> src/os/unix/ngx_files.c: In function `ngx_fs_bsize':
> src/os/unix/ngx_files.c:444: error: storage size of 'fs' isn't known
> src/os/unix/ngx_files.c:446: warning: implicit declaration of function `statvfs'
> src/os/unix/ngx_files.c:444: warning: unused variable `fs'
> *** Error code 1
>
> Including sys/statvfs.h as statvfs() manpage suggests fixes this
> issue too. With the following patch I was able to build it under
> FreeBSD 6.2:
>
> diff --git a/src/os/unix/ngx_freebsd_config.h b/src/os/unix/ngx_freebsd_config.h
> --- a/src/os/unix/ngx_freebsd_config.h
> +++ b/src/os/unix/ngx_freebsd_config.h
> @@ -22,7 +22,9 @@
> #include
> #include
> #include
> +#include
> #include /* statfs() */
> +#include
>
> #include /* FIONBIO */
> #include

The patch attached. The is not needed on FreeBSD.


--
Igor Sysoev
http://sysoev.ru/en/
Attachments:
open | download - patch.freebsd4 (1.8 KB)
Subject Author Posted

nginx-0.7.46

Igor Sysoev March 30, 2009 07:06AM

Re: nginx-0.7.46

Maxim Dounin March 30, 2009 07:43AM

Re: nginx-0.7.46 Attachments

Igor Sysoev March 30, 2009 08:21AM

Re: nginx-0.7.46

Ex Ex March 30, 2009 01:55PM

Re: nginx-0.7.46

Ruslan Malymon March 30, 2009 02:03PM

Re: nginx-0.7.46

Otto Bretz April 01, 2009 10:16AM

Re: nginx-0.7.46

Igor Sysoev April 01, 2009 10:20AM

Re: nginx-0.7.46

Otto Bretz April 01, 2009 11:12AM

Re: nginx-0.7.46 Attachments

Igor Sysoev April 01, 2009 11:17AM

Re: nginx-0.7.46

Otto Bretz April 01, 2009 12:20PM

Re: nginx-0.7.46

adi March 30, 2009 01:11PM

Re: nginx-0.7.46

Igor Sysoev March 31, 2009 02:53AM

RE: nginx-0.7.46

Glen Lumanau March 31, 2009 10:49PM

Re: nginx-0.7.46

Igor Sysoev April 01, 2009 12:59AM

RE: nginx-0.7.46

Glen Lumanau April 01, 2009 03:16AM

RE: nginx-0.7.46

Glen Lumanau April 01, 2009 03:33AM

Re: nginx-0.7.46

mike April 01, 2009 03:29AM

Re: nginx-0.7.46

Igor Sysoev April 01, 2009 03:37AM

Re: nginx-0.7.46

mike April 01, 2009 03:50AM

Re: nginx-0.7.46

Igor Sysoev April 01, 2009 05:25AM

Re: nginx-0.7.46

mike April 01, 2009 06:15AM

Re: nginx-0.7.46

Igor Sysoev April 01, 2009 03:53AM

Re: nginx-0.7.46

mike April 01, 2009 04:07AM

Re: nginx-0.7.46

Igor Sysoev April 01, 2009 04:10AM

Re: nginx-0.7.46

mike April 01, 2009 05:11AM

RE: nginx-0.7.46

Glen Lumanau April 01, 2009 05:17AM

Re: nginx-0.7.46

Igor Sysoev April 01, 2009 03:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 232
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