On Mon, Jun 23, 2003 at 05:37:58PM +0200, Z_God wrote:
> Hi,
> I'm using Debian 3.0 Woody and I just compiled 2.4.21 according to this page:
> [url]http://www.linmagau.org/modules.php?op=modload&name=Sections&file=index&re q=viewarticle&artid=158[/url]
> When I load certain modules using modprobe, I get unresolved symbol errors
> though:
> # modprobe ipv6
> /lib/modules/2.4.21/kernel/net/ipv6/ipv6.o: unresolved symbol nf_hooks
> /lib/modules/2.4.21/kernel/net/ipv6/ipv6.o: unresolved symbol nf_setsockopt
> /lib/modules/2.4.21/kernel/net/ipv6/ipv6.o: unresolved symbol nf_getsockopt
> /lib/modules/2.4.21/kernel/net/ipv6/ipv6.o: unresolved symbol nf_hook_slow
> /lib/modules/2.4.21/kernel/net/ipv6/ipv6.o: insmod
> /lib/modules/2.4.21/kernel/net/ipv6/ipv6.o failed
> /lib/modules/2.4.21/kernel/net/ipv6/ipv6.o: insmod ipv6 failed
>
> Does anyone know how to fix these or maybe a better way to install a kernel
> with Debian? Thanks in advance.
I can't say I've read the above guide (and I'm offline now), but here's
the quick'n'nasty Debian Way of building a kernel:

0) Install 'build-essential' (required to build anything with the C
compiler) and 'kernel-package' (generates kernel-image .debs from
your kernel source) and 'fakeroot' (required to build .debs as a
normal user).

1) get and untar your kernel source. From kernel.org or a
kernel-source-<version> package, it doesn't matter.

2) run 'make menuconfig' (which requires libncurses5-dev to be
installed) or 'make xconfig' (which requires tcl and tk to be
installed) to configure your kernel just as you like it. Make sure
you select the correct CPU type, or it will not boot. Don't forget
to include support for your root filesystem (ext2, reiserfs,
whatever) AND support for your root hard disk (and IDE controller or
SCSI card or whatever) or the kernel will fail to boot.

3) run 'make-kpkg --rootcmd=fakeroot kernel_image kernel_headers'.

4) install the kernel-image and kernel-headers .debs that appear in ../

Note, you only need to be 'root' for step (4).

After you've done all that, your new kernel should be installed and
ready to go. Just reboot and you should be in your brand spanking new
kernel. 'uname -r' lets you check this. Enjoy!

--
Rob Weir <rweirertius.org> | [email]mlspamertius.org[/email] | [url]http://www.ertius.org/[/url]
GPG keys: 1024D/1E73B7CD, 4096R/3ABDE5EC | Do I look like I want aCC?
Words of the day: SWAT mindwar South Africa JSOFC3IP CID Comirex LLNLMD2

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

iD8DBQE+/AFfvQ+DhR5zt80RAn2gAJ9i/EXB6KouksL2CZ6dM9VRttlM9ACfToOz
toqteJmB4rXt2j0hP5hP+9Y=
=hPYm
-----END PGP SIGNATURE-----