[PATCH] fix Re: [Linux-cluster] Compiling error against kernel-2.6.12.2

Mikore Li mikore.li at gmail.com
Fri Aug 5 05:22:30 UTC 2005


Yes,Yes! It works!

Thanks,

Q.L

On 8/5/05, Fabio Massimo Di Nitto <fabbione at fabbione.net> wrote:
> Q.L wrote:
> > Hi,
> >
> > When I began to "make" on the RH9.0, I can't pass following errors,
> > could you help me?
> > however, it seems no compiling problem happen on a host with FC1.0.
> > further more, what's the special config required in kernel .config
> > file for GFS cluster?
> >
> > Thanks.
> >
> > Q.L
> >
> > cd ccs_tool && make install
> > make[2]: Entering directory `/home/share/cluster-1.00.00/ccs/ccs_tool'
> > gcc -Wall -I. -I../config -I../include -I../lib
> > -I/home/share/cluster-1.00.00/build/incdir -Wall -O2
> > -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE `xml2-config --cflags`
> > -DCCS_RELEASE_NAME=\"1.00.00\" -I. -I../config -I../include -I../lib
> > -I/home/share/cluster-1.00.00/build/incdir -o ccs_tool ccs_tool.c
> > update.c upgrade.c old_parser.c editconf.c -L../lib `xml2-config
> > --libs` -L/home/share/cluster-1.00.00/build/lib -lccs -lmagma
> > -lmagmamsg -ldl
> > /home/share/cluster-1.00.00/build/lib/libmagma.so: undefined reference
> > to `pthread_rwlock_rdlock'
> > /home/share/cluster-1.00.00/build/lib/libmagma.so: undefined reference
> > to `pthread_rwlock_unlock'
> > /home/share/cluster-1.00.00/build/lib/libmagma.so: undefined reference
> > to `pthread_rwlock_wrlock'
> >
> 
> It appears also in Ubuntu, but i am not sure why or what did lost a link to
> pthred. The patch in attachment fix the problem.
> 
> Fabio
> 
> --
> no signature file found.
> 
> 
> #! /bin/sh /usr/share/dpatch/dpatch-run
> ## ccs_tool_and_pthread_love.dpatch by  <fabbione at localhost.localdomain>
> ##
> ## All lines beginning with `## DP:' are a description of the patch.
> ## DP: No description.
> 
> @DPATCH@
> diff -urNad --exclude=CVS --exclude=.svn ./ccs/ccs_tool/Makefile /usr/src/dpatchtemp/dpep-work.OlU9tL/redhat-cluster-suite-1.20050729/ccs/ccs_tool/Makefile
> --- ./ccs/ccs_tool/Makefile     2005-07-29 06:48:35.000000000 +0200
> +++ /usr/src/dpatchtemp/dpep-work.OlU9tL/redhat-cluster-suite-1.20050729/ccs/ccs_tool/Makefile  2005-07-29 07:00:37.000000000 +0200
> @@ -25,7 +25,7 @@
>  endif
> 
>  LDFLAGS+= -L${ccs_libdir} `xml2-config --libs` -L${libdir}
> -LOADLIBES+= -lccs -lmagma -lmagmamsg -ldl
> +LOADLIBES+= -lccs -lmagma -lmagmamsg -ldl -lpthread
> 
>  all: ccs_tool
> 
> 
> 
>




More information about the Linux-cluster mailing list