Skip to contentSkip to conversation

2.4.14 compiling failed

DISCUSSION Peter Jay Salzman 2 participants 2 messages Nov 18, 2001 Block layer

lore
Share & tools
lore
#0 lore raw

this is probably known already, but just in case, 2.4.14 compiling just failed on me:

  make[1]: Leaving directory `/usr/src/linux-2.4.14/arch/i386/lib'
  ld -m elf_i386 -T /usr/src/linux-2.4.14/arch/i386/vmlinux.lds -e stext
  arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
  init/version.o \
          --start-group \
          arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o
  fs/fs.o ipc/ipc.o \
           drivers/parport/driver.o drivers/char/char.o drivers/block/block.o
  drivers/misc/misc.o drivers/net/net.o drivers/media/media.o
  drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o
  drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/sound/sounddrivers.o
  drivers/pci/driver.o drivers/pnp/pnp.o
  drivers/video/video.o \
          net/network.o \
          /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+0xa57f): undefined reference to `deactivate_page'
  drivers/block/block.o(.text+0xa5c9): undefined reference to `deactivate_page'
  make: *** [vmlinux] Error 1

i wanted to upgrade because 2.4.13 has been flaky. earlier today, my system became very sloooow. i killed just about every process with no
effect. top reported that kswapd was taking 99% of the cpu.

then just a few minutes ago, my system hung (couldn't ssh in either). at the time, all i was running was g++ and mp3blaster. wasn't even running X.

so i went to update to 2.4.14. and the compile just failed.

no big deal -- i can live with it until 2.4.15 comes out, but i thought someone should know about this.

no response is required. i know how busy everyone here is.

pete (not subscribed)

#1 lore raw
Quoted 10 lines · Peter Jay Salzman

this is probably known already, but just in case, 2.4.14 compiling just failed on me:
...
drivers/block/block.o: In function `lo_send':
drivers/block/block.o(.text+0xa57f): undefined reference to deactivate_page' drivers/block/block.o(.text+0xa5c9): undefined reference to deactivate_page'
make: *** [vmlinux] Error 1
...
so i went to update to 2.4.14. and the compile just failed.

Quoted 4 lines

no big deal -- i can live with it until 2.4.15 comes out, but i thought someone should know about this.

no response is required. i know how busy everyone here is.

I hope you don't mind that I respond. ;-)

This is a known bug.
If you want to run 2.4.14 the following simple patch solves the problem:

drivers/block/loop.c +0 -2
@@ -207,7 +207,6 @@
 		index++;
 		pos += size;
 		UnlockPage(page);
-		deactivate_page(page);
 		page_cache_release(page);
 	}
 	return 0;
@@ -218,7 +217,6 @@
 	kunmap(page);
 unlock:
 	UnlockPage(page);
-	deactivate_page(page);
 	page_cache_release(page);
 fail:
 	return -1;
Quoted 1 line

pete (not subscribed)

cu
Adrian

Signature · 3 lines
Get my GPG key: finger [email protected] | gpg --import

Fingerprint: B29C E71E FE19 6755 5C8A  84D4 99FC EA98 4F12 B400