[DRBD-user] drbd-0.7.21 on RHEL-3

Lars Ellenberg Lars.Ellenberg at linbit.com
Tue Oct 10 10:21:16 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.


/ 2006-10-09 16:17:28 -0700
\ Eric Pretorious:
> I've carefully re-read the directions listed in ./INSTALL and found that I
> may have made a crucial misstep by issuing `make clean all` from
> /usr/local/src/drbd-0.7.21 (instead of /usr/local/src/drbd-0.7.21/drbd) so I
> wiped everything clear and started from scratch:
> 
> > [root at vm2 drbd]#  rpm --erase kernel-source
> > [root at vm2 drbd]#  rpm -Uvh kernel-source-2.4.21-27.EL.i386.rpm
> > [root at vm2 drbd]#  cd /usr/src/linux-2.4.21-27.EL/ 
> > [root at vm2 drbd]#  make mrproper
> > [root at vm2 drbd]#  cp /boot/config-2.4.21-27.EL .config
> > [root at vm2 drbd]#  vi Makefile     <== edited EXTRAVERSION

 make oldconfig ?

> > [root at vm2 drbd]#  make dep
> > [root at vm2 drbd]#  make include/linux/version.h     <== make:
> `include/linux/version.h' is up to date.
> > [root at vm2 drbd]#  cd /usr/local/src/drbd-0.7.21/drbd
> > [root at vm2 drbd]#  make clean all
> 
> ...but still, compiling fails:
> 
> > [root at vm2 drbd]# make clean all
> > rm -rf .tmp_versions
> > rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*
> > 
> >     Calling toplevel makefile of kernel source tree, which I believe is in
> >     KDIR=/lib/modules/2.4.21-27.EL/build
> > 
> > trying to make dep ...
> > /bin/sh: line 1: cd: /usr/src/linux-2.4.21-27.EL/include/linux/modules: No
> such file or directory


if it is not there, drbd cannot create it. kernel make has to create it.

> > /usr/src/linux-2.4.21-27.EL/include/linux/modversions.h was updated
> > find: /usr/src/linux-2.4.21-27.EL/include/asm: No such file or directory

the same.

> > test -f ../scripts/adjust_drbd_config_h.sh && \
> >  KDIR=/lib/modules/2.4.21-27.EL/build /bin/sh
> ../scripts/adjust_drbd_config_h.sh
> > ls: /lib/modules/2.4.21-27.EL/build/include/asm/bitops.h: No such file or

again.

> > make[1]: *** No rule to make target `include/linux/autoconf.h', needed by

... and again ...

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list