Welcome! Log In Create A New Profile

Advanced

Re: 0.9.1 compilation failure on Nexenta 3.0.1

December 06, 2010 10:36AM
On Mon, Dec 06, 2010 at 09:32:07PM +0700, Edho P Arief wrote:

> On Mon, Dec 6, 2010 at 9:10 PM, Igor Sysoev <igor@sysoev.ru> wrote:
> > As I understand it uses glibc which has sys_nerr.
> > What does
> > grep -r sys_nerr /usr/include
> > show ?
> >
>
> I tried that yesterday, too. Also I believe it uses Solaris' libc.
>
> Wikipedia:
> > Nexenta OS is the first distribution that combines the OpenSolaris C library and GNU userland with the OpenSolaris kernel.

Could you test the attached patch ?


--
Igor Sysoev
http://sysoev.ru/en/
Index: auto/unix
===================================================================
--- auto/unix (revision 3131)
+++ auto/unix (working copy)
@@ -119,18 +119,44 @@
. auto/feature


-# Cygiwn defines _sys_nerr
-ngx_feature="_sys_nerr"
-ngx_feature_name="NGX_SYS_NERR"
-ngx_feature_run=value
-ngx_feature_incs='#include <errno.h>
- #include <stdio.h>'
-ngx_feature_path=
-ngx_feature_libs=
-ngx_feature_test='printf("%d", _sys_nerr);'
-. auto/feature
+if [ $ngx_found = no ]; then

+ # Cygiwn defines _sys_nerr
+ ngx_feature="_sys_nerr"
+ ngx_feature_name="NGX_SYS_NERR"
+ ngx_feature_run=value
+ ngx_feature_incs='#include <errno.h>
+ #include <stdio.h>'
+ ngx_feature_path=
+ ngx_feature_libs=
+ ngx_feature_test='printf("%d", _sys_nerr);'
+ . auto/feature
+fi

+
+if [ $ngx_found = no ]; then
+
+ # Solaris has no sys_nerr
+ ngx_feature='maximum errno'
+ ngx_feature_name=NGX_SYS_NERR
+ ngx_feature_run=value
+ ngx_feature_incs='#include <errno.h>
+ #include <stdio.h>'
+ ngx_feature_path=
+ ngx_feature_libs=
+ ngx_feature_test='int n;
+ for (n = 1; n < 1000; n++) {
+ errno = 0;
+ strerror(n);
+ if (errno == EINVAL) {
+ printf("%d", n);
+ return 0;
+ }
+ }'
+ . auto/feature
+fi
+
+
ngx_feature="localtime_r()"
ngx_feature_name="NGX_HAVE_LOCALTIME_R"
ngx_feature_run=no
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

0.9.1 compilation failure on Nexenta 3.0.1

edogawaconan December 05, 2010 04:50AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

Piotr Sikora December 05, 2010 08:04AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

edogawaconan December 05, 2010 09:46AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

Igor Sysoev December 06, 2010 08:26AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

edogawaconan December 06, 2010 09:14AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

Igor Sysoev December 06, 2010 09:18AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

edogawaconan December 06, 2010 09:36AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

Igor Sysoev December 06, 2010 09:40AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

Maxim Dounin December 06, 2010 10:06AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

Igor Sysoev December 06, 2010 10:36AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

Maxim Dounin December 06, 2010 11:38AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

Igor Sysoev December 06, 2010 10:36AM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

WilliamOMS December 06, 2010 12:19PM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

edogawaconan December 06, 2010 12:20PM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

Igor Sysoev December 06, 2010 12:26PM

Re: 0.9.1 compilation failure on Nexenta 3.0.1

edogawaconan December 06, 2010 01:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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