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

On Mon, 03 Feb 2003 12:40:55 +0530, Lokesh wrote:

> I think perhaps this question has been answered already and looks silly,
> but I'm new to this list and linux OS, hence please bear with this question.
> I'm facing problem in exporting symbols from my object module to other modules.
> I'm using linux kernel version 2.4.2 and RedHat 7.1
> when I compile I get following error.
> 
> cc -c -O -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB testmod.c -o testmod.o
> In file included from /usr/include/linux/module.h:21,
>                   from testmod.c:11:
> /usr/include/linux/modversions.h:1:2: #error Modules should never use 
> kernel-headers system headers,
> /usr/include/linux/modversions.h:2:2: #error but headers from an 
> appropriate kernel-source

Read the error message. 

Don't compile against glibc kernel headers. Do compile against Linux
kernel headers as provided by the kernel-source binary rpm, i.e.
kernel-source-2.4.2-SOMEVERSIONHERE.i386.rpm in your case which puts
files into /usr/src/linux-2.4 and kernel include files into
/usr/src/linux-2.4/include.

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

iD8DBQE+PkAK0iMVcrivHFQRApkoAJ9r+lc3fHKHATQjswXM2kH+20p4sgCfaQAj
N27kXeqKT2+xn1BP28hWcT0=
=EjMr
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to