[Top] [All Lists]

errors when compiling -ansi -Wall -pedantic

To: kaio@xxxxxxxxxxx
Subject: errors when compiling -ansi -Wall -pedantic
From: Jeff Graham <jgraham@xxxxxxxxxxxxxx>
Date: Tue, 12 Dec 2000 08:30:40 -0600
Sender: owner-kaio@xxxxxxxxxxx

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?


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

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