Mailing List Archive

Problems compiling drbd-0.5.7 on 2.2.18
I have been using drbd 0.5.6 and 0.5.7 on 2.2.17 for some time but would
would like to upgrade to Linux 2.2.18 with the VM Global (Andrea) patch for a
heavily used server, to avoid the danger of virtual memory running out and
causing server problems.

Drbd-0.5.7 seems to compile and run OK on 2.2.17, but not on 2.2.18. I have
tried the CVS version ( .#drbd.c.1.92) which compiles but the scripts have
changed and don't work properly on my system, also the drbd connection keeps
dropping, and takes lots of work to get it to connect in the first place, so
I will stick with 0.5.7, unless there is a good reason to go to the CVS
version.

I am sure I am doing something stupid and would appreciate any help. Below is
the failed make, I can't figure out why it has failed.

netlink:/usr/src/drbd57# make
make[1]: Entering directory `/usr/src/drbd57/user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/drbd57/user'
make[1]: Entering directory `/usr/src/drbd57/drbd'
gcc -c -D__KERNEL__ -DMODULE -O2 -Wall -m486 -DCPU=586 -malign-loops=2
-malign-jumps=2 -malign-functions=2
-fomit-frame-pointer-I/usr/src/linux/include -DMOD_VERSION=57
-DEXPORT_SYMTAB drbd.c

drbd.c:92: warning: `init_MUTEX_LOCKED' redefined
/usr/src/linux/include/asm/semaphore.h:45: warning: this is the location of
the previous definition
drbd.c:93: warning: `init_MUTEX' redefined
/usr/src/linux/include/asm/semaphore.h:44: warning: this is the location of
the previous definition
drbd.c:94: warning: `init_waitqueue_head' redefined
/usr/src/linux/include/linux/wait.h:24: warning: this is the location of the
previous definition
drbd.c:95: redefinition of `wait_queue_head_t'
/usr/src/linux/include/linux/wait.h:19: `wait_queue_head_t' previously
declared here
/usr/src/linux/include/linux/blk.h:461: warning: `do_nbd_request' declared
`static' but never defined
make[1]: *** [drbd.o] Error 1
make[1]: Leaving directory `/usr/src/drbd57/drbd'
make: *** [all] Error 2
netlink:/usr/src/drbd57#
Re: Problems compiling drbd-0.5.7 on 2.2.18 [ In reply to ]
On Sat, 27 Jan 2001, Steve Ball wrote:

> I have been using drbd 0.5.6 and 0.5.7 on 2.2.17 for some time but would
> would like to upgrade to Linux 2.2.18 with the VM Global (Andrea) patch for a
> heavily used server, to avoid the danger of virtual memory running out and
> causing server problems.
>
> Drbd-0.5.7 seems to compile and run OK on 2.2.17, but not on 2.2.18. I have
> tried the CVS version ( .#drbd.c.1.92) which compiles but the scripts have
> changed and don't work properly on my system, also the drbd connection keeps
> dropping, and takes lots of work to get it to connect in the first place, so
> I will stick with 0.5.7, unless there is a good reason to go to the CVS
> version.
>
> I am sure I am doing something stupid and would appreciate any help. Below is
> the failed make, I can't figure out why it has failed.

Use drbd.c from the CVS archive.