[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha-dev
Subject:    Re: [Linux-ha-dev] Re: Compiling Linux-HA on Solaris8/9: Recipe.
From:       abe <linux-ha () vmstat ! org>
Date:       2005-05-24 13:32:15
Message-ID: 42932CDF.8000703 () vmstat ! org
[Download RAW message or body]

Alan,

I've tried the patch on 1.2.3. The patch command complained that there's 
something wrong so
I manually edited the Makefile.am. However it doesn't fix the problem.

On the CVS version, since there's no configure, and the ConfigureMe 
configure requires too
many things. I'm still trying to get it compiled.

What information would you need to debug?

Good-day,
Abe

Alan Robertson wrote:

> abe wrote:
>
>> Hi, guys,
>>
>> Thanks to help from a guy in France, the culprit found.
>> Somehow without an LD_FLAGS of -lintl, the compilaiton won't work.
>>
>> The guy has a pretty long list of LD_FLAGS=, GLD=, GAS=, etc. He 
>> probably
>> just added these on the way when he was trying to make compilation work.
>>
>> I have narrowed it down to one cause: the -lintl. It is the cure for 
>> this error message
>> from gmake:
>>
>>   Undefined                       first referenced
>>    symbol                             in file
>>   libintl_bindtextdomain              ./.libs/libstonith.so
>>   ld: fatal: Symbol referencing errors. No output written to 
>> .libs/stonith
>>
>> Here's the resipe I used to cook up the heartbeat on Solaris 8/9:
>
>
>
> Why don't you add a page on the Wiki about this --- Maybe 
> LinuxHAOnSolaris or something like that... ??
>
> I'm a little surprised we didn't add the right library for that...
>
> In fact, I see the code for including it in the configure.in file...
>
> So, I'm a little puzzled by this...
>
> But, I see that although we set this macro that it doesn't look like 
> libstonith uses it...
>
>
> How about applying the attached patch to the lib/stonith/Makefile.am 
> file?
>
>------------------------------------------------------------------------
>
>Index: Makefile.am
>===================================================================
>RCS file: /home/cvs/linux-ha/linux-ha/lib/stonith/Makefile.am,v
>retrieving revision 1.13.2.1
>diff -u -r1.13.2.1 Makefile.am
>--- Makefile.am	20 Apr 2004 09:08:51 -0000	1.13.2.1
>+++ Makefile.am	20 May 2005 06:01:17 -0000
>@@ -51,7 +51,7 @@
> libstonith_la_SOURCES	= expect.c stonith.c
> libstonith_la_LDFLAGS	= -version-info 0:0:0
> libstonith_la_LIBADD	= -L$(top_builddir)/lib/pils/ \
>-			-L$(top_builddir)/lib/pils/.libs/ -lpils $(GLIBLIB)
>+			-L$(top_builddir)/lib/pils/.libs/ -lpils $(GLIBLIB) @LIBADD_INTL@
> 
> ## Man pages
> 
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________________
>Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
>http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>Home Page: http://linux-ha.org/
>  
>

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic