Unresolved symbols with module
Cristian Manfredini
c.manfredini@inwind.it
Wed, 18 Jul 2001 10:22:29 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0066_01C10F73.8C60E2E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I've been trying for days to link a filtering module to the kernel. My =
module simply registers an hook and mangle incoming packets.
I've installed a 2.4.5 kernel source, and iptables-1.2.2, compiled the =
Kernel and
followed the INSTALL instructions in iptables.
=20
I've compiled with
=20
gcc -o6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -c =
mymodule.c
But when i insert the moudle with
=20
insmod mymodule.o
it returns=20
Unresolved symbol : nf_register_hook
Unresolved symbol : nf_unregister_hook
Unresolved symbol : printk
What am I missing ?=20
Thanks =20
------=_NextPart_000_0066_01C10F73.8C60E2E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've been trying for days to link a =
filtering=20
module to the kernel. My module simply registers an hook and mangle =
incoming=20
packets.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've installed a 2.4.5 kernel source, =
and=20
iptables-1.2.2, compiled the Kernel and<BR>followed the INSTALL =
instructions in=20
iptables.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I've compiled with</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>gcc -o6 -Wall -DCONFIG_KERNELD -DMODULE =
-D__KERNEL__ -DLINUX -c mymodule.c</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>But when i insert the moudle =
with</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>insmod mymodule.o</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>it returns </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Unresolved symbol : =20
nf_register_hook</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>Unresolved =
symbol : =20
nf_unregister_hook</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Unresolved symbol : =
printk</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>What am I missing ?</FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks =
</FONT></DIV></BODY></HTML>
------=_NextPart_000_0066_01C10F73.8C60E2E0--