This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: fedora9 with its gcc 4.3 doesn't compile nginx 0.6.3x while fedora8 with gcc 4.1.2 does
- From: "Tom Browder" <tom dot browder at gmail dot com>
- To: "Pawel Eljasz" <peljasz at yahoo dot co dot uk>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 19 May 2008 07:56:28 -0500
- Subject: Re: fedora9 with its gcc 4.3 doesn't compile nginx 0.6.3x while fedora8 with gcc 4.1.2 does
- References: <4831A6C9.2030403@yahoo.co.uk>
On 5/19/08, Pawel Eljasz <peljasz@yahoo.co.uk> wrote:
> 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)
...
> 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
I don't believe the problem is with gcc 4.3.
The IOV_MAX macro is defined in several libc or system headers on my
Fedora 7 system, so you may find that you are missing a required
header file #include statement.
Note that gcc 4.3 has tightened up closer to standards and is finding
more errors in non-conforming code. The loki library is a case in
point.
If you can't fix the assumed missing header, you will need to query
someone familiar with the nginx code--there is probably a mailing list
for that package.
-Tom