Mailing List Archive

compiling drbd, urgent help needed
Hi there,

this may be a stupid question, but maybe anyone will help me anyway:

I untared drbd-0.5.7.tgz in /usr/src

then I cd into drbd and type make. Here is what it says:

----------

make[1]: Wechsel in das Verzeichnis Verzeichnis »/usr/src/drbd/user«
make[1]: Für das Target »all« gibt es nichts zu tun.
make[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/drbd/user«
make[1]: Wechsel in das Verzeichnis Verzeichnis »/usr/src/drbd/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 -D__SMP__ -DMOD_VERSION=57 -DEXPORT_SYMTAB
drbd.c
drbd.c:1465:29: warning: pasting "new_conf" and "." does not give a valid
preprocessing token
drbd.c:1465:49: warning: pasting "conf" and "." does not give a valid
preprocessing token
drbd.c:1466:29: warning: pasting "new_conf" and "." does not give a valid
preprocessing token
drbd.c:1466:49: warning: pasting "conf" and "." does not give a valid
preprocessing token
drbd.c:1471:29: warning: pasting "new_conf" and "." does not give a valid
preprocessing token
drbd.c:1466:49: warning: pasting "conf" and "." does not give a valid
preprocessing token
drbd.c:1471:29: warning: pasting "new_conf" and "." does not give a valid
preprocessing token
drbd.c:1471:49: warning: pasting "conf" and "." does not give a valid
preprocessing token
drbd.c:1472:29: warning: pasting "new_conf" and "." does not give a valid
preprocessing token
drbd.c:1472:49: warning: pasting "conf" and "." does not give a valid
preprocessing token
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:453: warning: `do_nbd_request' declared
`static' but never defined
make[1]: *** [drbd.o] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/drbd/drbd«
make: *** [all] Fehler 2

--------

All this says to me, is that the drbd.o module can not be compiled. The Is
there any documentation about compiling drbd???

Does the kernel need to be patched? Is there any drbd.rpm for redhat-7.1??

I´m using redhat-7.1 and I need to run it there (kernel 2.4.2, but the
same with any other versions).

What am I doing wrong?


Martin
Re: compiling drbd, urgent help needed [ In reply to ]
Martin Burkard <martin@example.com> wrote:
>
> Hi there,
>
> this may be a stupid question, but maybe anyone will help me anyway:
>
> I untared drbd-0.5.7.tgz in /usr/src
>
> then I cd into drbd and type make. Here is what it says:

[SNIP]

> All this says to me, is that the drbd.o module can not be compiled. The Is
> there any documentation about compiling drbd???
>
> Does the kernel need to be patched? Is there any drbd.rpm for redhat-7.1??
>
> I´m using redhat-7.1 and I need to run it there (kernel 2.4.2, but the
> same with any other versions).
>
> What am I doing wrong?

Compiling drbd with kernel 2.4.2
AFAIK drbd only runs and compiles with kernel 2.2.

Juri

--
Juri Haberland <juri@example.com>