[DRBD-user] drbd-0.7.21 on RHEL-3

Eric Pretorious epretorious at vmware.com
Fri Oct 6 22:29:16 CEST 2006

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


No, I'm pretty sure that this isn't the problem: drbd-0.7.13 fails with the
same error:

> In file included from /usr/src/linux-2.4.21-27.EL/include/linux/mm.h:22,
>                  from /usr/src/linux-2.4.21-27.EL/include/linux/slab.h:14,
>                  from drbd_actlog.c:28:
> /usr/src/linux-2.4.21-27.EL/include/linux/sched.h:6: invalid suffix on
integer constant
> /usr/src/linux-2.4.21-27.EL/include/linux/sched.h:6: syntax error before
numeric constant
> /usr/src/linux-2.4.21-27.EL/include/linux/sched.h:6: warning: function
declaration isn't a prototype
> make[2]: *** [drbd_actlog.o] Error 1
> make[2]: Leaving directory `/usr/local/src/drbd-0.7.13/drbd'
> make[1]: *** [_mod_/usr/local/src/drbd-0.7.13/drbd] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.21-27.EL'
> make: *** [kbuild] Error 2

kernel-source-2.4.21-27.EL requires gcc >= 2.96-98 and *suggests*
gcc-3.2.3-47.i386.rpm:

> [root at vm2 drbd]# rpm -ivh ~/kernel-source-2.4.21-27.EL.i386.rpm
> warning: /root/kernel-source-2.4.21-27.EL.i386.rpm: V3 DSA signature:
NOKEY, key ID db42a60e
> error: Failed dependencies:
>         gcc >= 2.96-98 is needed by kernel-source-2.4.21-27.EL
>     Suggested resolutions:
>         gcc-3.2.3-47.i386.rpm

Because gcc-3.2.3-47 is already available on our repository, I installed it:

> [root at vm2 drbd]# which gcc
> /usr/bin/gcc
> 
> [root at vm2 drbd]# gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man \
>   --infodir=/usr/share/info --enable-shared --enable-threads=posix \
>   --disable-checking --with-system-zlib --enable-__cxa_atexit \
>   --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47)
> 
> [root at vm2 drbd]# which gcc296
> /usr/bin/gcc296

Any ideas?

Eric P.
Palo Alto, CA


-----Original Message-----
From: drbd-user-bounces at lists.linbit.com on behalf of KOZMAN Balint
Sent: Fri 10/6/2006 2:37 AM
To: drbd-user at lists.linbit.com
Subject: Re: [DRBD-user] drbd-0.7.21 on RHEL-3
 

Hi,

I guess that the major problem is that kernel 2.4.21 is pretty much old
for recent drbd releases. I would suggest you to give it a try with a more
recent kernel source.
Others, please correct me, if I'm wrong.


Balint


On Thu, 5 Oct 2006, Eric Pretorious wrote:

> Hello, All:
>
> I'm attempting to `make` drbd-0.7.21 on Red Hat Enterprise Linux 3 but get
> this error:
>
> > In file included from /usr/src/linux-2.4.21-27.EL/include/linux/mm.h:22,
> >                  from
/usr/src/linux-2.4.21-27.EL/include/linux/slab.h:14,
> >                  from drbd_actlog.c:28:
> > /usr/src/linux-2.4.21-27.EL/include/linux/sched.h:6: invalid suffix on
> integer constant
> > /usr/src/linux-2.4.21-27.EL/include/linux/sched.h:6: syntax error before
> numeric constant
> > /usr/src/linux-2.4.21-27.EL/include/linux/sched.h:6: warning: function
> declaration isn't a prototype
> > make[3]: *** [drbd_actlog.o] Error 1
> > make[3]: Leaving directory `/usr/local/src/drbd-0.7.21/drbd'
> > make[2]: *** [_mod_/usr/local/src/drbd-0.7.21/drbd] Error 2
> > make[2]: Leaving directory `/usr/src/linux-2.4.21-27.EL'
> > make[1]: *** [kbuild] Error 2
> > make[1]: Leaving directory `/usr/local/src/drbd-0.7.21/drbd'
> > make: *** [all] Error 2
>
> What does this mean? How can I fix it?
>
> Eric P.
> Palo Alto, CA
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
>

_______________________________________________
drbd-user mailing list
drbd-user at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user




More information about the drbd-user mailing list