Re: TCP/IP stack related prob.

Arjan van de Ven (arjanv@redhat.com)
11 Apr 2003 09:52:32 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-26332-1050047635-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2003-04-11 at 09:38, Alisha Nigam wrote:

> then compile it=20
> gcc -c -O -W -Wall -Wstrict-prototypes
> -Wmissing-prototypes -DMODULE -D__KERNEL__ -mymodule.o
> mymodule.c=20
>=20
>=20
> i am getting a bundle of errors ......=20
>=20
>=20
> In file included from /usr/include/linux/fs.h:23,
> from
> /usr/include/linux/capability.h:17,
> from /usr/include/linux/binfmts.h:5,
> from /usr/include/linux/sched.h:9,
> from /usr/include/linux/skbuff.h:19,
> from p10.c:2:
> /usr/include/linux/string.h:8:2: warning: #warning
> Using kernel header in userland!

you are using glibc headers to compile a kernel.... that's not going to
work. Add -I/lib/modules/`uname -r`/build/include to the gcc commandline
to use the headers of the currently running kernel..

--=_courier-26332-1050047635-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD4DBQA+lnQ8xULwo51rQBIRAhwNAJYr86dmrW2sJ7nO/l2bQXLVgKToAJ41i152
L3xuJAsyqghPXiGJnVAS6Q==
=HQKW
-----END PGP SIGNATURE-----

--=_courier-26332-1050047635-0001-2--