an error in include/linux/string.h ?

From: Ahmed El-Mahmoudy (ant1@ants.net.dhis.org)
Date: Fri Jul 28 2000 - 08:19:13 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am using Intel P166 machine, linux kernel 2.4.0-test5.
well, I was compiling 'autofs', I got this error :

>>>>start paste<<<<

for i in daemon modules man; do make -C $i all; done
make[1]: Entering directory `/home/tmp/autofs-3.1.5/daemon'
gcc -O3 -fomit-frame-pointer -Wall -rdynamic -DAUTOFS_LIB_DIR="/usr/lib/autofs" -DVERSION_STRING="3.1.5" -I../include -c automount.c
In file included from /usr/include/linux/fs.h:12,
                 from ../include/linux/auto_fs.h:19,
                 from automount.c:38:
/usr/include/linux/wait.h:4: warning: `WNOHANG' redefined
/usr/include/bits/waitflags.h:26: warning: this is the location of the previous definition
/usr/include/linux/wait.h:5: warning: `WUNTRACED' redefined
/usr/include/bits/waitflags.h:27: warning: this is the location of the previous definition
In file included from /usr/include/linux/fs.h:23,
                 from ../include/linux/auto_fs.h:19,
                 from automount.c:38:
/usr/include/linux/string.h:12: parse error before `__extension__'
/usr/include/linux/string.h:12: parse error before `&&'
/usr/include/linux/string.h:14: parse error before `__extension__'
/usr/include/linux/string.h:14: parse error before `('
/usr/include/linux/string.h:15: parse error before `__extension__'
/usr/include/linux/string.h:15: parse error before `&&'
In file included from /usr/include/linux/fs.h:23,
                 from ../include/linux/auto_fs.h:19,
                 from automount.c:38:
/usr/include/linux/string.h:24: parse error before `__extension__'
/usr/include/linux/string.h:27: parse error before `__extension__'
/usr/include/linux/string.h:33: parse error before `__extension__'
/usr/include/linux/string.h:36: parse error before `__extension__'
/usr/include/linux/string.h:36: parse error before `&&'
/usr/include/linux/string.h:36: warning: data definition has no type or storage class
/usr/include/linux/string.h:36: parse error before `}'
/usr/include/linux/string.h:36: conflicting declarations of `__result'
/usr/include/linux/string.h:36: `__result' previously declared here
/usr/include/linux/string.h:36: parse error before `)'
/usr/include/linux/string.h:36: `__s2' undeclared here (not in a function)
/usr/include/linux/string.h:36: parse error before `;'
/usr/include/linux/string.h:36: conflicting declarations of `__result'
/usr/include/linux/string.h:36: `__result' previously defined here
/usr/include/linux/string.h:36: warning: data definition has no type or storage class
/usr/include/linux/string.h:36: parse error before `}'
/usr/include/linux/string.h:36: warning: data definition has no type or storage class
/usr/include/linux/string.h:36: parse error before `}'
/usr/include/linux/string.h:36: redefinition of `__result'
/usr/include/linux/string.h:36: `__result' previously defined here
/usr/include/linux/string.h:36: `__s1' undeclared here (not in a function)
/usr/include/linux/string.h:36: parse error before `)'
/usr/include/linux/string.h:36: parse error before `;'
/usr/include/linux/string.h:36: initializer element is not constant
/usr/include/linux/string.h:36: conflicting declarations of `__result'
/usr/include/linux/string.h:36: `__result' previously defined here
/usr/include/linux/string.h:36: warning: data definition has no type or storage class
/usr/include/linux/string.h:36: parse error before `}'
/usr/include/linux/string.h:39: parse error before `__extension__'
/usr/include/linux/string.h:39: parse error before `&&'
/usr/include/linux/string.h:39: warning: data definition has no type or storage class
/usr/include/linux/string.h:39: parse error before `}'
/usr/include/linux/string.h:39: redefinition of `__result'
/usr/include/linux/string.h:36: `__result' previously defined here
/usr/include/linux/string.h:39: parse error before `)'
/usr/include/linux/string.h:39: `__s2' undeclared here (not in a function)
/usr/include/linux/string.h:39: parse error before `;'
/usr/include/linux/string.h:39: conflicting declarations of `__result'
/usr/include/linux/string.h:39: `__result' previously defined here
/usr/include/linux/string.h:39: warning: data definition has no type or storage class
/usr/include/linux/string.h:39: parse error before `}'
/usr/include/linux/string.h:39: warning: data definition has no type or storage class
/usr/include/linux/string.h:39: parse error before `}'
/usr/include/linux/string.h:39: redefinition of `__result'
/usr/include/linux/string.h:39: `__result' previously defined here
/usr/include/linux/string.h:39: `__s1' undeclared here (not in a function)
/usr/include/linux/string.h:39: parse error before `)'
/usr/include/linux/string.h:39: parse error before `;'
/usr/include/linux/string.h:39: initializer element is not constant
/usr/include/linux/string.h:39: conflicting declarations of `__result'
/usr/include/linux/string.h:39: `__result' previously defined here
/usr/include/linux/string.h:39: warning: data definition has no type or storage class
/usr/include/linux/string.h:39: parse error before `}'
/usr/include/linux/string.h:45: parse error before `__extension__'
/usr/include/linux/string.h:51: parse error before `__extension__'
/usr/include/linux/string.h:61: parse error before `__extension__'
/usr/include/linux/string.h:61: parse error before `__kernel_size_t'
/usr/include/linux/string.h:61: conflicting types for `__bzero'
/usr/include/string.h:221: previous declaration of `__bzero'
/usr/include/linux/string.h:61: warning: data definition has no type or storage class
/usr/include/linux/string.h:61: warning: data definition has no type or storage class
/usr/include/linux/string.h:61: parse error before `}'
make[1]: *** [automount.o] Error 1
make[1]: Leaving directory `/home/tmp/autofs-3.1.5/daemon'
make[1]: Entering directory `/home/tmp/autofs-3.1.5/modules'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/tmp/autofs-3.1.5/modules'
make[1]: Entering directory `/home/tmp/autofs-3.1.5/man'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/tmp/autofs-3.1.5/man'
if [ -d samples ]; then make -C samples all; fi
make[1]: Entering directory `/home/tmp/autofs-3.1.5/samples'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/tmp/autofs-3.1.5/samples'

>>>>end paste<<<<

well, it seems that the error is in the linux kernels
include/linux/string.h header file.. could anyone help ?
thanks in advance...

- --

+-----------------------------------------------------+
| Ahmed El-Mahmoudy |
| |
| E-mail reply address : amcons@ritsec3.com.eg |
| Web : http://members.muslimsites.com/aelmahmoudy/ |
| Snail mail : P.O. Box 10 Saray Elkobba, |
| Cairo ,Egypt. |
| Postal Code 11712 |
+-----------------------------------------------------+

You can get PGP for free at : www.pgpi.com
& for Pine email client users, you can also get gpg4pine at : azzie.robotics.net

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.1
Filter: gpg4pine 4.0 (http://azzie.robotics.net)

iQA/AwUBOYGIZN4fRvWMbHGnEQKdpwCfWSQPm63uQQkYNZmiDI0i7YtvRgMAmwby
iw+PnRTFLQWJuY7bjCFZhwan
=ouml
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:27 EST