[Linux-cluster] Probelm compiling Cluster package.

Santiago Del Castillo santiago.del.castillo at fnbox.com
Tue May 8 14:47:39 UTC 2007


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'
/usr/include/linux/gfs2_ondisk.h:90: error: expected
specifier-qualifier-list before '__be32'
/usr/include/linux/gfs2_ondisk.h:125: error: expected
specifier-qualifier-list before '__be32'
/usr/include/linux/gfs2_ondisk.h:164: error: expected
specifier-qualifier-list before '__be64'
/usr/include/linux/gfs2_ondisk.h:206: error: expected
specifier-qualifier-list before '__be32'
/usr/include/linux/gfs2_ondisk.h:227: error: expected
specifier-qualifier-list before '__be64'
/usr/include/linux/gfs2_ondisk.h:285: error: expected
specifier-qualifier-list before '__be32'
/usr/include/linux/gfs2_ondisk.h:352: error: expected
specifier-qualifier-list before '__be32'
/usr/include/linux/gfs2_ondisk.h:366: error: expected
specifier-qualifier-list before '__be16'
/usr/include/linux/gfs2_ondisk.h:392: error: expected
specifier-qualifier-list before '__be32'
/usr/include/linux/gfs2_ondisk.h:410: error: expected
specifier-qualifier-list before '__be64'
/usr/include/linux/gfs2_ondisk.h:446: error: expected
specifier-qualifier-list before '__be32'
/usr/include/linux/gfs2_ondisk.h:463: error: expected
specifier-qualifier-list before '__be64'
/usr/include/linux/gfs2_ondisk.h:479: error: expected
specifier-qualifier-list before '__be64'
/usr/include/linux/gfs2_ondisk.h:499: error: expected
specifier-qualifier-list before '__be64'
gfs2hex.c: In function 'indirect_dirent':
gfs2hex.c:187: error: 'struct gfs2_dirent' has no member named 'de_rec_len'
gfs2hex.c:188: error: 'struct gfs2_dirent' has no member named 'de_rec_len'
gfs2hex.c:190: error: 'struct gfs2_inum' has no member named 'no_addr'
gfs2hex.c:191: error: 'struct gfs2_inum' has no member named 'no_addr'
gfs2hex.c:194: error: 'struct gfs2_dirent' has no member named 'de_name_len'
gfs2hex.c:195: error: 'struct gfs2_inum' has no member named 'no_addr'
gfs2hex.c:199: error: 'struct gfs2_dirent' has no member named 'de_rec_len'
gfs2hex.c:200: warning: control reaches end of non-void function
gfs2hex.c: In function 'do_dinode_extended':
gfs2hex.c:221: error: 'struct gfs2_dinode' has no member named 'di_mode'
gfs2hex.c:222: error: 'struct gfs2_dinode' has no member named '__pad1'
gfs2hex.c:226: error: 'struct gfs2_dinode' has no member named 'di_height'
gfs2hex.c:240: error: 'struct gfs2_dinode' has no member named 'di_flags'
gfs2hex.c:253: error: 'struct gfs2_dinode' has no member named 'di_flags'
gfs2hex.c:254: error: 'struct gfs2_dinode' has no member named 'di_height'
gfs2hex.c:260: error: 'struct gfs2_dinode' has no member named 'di_depth'
gfs2hex.c:264: error: 'struct gfs2_dinode' has no member named 'di_size'
gfs2hex.c: In function 'do_leaf_extended':
gfs2hex.c:350: error: 'struct gfs2_dirent' has no member named 'de_rec_len'
gfs2hex.c:353: error: 'struct gfs2_inum' has no member named 'no_addr'
gfs2hex.c: In function 'do_eattr_extended':
gfs2hex.c:384: error: 'struct gfs2_ea_header' has no member named 'ea_rec_len'
gfs2hex.c: In function 'gfs2_inum_print2':
gfs2hex.c:402: error: 'struct gfs2_inum' has no member named 'no_formal_ino'
gfs2hex.c:405: error: 'struct gfs2_inum' has no member named 'no_addr'
gfs2hex.c: In function 'gfs2_sb_print2':
gfs2hex.c:416: error: 'struct gfs2_sb' has no member named 'sb_fs_format'
gfs2hex.c:417: error: 'struct gfs2_sb' has no member named 'sb_multihost_format'
gfs2hex.c:419: error: 'struct gfs2_sb' has no member named 'sb_bsize'
gfs2hex.c:420: error: 'struct gfs2_sb' has no member named 'sb_bsize_shift'
gfs2hex.c:426: error: 'struct gfs2_sb' has no member named 'sb_master_dir'
gfs2hex.c:427: error: 'struct gfs2_sb' has no member named 'sb_root_dir'
gfs2hex.c:429: error: 'struct gfs2_sb' has no member named 'sb_lockproto'
gfs2hex.c:430: error: 'struct gfs2_sb' has no member named 'sb_locktable'
gfs2hex.c: In function 'display_gfs2':
gfs2hex.c:470: error: 'struct gfs2_meta_header' has no member named 'mh_type'
make[2]: *** [gfs2hex.o] Error 1
make[2]: Leaving directory `/home/sdcastillo/sources/cluster/gfs2/edit'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sdcastillo/sources/cluster/gfs2'
make: *** [gfs2] Error 2

Cheers!
Santiago

On 5/7/07, David Teigland <teigland at redhat.com> wrote:
> On Mon, May 07, 2007 at 06:18:51PM -0300, Santiago Del Castillo wrote:
> > Hi!
> >
> > While trying to compile CVS cluster sources against gfs2-2.6-fixes
> > kernel sources (retreived from git
> > linux/kernel/git/steve/gfs2-2.6-fixes.git) i get this error:
> >
> > make[2]: Entering directory
> > `/home/sdcastillo/sources/GFS/cluster-2.00.00/dlm/lib'
> > gcc -Wall  -g -I. -O2  -D_REENTRANT -c -o libdlm.o libdlm.c
> > In file included from libdlm.c:48:
> > /usr/include/linux/dlm_device.h:32: error: expected ':', ',', ';', '}'
> > or '__attribute__' before '*' token
> > /usr/include/linux/dlm_device.h:63: error: expected ':', ',', ';', '}'
> > or '__attribute__' before '*' token
>
> The problem is the __user tags in /usr/include/linux/dlm_device.h, if you
> edit dlm_device.h and remove them it should work.
>
> Dave
>
>




More information about the Linux-cluster mailing list