Click to See Complete Forum and Search --> : crap! kernel compile error


gcb
11-07-2001, 09:50 PM
typed make bzImage...everything was rolling out cooly & then suddenly:


/usr/src/linux-2.4.14/arch/i386/lib/lib.a /usr/src/linux-2.4.14/lib/lib.a /usr/src/linux-2.4.14/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
drivers/block/block.o: In function `lo_send':
drivers/block/block.o(.text+0xabdb): undefined reference to `deactivate_page'
drivers/block/block.o(.text+0xac17): undefined reference to `deactivate_page'
make: *** [vmlinux] Error 1


crap! anyone know what the problem may be? its linux-2.4.14 on an athlon 950 running mandrake 8...thanks.

[ 07 November 2001: Message edited by: gcb ]

PLBlaze
11-08-2001, 03:12 AM
It;s the loopback bug that kernel 2.4.14 shipped with...easy to fix too.

You have three choices:

1. see this http://www.linuxnewbie.org/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=1&t=024662 post for link to diff which you will use to patch to get the fix in place

2. remove or comment deactivate_page(page); on line 218 in /usr/src/linux/drivers/block/loop.c

3. get 2.4.15-pre1 patch from kernel.org or mirrors and patch 2.4.14 sources

Hope this helps.

bdg1983
11-08-2001, 06:26 AM
I knew about the loop bug but I still selected it during the kernel config and I'm up and running with the 2.4.14 kernel. Although the loop module did not load, everything else did and all seems to work.

gcb
11-08-2001, 07:55 PM
okay, i looked at the loop.c file and heres what it says...line 218 says kunmap(page) so what do i need to comment out? the deactivate(page) below it? there's also a deactivate(page) on line 210...thanks


215: write_fail:
216: printk(KERN_ERR "loop: transfer error block %ld\n", index);
217: ClearPageUptodate(page);
218: kunmap(page);
219: unlock:
220: UnlockPage(page);
221: deactivate_page(page);
222: page_cache_release(page);
223: fail:
224: return -1;

Concrete Geist
11-08-2001, 08:06 PM
You should email whoever runs kernel.org and ask for a patch. They'll supply it like an hour later. There is a new linux kernel every 4 or 5 days I think. I downloaded 2.4.13 pre6 only 6 days ago. Now it's 2.4.15 pre1

How does one keep up!?!?! :confused:

gcb
11-08-2001, 08:11 PM
what do i need this loopback support for anyway? what will i lose if i just complile it as a module? the help in xconfig for it didn't really help me much...

bdg1983
11-08-2001, 08:20 PM
Select as module or not at all. The module will be created if selected but will not load.

No big deal for me as everything else works anyways. Have the 2.4.14 kernel working both at work and at home. Actually today at work and just for the heck of it, I decided to compile the winmodem drivers (all ethernet anyways) for the gvc internal modem. I recompiled the 2.4.14 kernel to include support for ppp. The modem now actually works. Very simple to do.