[Linux-cluster] make errors for 2.6.19 on fc6

Sridhar Ramaswamy (srramasw) srramasw at cisco.com
Mon Mar 19 03:14:49 UTC 2007


My distro is an old 2.6.9. So I ended up fixing the Makefile in that dir
to solve the problem.

[root at cfs1 dlm_controld]$ diff -cpt Makefile.ORG Makefile
*** Makefile.ORG        2006-08-11 08:18:15.000000000 -0700
--- Makefile    2007-02-27 15:08:39.000000000 -0800
*************** include ${top_srcdir}/make/defines.mk
*** 17,23 ****
  
  CFLAGS+= -g -I${incdir} -I${top_srcdir}/config
  
! CFLAGS+= -idirafter ${KERNEL_SRC}/include/linux \
          -I../../group/lib/ \
          -I../../ccs/lib/ \
          -I../../cman/lib/ \
--- 17,23 ----
  
  CFLAGS+= -g -I${incdir} -I${top_srcdir}/config
  
! CFLAGS+= -I${KERNEL_SRC}/include/ \
          -I../../group/lib/ \
          -I../../ccs/lib/ \


Also did the same for cluster-2.00.00/group/gfs_controld/Makefile for
similar error.

Thanks,
Sridhar 

> -----Original Message-----
> From: linux-cluster-bounces at redhat.com 
> [mailto:linux-cluster-bounces at redhat.com] On Behalf Of Rafael Bravo
> Sent: Sunday, March 18, 2007 3:58 PM
> To: linux clustering
> Subject: Re: [Linux-cluster] make errors for 2.6.19 on fc6
> 
> nirmal tom wrote:
> 
> > hi,
> > I am running fc6 and my  kernel version is 2.6.19-1.2911.fc6.I 
> > installed openais succesfully and i thind i dont need to install 
> > libvolume_id as i am running fc6,it already contains udev-095-14
> >
> > i downloaded development version using
> > cvs -d :pserver:cvs at sources.redhat.com:/cvs/cluster checkout cluster
> > and now when i run make , it fetches me the error
> > make -C dlm_controld all
> > make[2]: Entering directory `/opt/cluster/group/dlm_controld'
> > gcc -Wall  -g -I//usr/include -I../config -idirafter 
> > /usr/src/kernels/2.6.19-1.2911.fc6-i686/include/linux 
> > -I../../group/lib/ -I../../ccs/lib/ -I../../cman/lib/ 
> -I../include/ -c 
> > -o main.o main.c
> > main.c: In function 'setup_uevent':
> > main.c:188: error: 'NETLINK_KOBJECT_UEVENT' undeclared 
> (first use in 
> > this function)
> > main.c:188: error: (Each undeclared identifier is reported only once
> > main.c:188: error: for each function it appears in.)
> > make[2]: *** [main.o] Error 1
> > make[2]: Leaving directory `/opt/cluster/group/dlm_controld'
> > make[1]: *** [all] Error 2
> > make[1]: Leaving directory `/opt/cluster/group'
> > make: *** [all] Error 2
> >
> > As for stable verion is consent, i got the same error.
> 
>     Try...
>     # cd /usr/include
>     # mv linux linux.old
>     # ln -s 
> /usr/src/kernels/2.6.19-1.2911.fc6-i686/include/linux linux
>     Regards ;-)  
> 
> >
> > Thanks for any response.
> >
> > regards,
> > Nirmal Tom.
> >
> >
> > -- 
> > Linux-cluster mailing list
> > Linux-cluster at redhat.com
> > https://www.redhat.com/mailman/listinfo/linux-cluster
> 
> 
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster
> 




More information about the Linux-cluster mailing list