linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Kernel 2.4.14 compile fail (block.o)
@ 2001-11-12 16:06 Ian Norton
  2001-11-13  3:05 ` François Cami
  2001-11-14 22:50 ` Adrian Bunk
  0 siblings, 2 replies; 3+ messages in thread
From: Ian Norton @ 2001-11-12 16:06 UTC (permalink / raw)
  To: linux-kernel, axboe

[-- Attachment #1: Type: text/plain, Size: 2187 bytes --]

Hi :-), 

-- One Liner: make dep is fine but block.o fails to compile

--Problem: 
Make menuconfig for a pretty standard kernel, set for no driver modules, make
bzImage fails at block.o,

# drivers/block/block.o: In function `lo_send':
# drivers/block/block.o(.text+0x895f): undefined reference to `deactivate_page'
# drivers/block/block.o(.text+0x89a9): undefined reference to `deactivate_page'

The currently running system is going along just fine with 2.4.2 no problems
at all, good uptime,
Ive built plenty of kernels easily before, ive re created this problem on three
machines with very different linux setups (kernel, distro, gcc version..)

(menuconfigs saved and attached as bloc.o-fail.gz)

--- /proc/version
Linux version 2.4.2 (root@orion.dsh.org.uk) (gcc version 2.95.3 19991030
(prerelease)) #8 Thu Oct 4 15:59:45 BST 2001

--- ver_linux
linux orion.dsh.org.uk 2.4.2 #8 Thu Oct 4 15:59:45 BST 2001 i686 unknown
Gnu C                  2.95.3
Gnu make               3.79.1
binutils               2.10.0.24
util-linux             2.10b
mount                  2.11b
modutils               2.4.3
e2fsprogs              1.19
PPP                    2.3.10
Linux C Library        2.2.2
Dynamic linker (ldd)   2.2.2
Procps                 2.0.7
Net-tools              1.59
Console-tools          0.2.2
Sh-utils               2.0
Modules Loaded

--- host info
Machine Spec
CPU : 1x AMD Duron 800Mhz
RAM : 128Mb PC133
M/B : GIGABYTE (VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 3))

--- /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 3
model name      : AMD Duron(tm) Processor
stepping        : 1
cpu MHz         : 800.042
cache size      : 64 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips        : 1595.80

--- lspci -vvv included as gzip
--- no scsi in system
--- no modules loaded at all (ever)

Hope this has been a helpful bug report

Ian Norton

[-- Attachment #2: lspci-vvv.gz --]
[-- Type: application/octet-stream, Size: 1227 bytes --]

[-- Attachment #3: block.o-fail.gz --]
[-- Type: application/octet-stream, Size: 4092 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel 2.4.14 compile fail (block.o)
  2001-11-12 16:06 Kernel 2.4.14 compile fail (block.o) Ian Norton
@ 2001-11-13  3:05 ` François Cami
  2001-11-14 22:50 ` Adrian Bunk
  1 sibling, 0 replies; 3+ messages in thread
From: François Cami @ 2001-11-13  3:05 UTC (permalink / raw)
  To: bredroll; +Cc: linux-kernel, axboe


Known bug - patch is in 2.4.15pre1
Beware, in pre1 and pre2 netfilter (iptables)
doesn't work.

François


Ian Norton wrote:

> Hi :-), 
> 
> -- One Liner: make dep is fine but block.o fails to compile
> 
> --Problem: 
> Make menuconfig for a pretty standard kernel, set for no driver modules, make
> bzImage fails at block.o,
> 
> # drivers/block/block.o: In function `lo_send':
> # drivers/block/block.o(.text+0x895f): undefined reference to `deactivate_page'
> # drivers/block/block.o(.text+0x89a9): undefined reference to `deactivate_page'
> 
> The currently running system is going along just fine with 2.4.2 no problems
> at all, good uptime,
> Ive built plenty of kernels easily before, ive re created this problem on three
> machines with very different linux setups (kernel, distro, gcc version..)
> 
> (menuconfigs saved and attached as bloc.o-fail.gz)
> 
> --- /proc/version
> Linux version 2.4.2 (root@orion.dsh.org.uk) (gcc version 2.95.3 19991030
> (prerelease)) #8 Thu Oct 4 15:59:45 BST 2001
> 
> --- ver_linux
> linux orion.dsh.org.uk 2.4.2 #8 Thu Oct 4 15:59:45 BST 2001 i686 unknown
> Gnu C                  2.95.3
> Gnu make               3.79.1
> binutils               2.10.0.24
> util-linux             2.10b
> mount                  2.11b
> modutils               2.4.3
> e2fsprogs              1.19
> PPP                    2.3.10
> Linux C Library        2.2.2
> Dynamic linker (ldd)   2.2.2
> Procps                 2.0.7
> Net-tools              1.59
> Console-tools          0.2.2
> Sh-utils               2.0
> Modules Loaded
> 
> --- host info
> Machine Spec
> CPU : 1x AMD Duron 800Mhz
> RAM : 128Mb PC133
> M/B : GIGABYTE (VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 3))
> 
> --- /proc/cpuinfo
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 6
> model           : 3
> model name      : AMD Duron(tm) Processor
> stepping        : 1
> cpu MHz         : 800.042
> cache size      : 64 KB
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
> pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
> bogomips        : 1595.80
> 
> --- lspci -vvv included as gzip
> --- no scsi in system
> --- no modules loaded at all (ever)
> 
> Hope this has been a helpful bug report
> 
> Ian Norton
> 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Kernel 2.4.14 compile fail (block.o)
  2001-11-12 16:06 Kernel 2.4.14 compile fail (block.o) Ian Norton
  2001-11-13  3:05 ` François Cami
@ 2001-11-14 22:50 ` Adrian Bunk
  1 sibling, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2001-11-14 22:50 UTC (permalink / raw)
  To: bredroll; +Cc: linux-kernel

On Mon, 12 Nov 2001, Ian Norton wrote:

> Hi :-),
>
> -- One Liner: make dep is fine but block.o fails to compile
>
> --Problem:
> Make menuconfig for a pretty standard kernel, set for no driver modules, make
> bzImage fails at block.o,
>
> # drivers/block/block.o: In function `lo_send':
> # drivers/block/block.o(.text+0x895f): undefined reference to `deactivate_page'
> # drivers/block/block.o(.text+0x89a9): undefined reference to `deactivate_page'
>...

This is a known bug.

The following patch fixes it:

--- linux-2.4.14-broken/drivers/block/loop.c	Thu Oct 25 13:58:34 2001
+++ linux-2.4.14/drivers/block/loop.c	Mon Nov  5 17:06:08 2001
@@ -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;


> Ian Norton


cu
Adrian

-- 

Get my GPG key: finger bunk@debian.org | gpg --import

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-11-14 22:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-12 16:06 Kernel 2.4.14 compile fail (block.o) Ian Norton
2001-11-13  3:05 ` François Cami
2001-11-14 22:50 ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).