[DRBD-user] Fedora Core 1 compile problems

William Dooley wdooley62 at msn.com
Thu Feb 19 04:56:01 CET 2004

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

I am having a lot of problems compiling drbd-0.6.10

I have installed the kernel-source for my distro
took out the custom part of the Makefile

it now looks like this
EXTRAVERSION = -1.2115.nptl

# make mrproper
# make menuconfig
after the menu came up I just saved it.
a default config was copied automatically

# make dep
# make include/linux/version.h

NOTE: I think your documentation on the www.drbd.org site says
# make linux/include/version.h  that didn't work.

then I installed your tarball

untarred it into

edited the drbd_config.h
uncommented the #define SIGHAND_HACK line

then tried to build the rpm
# make rpm KDIR=/usr/src/linux-2.4.22-1.2115.nptl/

It starts the build and during the compile it errors, start of errors

make -C /usr/src/linux-2.4.22-1.2115.nptl/ 
SUBDIRS=/usr/src/drbd-0.6.10/dist/BUILD/drbd-0.6.10/drbd  modules
make[3]: Entering directory `/usr/src/linux-2.4.22-1.2115.nptl'
make -r -f tmp_include_depends all
make[4]: Entering directory `/usr/src/linux-2.4.22-1.2115.nptl'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl'
make -C  /usr/src/drbd-0.6.10/dist/BUILD/drbd-0.6.10/drbd 
CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.22-1.2115.nptl/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE 
make[4]: Entering directory 
gcc32 -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2115.nptl/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE 
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/modversions.h  -nostdinc 
-iwithprefix include -DKBUILD_BASENAME=drbd_fs  -c -o drbd_fs.o drbd_fs.c
In file included from 
                 from drbd_fs.c:39:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/sched.h:6: invalid suffix on 
integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/sched.h:6: syntax error 
before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/sched.h:6: warning: function 
declaration isn't a prototype

many more errors follow and ends like this

make[2]: Leaving directory 
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/src/drbd-0.6.10/dist/BUILD/drbd-0.6.10'
error: Bad exit status from /var/tmp/rpm-tmp.32103 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.32103 (%build)
make: *** [rpm] Error 1

what am I doing incorrect
any help would be appreciated.


Get fast, reliable access with MSN 9 Dial-up. Click here for Special Offer! 

More information about the drbd-user mailing list