kaio
[Top] [All Lists]

Re: errors when compiling -ansi -Wall -pedantic

To: Jeff Graham <jgraham@xxxxxxxxxxxxxx>
Subject: Re: errors when compiling -ansi -Wall -pedantic
From: Rajagopal Ananthanarayanan <ananth@xxxxxxx>
Date: Tue, 12 Dec 2000 13:38:50 -0800
Cc: kaio@xxxxxxxxxxx
References: <3A363690.CBE40A3D@lincom-asg.com>
Sender: owner-kaio@xxxxxxxxxxx
Jeff Graham wrote:
> 
> Hello,
> 
> Using gcc 2.95.2 on a (slightly patched) 2.2.17 kernel running Red Hat 6.2,
> I get the following
> warnings and errors when trying to compile using kaio-1.3-2.2.17
> 
> Note that without the -ansi switch, it will compile (but still with warnings).
> 
> Can the maintainers clean this up?

Most of the problems below is because of the way aio.h
is currently required to be included. aio.h should
really be part of /usr/include & not part of the kernel.
Jeff, can you make a physical copy of aio.h and not
use -I/usr/src/include (which is the kernel headers)?

I don't really know what else needs to be cleaned so
any ideas welcome.

cheers,

ananth.

> 
> Thanks,
> Jeff
> 
> g++ -Wall -pedantic -O6 -mpentium -I. -s -ansi  -I/usr/src/linux/include   -c 
> -o
> libserial.o libserial.C
> In file included from /usr/include/errno.h:36,
>                  from libserial.C:36:
> /usr/include/bits/errno.h:32: warning: `ECANCELED' redefined
> /usr/src/linux/include/asm/errno.h:133: warning: this is the location of the
> previous definition
> In file included from libserial.C:12:
> /usr/src/linux/include/linux/aio.h:76: syntax error before `;'
> libserial.C: In method `int Serial::WriteDataAIO(const char *, int)':
> libserial.C:218: `struct aiocb' has no member named `aio_sigevent'
> libserial.C:218: `SIGEV_NONE' undeclared (first use this function)
> libserial.C:218: (Each undeclared identifier is reported only once
> libserial.C:218: for each function it appears in.)
> libserial.C:219: `struct aiocb' has no member named `aio_sigevent'
> libserial.C: In method `int Serial::ReadDataAIO(void *, int)':
> libserial.C:369: `struct aiocb' has no member named `aio_sigevent'
> libserial.C:370: `struct aiocb' has no member named `aio_sigevent'
> gmake: *** [libserial.o] Error 1

-- 
--------------------------------------------------------------------------
Rajagopal Ananthanarayanan ("ananth")
Member Technical Staff, SGI.
--------------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>