[Linux-cluster] Troubles to install GFS on Debian

Robert Peterson rpeterso at redhat.com
Wed Sep 20 20:38:36 UTC 2006


Jeronimo Bezerra wrote:
> Hello All.
>
> I'm having a big trouble here to compile the gfs on Debian. I downloaded
> from CVS, and did the follow:
>
> cd /usr/src
> ln -s linux-source-2.6.16 linux-2.6
> cd cluster
> ./configure
> make
>
> After that, the make command returns the follow:
>
> make[2]: Entering directory `/usr/src/cluster/group/daemon
> (...)
> gcc -Wall  -g -I. -I../include/ -I../../cman/lib/ -I../lib/ -c -o
> joinleave.o joinleave.c
> joinleave.c: In function `do_leave':
> joinleave.c:129: warning: long long unsigned int format, uint64_t arg
> (arg 7)
> joinleave.c:136: warning: long long unsigned int format, uint64_t arg
> (arg 7)
> gcc -Wall  -g -I. -I../include/ -I../../cman/lib/ -I../lib/ -c -o main.o
> main.c
> main.c: In function `app_deliver':
> main.c:180: warning: int format, different type arg (arg 6)
> gcc -L//usr/src/cluster/group/../cman/lib -L//usr/lib64/openais
> -L//usr/lib64 -o groupd app.o cpg.o cman.o joinleave.o main.o -lcman
> -lcpg
> /usr/bin/ld: cannot find -lcpg
> collect2: ld returned 1 exit status
> make[2]: *** [groupd] Error 1
> make[2]: Leaving directory `/usr/src/cluster/group/daemon'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/src/cluster/group'
> make: *** [all] Error 2
>
> In the directory /usr/src/cluster/group/daemon :
>
> app.c  app.o  cman.c  cman.o  cpg.c  cpg.o  CVS  gd_internal.h  groupd.h
> joinleave.c  joinleave.o  main.c  main.o  Makefile
>
> ie, the gcc loads the cman (-lcman) but doesn't with cgp (-lcpg). 
>
> Why this happen? Is there a best howto to install gfs on Debian? or
> another way??
>
> Thanks a lot
>
> Jeronimo Bezerra
Hi Jeronimo,

libcpg is part of openais, so I suspect you're missing openais.
Here is a usage.txt file that is a good resource for building the 
development
tree of cluster/GFS from source.
http://sources.redhat.com/cgi-bin/cvsweb.cgi/cluster/doc/usage.txt?cvsroot=cluster

Regards,

Bob Peterson
Red Hat Cluster Suite




More information about the Linux-cluster mailing list