Src/os/unix/ngx_files.c:164: error: ‘IOV_MA X’ undeclared (first use in this functi on)

hi dear all,
I get bellow during 0.6.31 compilation on fedora9 2.6.25-14.fc9.x86_64,
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)

make -f objs/Makefile
make[1]: Entering directory /home/install/nginx/nginx-0.6.31' gcc -c -O -pipe -O3 -W -Werror -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \ -o objs/src/os/unix/ngx_files.o \ src/os/unix/ngx_files.c src/os/unix/ngx_files.c: In function ‘ngx_write_chain_to_file’: src/os/unix/ngx_files.c:164: error: ‘IOV_MAX’ undeclared (first use in this function) src/os/unix/ngx_files.c:164: error: (Each undeclared identifier is reported only once src/os/unix/ngx_files.c:164: error: for each function it appears in.) make[1]: *** [objs/src/os/unix/ngx_files.o] Error 1 make[1]: Leaving directory/home/install/nginx/nginx-0.6.31’
make: *** [build] Error 2

something, one not being a programmer at all, could fix/tune up??
and without changing default compiler directives in Makefile I get the
same
best regards and great respect to all open source creators
peace


Inbox full of spam? Get leading spam protection and 1GB storage with All
New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html

hi, can add that it’s not the case for:
2.6.24.4-64.fc8 gcc version 4.1.2 20070925 (Red Hat 4.1.2-33), here all
goes fine
gcc? right? any way to circumvent it easily?
cheers

Pawel Eljasz wrote:

src/os/unix/ngx_files.c: In function ‘ngx_write_chain_to_file’:
and without changing default compiler directives in Makefile I get the


Yahoo! Messenger - with free PC-PC calling and photo sharing.
http://uk.messenger.yahoo.com

On Wed, May 14, 2008 at 05:27:22PM +0100, Pawel Eljasz wrote:

hi, can add that it’s not the case for:
2.6.24.4-64.fc8 gcc version 4.1.2 20070925 (Red Hat 4.1.2-33), here all
goes fine
gcc? right? any way to circumvent it easily?
cheers

It seems it’s a problem of your build environment.
What does

grep -r IOV_MAX /usr/include/

show ?

On Wed, May 14, 2008 at 02:53:23PM +0100, Pawel Eljasz wrote:

src/os/unix/ngx_files.c: In function ?ngx_write_chain_to_file?:
and without changing default compiler directives in Makefile I get the same
best regards and great respect to all open source creators
peace

You might check and see if the Fedora rpm for Fedora 9 will work for
you. It is
currently in the testing repository and is making its way to the updates
repository.

If you want it immediately you can enable the testing repo configuration
in
/etc/yum.repos.d/ or just download it from here.

http://koji.fedoraproject.org/packages/nginx/0.6.31/1.fc9/x86_64/nginx-0.6.31-1.fc9.x86_64.rpm

I have just put in the push-to-stable request, so I would imagine it
makes it to
the stable Fedora 7/8/9 repos fairly quickly.

enjoy,

-jeremy

Hi Jeremy,
yes! I’ve been trying this for last to days, it works, built a rpm even,
so the patches fix it?
if yes then where, which part? if I may ask.
best regards and thanks for you work Jeremy
Pawel

Jeremy H. wrote:

           -o objs/src/os/unix/ngx_files.o \

If you want it immediately you can enable the testing repo configuration in


All new Yahoo! Mail “The new Interface is stunning in its simplicity and
ease of use.” - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html

hello again Jeremy
the one I grabbed and have been tampering with is from devel repo
nginx-0.6.31-1.fc10.src.rpm
it builds a rpm on that same f9 which doesn’t want to make
and this is not a problem of patching it, I used the patches I found in
above sources
but it changed nothing, still the same error,
how much these environments differ from each other, rpmdevtools from
fedora’s gcc
do you know what is making it working in rpm??
cheers

Jeremy H. wrote:

           -o objs/src/os/unix/ngx_files.o \

If you want it immediately you can enable the testing repo configuration in


The all-new Yahoo! Mail goes wherever you go - free your email address
from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

On Wed, May 14, 2008 at 02:53:23PM +0100, Pawel Eljasz wrote:

src/os/unix/ngx_files.c: In function ?ngx_write_chain_to_file?:
and without changing default compiler directives in Makefile I get the same
best regards and great respect to all open source creators
peace

Try the attached patch.

that grep on box that does not compile:

/usr/include/bits/confname.h: _SC_IOV_MAX = _SC_UIO_MAXIOV,
/usr/include/bits/confname.h:#define _SC_IOV_MAX
_SC_IOV_MAX
/usr/include/bits/confname.h: _SC_T_IOV_MAX,
/usr/include/bits/confname.h:#define _SC_T_IOV_MAX
_SC_T_IOV_MAX
/usr/include/bits/xopen_lim.h:#define __need_IOV_MAX
/usr/include/bits/xopen_lim.h: IOV_MAX Maximum number of
`iovec’ structures that one process has
/usr/include/bits/xopen_lim.h:#define _XOPEN_IOV_MAX
_POSIX_UIO_MAXIOV
/usr/include/bits/stdio_lim.h:#if !defined _STDIO_H && !defined
__need_FOPEN_MAX && !defined __need_IOV_MAX
/usr/include/bits/stdio_lim.h:#if defined __need_IOV_MAX && !defined
IOV_MAX
/usr/include/bits/stdio_lim.h:# define IOV_MAX 1024
/usr/include/apr-1/apr_file_io.h:#elif defined(IOV_MAX)
/usr/include/apr-1/apr_file_io.h:#define APR_MAX_IOVEC_SIZE IOV_MAX

and where it works fine (fedora8):

/usr/include/apr-1/apr_file_io.h:#elif defined(IOV_MAX)
/usr/include/apr-1/apr_file_io.h:#define APR_MAX_IOVEC_SIZE IOV_MAX
/usr/include/bits/stdio_lim.h:#if !defined _STDIO_H && !defined
__need_FOPEN_MAX && !defined __need_IOV_MAX
/usr/include/bits/stdio_lim.h:#if defined __need_IOV_MAX && !defined
IOV_MAX
/usr/include/bits/stdio_lim.h:# define IOV_MAX 1024
/usr/include/bits/confname.h: _SC_IOV_MAX = _SC_UIO_MAXIOV,
/usr/include/bits/confname.h:#define _SC_IOV_MAX
_SC_IOV_MAX
/usr/include/bits/confname.h: _SC_T_IOV_MAX,
/usr/include/bits/confname.h:#define _SC_T_IOV_MAX
_SC_T_IOV_MAX
/usr/include/bits/xopen_lim.h:#define __need_IOV_MAX
/usr/include/bits/xopen_lim.h: IOV_MAX Maximum number of
`iovec’ structures that one process has
/usr/include/bits/xopen_lim.h:#define _XOPEN_IOV_MAX
_POSIX_UIO_MAXIOV

cheers

Igor S. wrote:

It seems it’s a problem of your build environment.

I get bellow during 0.6.31 compilation on fedora9
this function)
best regards and great respect to all open source creators


Yahoo! Messenger - with free PC-PC calling and photo sharing.
http://uk.messenger.yahoo.com


Try the all-new Yahoo! Mail. “The New Version is radically easier to
use” – The Wall Street Journal
http://uk.docs.yahoo.com/nowyoucan.html

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs