[Linux-cluster] gfs2 mount compile issue

Asbjørn Sannes ace at sannes.org
Tue Feb 20 11:07:34 UTC 2007


Trying to compile the cvs cluster suite (from CVS) I get problems:

make[2]: Leaving directory `/root/cluster/cluster/gfs2/mkfs'
make -C mount all
make[2]: Entering directory `/root/cluster/cluster/gfs2/mount'
gcc -Wall -I../include -I../config -I//usr/include/cluster -I//usr/include
-I../../gfs-kernel/src/gfs -I//usr/include -O2 -DHELPER_PROGRAM
-D_FILE_OFFSET_BITS=64 -DGFS2_RELEASE_NAME=\"DEVEL.1171969058\"
-D_GNU_SOURCE -I../include -I../config -I//usr/include/cluster
-I//usr/include -I../../gfs-kernel/src/gfs -I//usr/include -c -o
mount.gfs2.o mount.gfs2.c
gcc -Wall -I../include -I../config -I//usr/include/cluster -I//usr/include
-I../../gfs-kernel/src/gfs -I//usr/include -O2 -DHELPER_PROGRAM
-D_FILE_OFFSET_BITS=64 -DGFS2_RELEASE_NAME=\"DEVEL.1171969058\"
-D_GNU_SOURCE -I../include -I../config -I//usr/include/cluster
-I//usr/include -I../../gfs-kernel/src/gfs -I//usr/include -c -o ondisk1.o
ondisk1.c
gcc -Wall -I../include -I../config -I//usr/include/cluster -I//usr/include
-I../../gfs-kernel/src/gfs -I//usr/include -O2 -DHELPER_PROGRAM
-D_FILE_OFFSET_BITS=64 -DGFS2_RELEASE_NAME=\"DEVEL.1171969058\"
-D_GNU_SOURCE -I../include -I../config -I//usr/include/cluster
-I//usr/include -I../../gfs-kernel/src/gfs -I//usr/include -c -o ondisk2.o
ondisk2.c
In file included from /usr/include/asm/types.h:5,
                 from /usr/include/linux/types.h:7,
                 from /usr/include/linux/gfs2_ondisk.h:13,
                 from ondisk2.c:33:
/usr/include/asm-x86_64/types.h:23: error: conflicting types for 'uint64_t'
/usr/include/gentoo-multilib/amd64/stdint.h:56: error: previous
declaration of 'uint64_t' was here
make[2]: *** [ondisk2.o] Error 1
make[2]: Leaving directory `/root/cluster/cluster/gfs2/mount'
make[1]: *** [tag_mount] Error 2
make[1]: Leaving directory `/root/cluster/cluster/gfs2'
make: *** [all] Error 2

Adding #define _LINUX_TYPES_H to gfs2/mount/ondisk2.c makes it compile,
but I don't know if that is correct.


Greetings,
Asbjørn Sannes





More information about the Linux-cluster mailing list