Hi

after I put LIBS='/lib/liuuid.so.1' after ./configure, this problem 
disappeared, but a new error comes out:

cc1: warnings being treated as errors
main.c:64: warning: function declaration isn’t a prototype
main.c:78: warning: function declaration isn’t a prototype
gmake[2]: *** [main.o] Error 1
gmake[2]: Leaving directory 
`/root/Reusable-Cluster-Components-glue-1.0.6/lib/stonith'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/root/Reusable-Cluster-Components-glue-1.0.6/lib'
make: *** [all-recursive] Error 1

I googled, but don't find a answer. I do think some of you me this 
before, and can give me some hints and help.

thank you.

Tang Jianwei


On 08/14/2010 02:12 PM, Tang Jianwei wrote:
> Hi Mr. Carter,
>
> thank you for your answer. but I still have the problem.
>
> first, I changed the line 'LIBS = -lbz2 -lxml2 -lc -lrt -ldl -L/lib 
> -lglib-2.0' to 'LIBS = -lbz2 -lxml2 -lc -lrt -ldl -L/lib -lglib-2.0 
> /lib/liuuid.so.1' from Makefile, but the same problem still exists. I 
> checked the file /lib/liuuid.so.1, it does exist and point to 
> /lib/libuuid.so.1.2
>
> second, what do you mean of the 'new server'? what distribution and 
> release do you use?
>
> Tang Jianwei
>
>
> On 08/14/2010 01:43 PM, Skip Carter wrote:
>> Tang,
>>
>> On Sat, 14 Aug 2010 11:07:31 +0800
>> Tang Jianwei<[email protected]> wrote:
>>
>>> I got the errors like this while compiling cluster glue:
>>>
>>> ../.libs/libplumb.so: undefined reference to `uuid_parse'
>>> ../.libs/libplumb.so: undefined reference to `uuid_generate'
>>> ../.libs/libplumb.so: undefined reference to `uuid_copy'
>>> ../.libs/libplumb.so: undefined reference to `uuid_is_null'
>>> ../.libs/libplumb.so: undefined reference to `uuid_unparse'
>>> ../.libs/libplumb.so: undefined reference to `uuid_clear'
>>> ../.libs/libplumb.so: undefined reference to `uuid_compare'
>>
>> I had the same problem when compiling on an old server that I am 
>> unable to upgrade (for now); I did
>> not have this problem on a newer server.
>>
>> I fixed it by changing the line Libraries line:
>>
>>> CFLAGS = -g -O2 -ggdb3 -O0 -fgnu89-inline -fstack-protector-all 
>>> -Wall -Waggregate-return -Wbad-function-cast -Wcast-qual 
>>> -Wcast-align -Wdeclaration-after-statement -Wendif-labels 
>>> -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral 
>>> -Winline -Wmissing-prototypes -Wmissing-declarations 
>>> -Wmissing-format-attribute -Wnested-externs -Wno-long-long 
>>> -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes 
>>> -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror
>>> Libraries = -lbz2 -lxml2 -lc -lrt -ldl -L/lib -lglib-2.0
>>> Stack Libraries =
>> To:
>> Libraries = -lbz2 -lxml2 -lc -lrt -ldl -L/lib -lglib-2.0 
>> /lib/libuuid.so.1
>>
>>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to