# Compiling nginx-0.8.21 fail under linux-2.4.18

**URL:** <https://www.ruby-forum.com/t/compiling-nginx-0-8-21-fail-under-linux-2-4-18/178099>\
**Category:** NGINX\
**Created:** [October 29, 2009, 2:39am UTC](https://www.ruby-forum.com/t/compiling-nginx-0-8-21-fail-under-linux-2-4-18/178099 "2009-10-29T02:39:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![testking](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@testking](https://www.ruby-forum.com/u/testking)\
**Post date:** [October 29, 2009, 2:39am UTC](https://www.ruby-forum.com/t/compiling-nginx-0-8-21-fail-under-linux-2-4-18/178099/1 "2009-10-29T02:39:51Z")

</div>

objs/src/core/ngx\_open\_file\_cache.o: In function  
`ngx\_open\_and\_stat\_file’:  
/home/box/nginx-0.8.21/src/core/ngx\_open\_file\_cache.c:531: warning:  
posix\_fadvise64 is not implemented and will always fail

Linux nginxbox 2.4.18-19.7.xsmp #1 SMP Thu Dec 12 07:56:58 EST 2002 i686  
unknown

it is ok with nginx-0.8.16.

Posted at Nginx Forum:

> **[compiling nginx-0.8.21 fail under linux-2.4.18](https://forum.nginx.org/read.php?2,17810,17810#msg-17810)**
>
> objs/src/core/ngx\_open\_file\_cache.o: In function \`ngx\_open\_and\_stat\_file': /home/box/nginx-0.8.21/src/core/ngx\_open\_file\_cache.c:531: warning: posix\_fadvise64 is not implemented and will always fail Linux nginxbox 2.4.18-19.7.xsmp #1 SMP Thu Dec 12...

---

<div class="post-metadata">

**Author:** ![testking](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@testking](https://www.ruby-forum.com/u/testking)\
**Post date:** [October 29, 2009, 8:55am UTC](https://www.ruby-forum.com/t/compiling-nginx-0-8-21-fail-under-linux-2-4-18/178099/2 "2009-10-29T08:55:02Z")

</div>

On Wed, Oct 28, 2009 at 09:33:36PM -0400, testking wrote:

> objs/src/core/ngx\_open\_file\_cache.o: In function `ngx\_open\_and\_stat\_file’:  
> /home/box/nginx-0.8.21/src/core/ngx\_open\_file\_cache.c:531: warning: posix\_fadvise64 is not implemented and will always fail
> 
> Linux nginxbox 2.4.18-19.7.xsmp #1 SMP Thu Dec 12 07:56:58 EST 2002 i686 unknown
> 
> it is ok with nginx-0.8.16.

Try the attached patch.

---

<div class="post-metadata">

**Author:** ![testking](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@testking](https://www.ruby-forum.com/u/testking)\
**Post date:** [October 30, 2009, 2:17am UTC](https://www.ruby-forum.com/t/compiling-nginx-0-8-21-fail-under-linux-2-4-18/178099/3 "2009-10-30T02:17:35Z")

</div>

make is ok , but when i start nginx , “Segmentation fault”

Posted at Nginx Forum:

> **[Re: compiling nginx-0.8.21 fail under linux-2.4.18](https://forum.nginx.org/read.php?2,17810,18140#msg-18140)**
>
> objs/src/core/ngx\_open\_file\_cache.o: In function \`ngx\_open\_and\_stat\_file': /home/box/nginx-0.8.21/src/core/ngx\_open\_file\_cache.c:531: warning: posix\_fadvise64 is not implemented and will always fail Linux nginxbox 2.4.18-19.7.xsmp #1 SMP Thu Dec 12...

---

<div class="post-metadata">

**Author:** ![testking](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@testking](https://www.ruby-forum.com/u/testking)\
**Post date:** [October 30, 2009, 7:04am UTC](https://www.ruby-forum.com/t/compiling-nginx-0-8-21-fail-under-linux-2-4-18/178099/4 "2009-10-30T07:04:58Z")

</div>

On Thu, Oct 29, 2009 at 09:05:15PM -0400, testking wrote:

> make is ok , but when i start nginx , “Segmentation fault”

Could you show backtrace of core file ?

---

<div class="post-metadata">

**Author:** ![testking](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@testking](https://www.ruby-forum.com/u/testking)\
**Post date:** [October 31, 2009, 5:09am UTC](https://www.ruby-forum.com/t/compiling-nginx-0-8-21-fail-under-linux-2-4-18/178099/5 "2009-10-31T05:09:16Z")

</div>

how to show it ?

Posted at Nginx Forum:

> **[Re: compiling nginx-0.8.21 fail under linux-2.4.18](https://forum.nginx.org/read.php?2,17810,18546#msg-18546)**
>
> objs/src/core/ngx\_open\_file\_cache.o: In function \`ngx\_open\_and\_stat\_file': /home/box/nginx-0.8.21/src/core/ngx\_open\_file\_cache.c:531: warning: posix\_fadvise64 is not implemented and will always fail Linux nginxbox 2.4.18-19.7.xsmp #1 SMP Thu Dec 12...
