[DRBD-user] Problem building 0.7.21 modules on x86_64 without CONFIG_COMPAT defined

Harry Edmon harry at atmos.washington.edu
Sat Sep 2 19:04:41 CEST 2006

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


On a x86_64 architecture system and a 2.6.17.11 kernel, if you do not have 
CONFIG_COMPAT defined (which is turned off when CONFIG_IA32_EMULATION is off) 
you get the following errors:

make -C /lib/modules/2.6.17.11/build SUBDIRS=/usr/src/drbd-0.7.21/drbd  modules
make[1]: Entering directory `/usr/src/linux-2.6.17.11'
   CC [M]  /usr/src/drbd-0.7.21/drbd/drbd_sizeof_sanity_check.o
   CC [M]  /usr/src/drbd-0.7.21/drbd/drbd_buildtag.o
   CC [M]  /usr/src/drbd-0.7.21/drbd/drbd_bitmap.o
   CC [M]  /usr/src/drbd-0.7.21/drbd/drbd_fs.o
   CC [M]  /usr/src/drbd-0.7.21/drbd/drbd_proc.o
   CC [M]  /usr/src/drbd-0.7.21/drbd/drbd_worker.o
   CC [M]  /usr/src/drbd-0.7.21/drbd/drbd_receiver.o
   CC [M]  /usr/src/drbd-0.7.21/drbd/drbd_req.o
   CC [M]  /usr/src/drbd-0.7.21/drbd/drbd_actlog.o
   CC [M]  /usr/src/drbd-0.7.21/drbd/lru_cache.o
   CC [M]  /usr/src/drbd-0.7.21/drbd/drbd_main.o
/usr/src/drbd-0.7.21/drbd/drbd_main.c: In function â:
/usr/src/drbd-0.7.21/drbd/drbd_main.c:1668: warning: implicit declaration of 
function â
/usr/src/drbd-0.7.21/drbd/drbd_main.c: In function â:
/usr/src/drbd-0.7.21/drbd/drbd_main.c:1904: warning: implicit declaration of 
function â
   LD [M]  /usr/src/drbd-0.7.21/drbd/drbd.o
   Building modules, stage 2.
   MODPOST
WARNING: "unregister_ioctl32_conversion" [/usr/src/drbd-0.7.21/drbd/drbd.ko] 
undefined!
WARNING: "register_ioctl32_conversion" [/usr/src/drbd-0.7.21/drbd/drbd.ko] 
undefined!
   CC      /usr/src/drbd-0.7.21/drbd/drbd.mod.o
   LD [M]  /usr/src/drbd-0.7.21/drbd/drbd.ko
make[1]: Leaving directory `/usr/src/linux-2.6.17.11'
mv .drbd_kernelrelease.new .drbd_kernelrelease
Memorizing module configuration ... done.

The resultant module will not load.  When I remove the "defined(CONFIG_X86_64)" 
clauses from drbd_main.c, it compiles, loads, and runs okay.

-- 
  Dr. Harry Edmon			E-MAIL: harry at atmos.washington.edu
  206-543-0547				harry at u.washington.edu
  Dept of Atmospheric Sciences		FAX:	206-543-0308
  University of Washington, Box 351640, Seattle, WA 98195-1640



More information about the drbd-user mailing list