[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Probelm compiling Cluster package.



On Mon, May 14, 2007 at 01:17:40PM -0500, Robert Peterson wrote:
> Santiago Del Castillo wrote:
> >Tank you David. It worked. But now i'm getting this:
> >
> >gcc -Wall -I/home/sdcastillo/sources/cluster/config -DHELPER_PROGRAM
> >-D_FILE_OFFSET_BITS=64 -DGFS2_RELEASE_NAME=\"DEVEL.1178569990\" -ggdb
> >-I/usr/include -I../include -I../libgfs2 -c -o gfs2hex.o gfs2hex.c
> >In file included from hexedit.h:21,
> >                from gfs2hex.c:26:
> >/usr/include/linux/gfs2_ondisk.h:53: error: expected
> >specifier-qualifier-list before '__be64'
> >
> >Cheers!
> >Santiago
> 
> Hi Santiago,
> 
> The gfs2_edit tool pulls in the gfs2 kernel data structures from
> the kernel source.  I don't get these errors.  On my system, the 
> declarations for __be64 are pulled in by this statement (which is 
> already in gfs2hex.c):
> 
> #include <linux/types.h>
> 
> I'm not sure what's going on here, but perhaps you're running an older
> kernel and are missing some stuff from the newer kernel trees.
> Ordinarily, you would first do something like:
> 
> ./configure --kernel_src=/home/sdcastillo/sources/cluster/gfs2-2.6-nmw.git

/usr/include/linux/types.h
/usr/src/linux/include/linux/types.h

aren't typically the same file, so the kernel source you use for building
probably won't matter.  The first comes with the distribution, something
like a kernel-headers package.  You might get by with cheating and
replacing the first with the second...

Dave


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]