[DRBD-user] Redhat ES 3 compile error

Lars Ellenberg Lars.Ellenberg at linbit.com
Sun Jul 25 10:24:47 CEST 2004

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


/ 2004-07-25 00:39:54 -0400
\ Kelly Opal:
> Hi
> 	I got everthing to compile but when I go to instal it I get the
> following error and can find nothing archives for it.
> 
> /sbin/insmod drbd
> Using /lib/modules/2.4.21-15.EL/kernel/drivers/block/drbd.o
> /lib/modules/2.4.21-15.EL/kernel/drivers/block/drbd.o: unresolved symbol
> page_count

it is just a macro, defined in mm.h.
it should not be referenced at all.
did you get any warnings during compile?

it could help to include mm.h explicitly,
though it was included implicitly anyways:

	Lars Ellenberg

--- drbd_main.c (revision 1454)
+++ drbd_main.c (working copy)
@@ -44,6 +44,7 @@
 #include <linux/file.h>
 #include <linux/proc_fs.h>
 #include <linux/init.h>
+#include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/devfs_fs_kernel.h>
 
--- drbd_receiver.c     (revision 1454)
+++ drbd_receiver.c     (working copy)
@@ -38,6 +38,7 @@
 #include <linux/version.h>
 #include <linux/fs.h>
 #include <linux/file.h>
+#include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/smp_lock.h>
 #include <linux/pkt_sched.h>


-- 
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list