Welcome! Log In Create A New Profile

Advanced

Re: error building nginx 1.5.3 on Cygwin

Kevin Worthington
August 03, 2013 12:32PM
Hi Maxim,

Thanks so much. Your patch worked great.

The build was failing without that change.

Is there any way that patch can be incorporated into the main source, so
that it doesn't happen again in 1.5.4?

Thanks again, I really appreciate it.

Best regards,
Kevin
--
Kevin Worthington
http://kevinworthington.com/
http://twitter.com/kworthington


On Sat, Aug 3, 2013 at 6:47 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Fri, Aug 02, 2013 at 09:17:03PM -0400, Kevin Worthington wrote:
>
> > I'm trying to build nginx 1.5.3 on Cygwin using Windows 7. I see the
> > following output during "make":
>
> [...]
>
> > cc1: warnings being treated as errors
> > src/core/ngx_inet.c: In function `ngx_sock_ntop':
> > src/core/ngx_inet.c:236: error: comparison between signed and unsigned
> > make[1]: *** [objs/src/core/ngx_inet.o] Error 1
> > make[1]: Leaving directory `/home/kworthington/nginx-1.5.3'
> > make: *** [build] Error 2
> >
> > I would appreciate any help to fix this. Thank you!
>
> Looks like socklen_t is signed in your environment, which results
> in a warning. Try the following patch:
>
> --- a/src/core/ngx_inet.c
> +++ b/src/core/ngx_inet.c
> @@ -233,7 +233,7 @@ ngx_sock_ntop(struct sockaddr *sa,
>
> /* on Linux sockaddr might not include sun_path at all */
>
> - if (socklen <= offsetof(struct sockaddr_un, sun_path)) {
> + if (socklen <= (socklen_t) offsetof(struct sockaddr_un,
> sun_path)) {
> p = ngx_snprintf(text, len, "unix:%Z");
>
> } else {
>
> Alternatively, you may just ignore the warning, it's harmless.
>
> --
> Maxim Dounin
> http://nginx.org/en/donation.html
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

error building nginx 1.5.3 on Cygwin

Kevin Worthington August 02, 2013 09:18PM

Re: error building nginx 1.5.3 on Cygwin

Maxim Dounin August 03, 2013 06:48AM

Re: error building nginx 1.5.3 on Cygwin

Kevin Worthington August 03, 2013 12:32PM

Re: error building nginx 1.5.3 on Cygwin

Maxim Dounin August 05, 2013 03:44AM

Re: error building nginx 1.5.3 on Cygwin

Kevin Worthington August 05, 2013 08:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready