[DRBD-user] Fedora Core 1 compile problems
wdooley62 at msn.com
Fri Feb 20 03:27:57 CET 2004
Thanks for the input.
This may help others who have wanted to take on this challenge to build
My steps that I took to a complete build drbd-0.6.11
drbd-0.6.10 version has problems with the build process so I chose
to try drbd-0.6.11.
logged in as root user.
These proceedures are required to prep the kernel tree for drbd.
download and install the kernel-sources for your distribution for fedora
it is kernel-source-2.4.22-1.2115.nptl
intall it by issuing command
# rpm -ivh kernel-source-2.4.22-1.2115.nptl
# cd /usr/src/linux-2.4.22-1.2115.nptl/
Modified the Makefile in that directory by removing the custom portion of
the EXTRAVERSION line to look like this below
EXTRAVERSION = -1.2115.nptl
then issued command
# make mrproper
then copy the orignal configuration file for building the kernel into the
The original configuration file is found in the /boot directory called
# cp /boot/config-2.4.22-1.2115.nptl
# make oldconfig
# make dep
Didn't have to make bzImage
Now on to the drbd portion of the.
Download and install drbd into the /usr/src/ directory
change directory to
# cd /usr/src/
uncompress and untar it with the command
# tar -zxvf drbd-0.6.11.tar.gz
Now you need to modify some files for drbd to build properly
You need modify drbd_config.h and drbd.spec.in
# cd drbd-0.6.11
uncomment the #define SIGHAND_HACK in the drbd_config.h by deleting
the two forward slashes preceeding the line and save.
comment the find sbin/rcdrbd -printf "/%p\n" >> "$FILELIST" by placing a
# in front of it and save.
now make the rpm by issuing command
# make rpm KDIR=/usr/src/linux-2.4.22-1.2115.nptl/
This should build with no errors.
The rpms are built and place in the /usr/src/drbd-06.11/dist/RPMS/i386
install the rpms by issuing command
# rpm -ivh drbd-0.6.11-3.i386.rpm
# rpm -ivh drbd-km-2.4.22_1.2115.nptl-0.6.11-3.i386.rpm
# rpm -ivh drbd-debuginfo-0.6.11-3.i386.rpm
Todd thanks again on the help
I was getting hung up on the .config issue. I didn't quite know where to
the orginal .config file inorder to do a proper build.
Stay informed on Election 2004 and the race to Super Tuesday.
More information about the drbd-user