Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Lars Ellenberg wrote: > > / 2004-04-20 18:58:55 +0000 > \ Nuno Tavares: > > I can't compile either drbd-0.6.12 or drbd-0.7 in FC1. > > > > Here is the output: > > http://danuninho.dhis.org/~nmct/drbd.make.output.txt > > http://danuninho.dhis.org/~nmct/drbd-0.7.make.output.txt > > > > If you give me a clue on what's going on, perhaps I'll make it work. > > I'm downloading a vanilla kernel to match the differences, while I'm > > waiting. > > something on your box is very weird. both drbd 0.6 and 0.7 compile > without a single warning against linux-2.4.22-1.2135.nptl > ok, you mention linux-2.4.22-1.2115.nptl, but 2135 is what I have > available to verify. > linux-2.4.22-1.2135.nptl works. it was the first one I compiled against here. if you read drbd-0.6.12/INSTALL you see that you need to : cd /usr/src/linux-2.4.22-1.2115.nptl cp /boot/config-2.4.22-1.2115.nptl .config #Lars NOTE: it's config-2.4.some-thing not kernel-2.4.some-thing.config # at least under fedora. #then set the compiler correctly export CC=gcc32 I do not know why the Install file uses `make -s oldconfig_nonint` but `make oldconfig;make oldconfig` has always worked for me. Lars comment? on fedora you still need to do the editing to drbd_config.h (uncomment SIGHAND_HACK). OK, INSTALL file patch attached. this is against the INSTALL file that comes with drbd-0.6.12 BTW I think fedora put 2.4.22-1.2174.nptl out for security reasons, so you might want to upgrade the kernel any way. > sometimes a make mrproper helps. and, btw, make sure you use the right > compiler. redhat/fedora tends to use a different compiler for kernel > compiles than for everything else, and maybe you even need to install > the other version explicitly. I have no idea why they do so. Blasted anoying 'tis. -- Todd Denniston Crane Division, Naval Surface Warfare Center (NSWC Crane) Harnessing the Power of Technology for the Warfighter -------------- next part -------------- --- INSTALL.orig 2004-04-20 16:01:35.000000000 -0500 +++ INSTALL 2004-04-20 16:09:36.000000000 -0500 @@ -42,6 +42,7 @@ == Prepare the kernel source tree == all# cd /usr/src/linux + fedora# cd /usr/src/linux-2.4 The next step is just to be sure. If you know what it does, you probably can judge on your own whether it is necessary or @@ -74,6 +75,11 @@ redhat# cp /boot/kernel-2.4.some-thing.config .config # make -s oldconfig_nonint ; make -s oldconfig_nonint + fedora# cp /boot/config-2.4.some-thing .config + # export CC=gcc32 + # vi Makefile #mod EXTRAVERSION to match installed kernel + # make oldconfig ; make oldconfig + Note: If you consider to not run some vendor kernel, but compile your own kernel, you need to build in module support, since @@ -100,11 +106,11 @@ now build the module - Note: On some distros (redhat typically), you first need to have a look - into ./drbd_config.h, and (un)comment some of the + Note: On some distros (redhat/fedora typically), you first need to have a + look into ./drbd_config.h, and (un)comment some of the settings appropriately. - all# cd drbd-0.6.10/drbd # kernel module sub directory + all# cd drbd-0.6.12/drbd # kernel module sub directory all# make clean all BTW, this expects the kernel source to be in