Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get heartbeat (linux-ha) to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
whit
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 121
Location: VT

PostPosted: Mon Dec 30, 2002 6:51 pm    Post subject: Can't get heartbeat (linux-ha) to compile Reply with quote

What with Debian stable getting increasingly flakey for server use, I bit the bullet and am setting up a production server for a client with Gentoo. Impressively saner so far, but as a finishing touch I need to get heartbeat installed, to get failover to a backup machine working. There's no ebuild yet, so I'm trying to build from the tar, which leads me to a series of errors that don't say much to me, but may be suggesting that gcc isn't happy with the heartbeat code. (I'd post them here now, but need to fix the middle-mouse-button emulation first.) Anyway, has anyone got heartbeat running on Gentoo? Or a similarly capable fail-over system?
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Mon Dec 30, 2002 8:41 pm    Post subject: Reply with quote

Try emerging ucd-snmp before the compile.
Back to top
View user's profile Send private message
whit
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 121
Location: VT

PostPosted: Thu Jan 02, 2003 10:54 pm    Post subject: That worked Reply with quote

Thanks much! :D
Back to top
View user's profile Send private message
paul138
Guru
Guru


Joined: 09 Aug 2002
Posts: 370
Location: Ottawa, ON

PostPosted: Wed Jan 29, 2003 10:11 pm    Post subject: Reply with quote

Did you manage to get heartbeat running on your Gentoo box? If so, which version?
_________________
Talk is cheap because supply always exceeds demand.
Back to top
View user's profile Send private message
semen
n00b
n00b


Joined: 02 Jan 2005
Posts: 29

PostPosted: Mon Jan 03, 2005 12:03 pm    Post subject: heartbeat compile error Reply with quote

Hi,

can not emerge heartbeat

did
emerge ucd-snmp

got this error below.

someone the same complile error?

--------------------------------------------------------------------------------
gcc -DHAVE_CONFIG_H -I. -I. -I../../linux-ha -I../../include -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -I/usr/include/libxml2 -O2 -mcpu=i686 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Werror -ggdb3 -O2 -mcpu=i686 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Werror -ggdb3 -MT pils.lo -MD -MP -MF .deps/pils.Tpo -c pils.c -fPIC -DPIC -o .libs/pils.o

pils.c:35:25: glib.h: No such file or directory
In file included from ../../include/pils/interface.h:25,
from pils.c:43:
../../include/pils/plugin.h:29:25: glib.h: No such file or directory
In file included from ../../include/pils/interface.h:25,
from pils.c:43:
../../include/pils/plugin.h:664: error: syntax error before "GHashTable"
.... 8)
Back to top
View user's profile Send private message
Khan
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2003
Posts: 96

PostPosted: Mon Jan 03, 2005 6:57 pm    Post subject: Re: heartbeat compile error Reply with quote

semen wrote:

pils.c:35:25: glib.h: No such file or directory
In file included from ../../include/pils/interface.h:25,
from pils.c:43:
../../include/pils/plugin.h:29:25: glib.h: No such file or directory
In file included from ../../include/pils/interface.h:25,
from pils.c:43:
../../include/pils/plugin.h:664: error: syntax error before "GHashTable"
.... 8)


I get the same error when trying to compile Heartbeat 1.2.3 from portage or source. I've been activily posting to the HA email list to try and find a solution. I'll post here when or if I get a fix from them. Version 1.99.1 compiles fine but it is alpha code for version 2.00 and I'm not too interested in running it in production.
Back to top
View user's profile Send private message
semen
n00b
n00b


Joined: 02 Jan 2005
Posts: 29

PostPosted: Tue Jan 04, 2005 10:49 pm    Post subject: Reply with quote

Hi,

I compiled heart beat successfuly on pentium 3 CPUs but on Intel Itanium CPUs the compile failed.
Maybe the following entrys in /etc/make.conf are wrong?

CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="acl bzlib gnutls posix apache2 mysql pcre xfs -qt -X -gtk -gtk2 -quicktime -xmms -xv xml xml2 pam ssl gd"

Someboy any idea?

:?:
Back to top
View user's profile Send private message
charlesnadeau
Apprentice
Apprentice


Joined: 19 May 2003
Posts: 205
Location: Ottawa, Ontario, Canada

PostPosted: Mon Jan 17, 2005 9:44 pm    Post subject: Reply with quote

[quote="semen"]
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
/quote]
-mcpu should be equal to itanium or itanium2. Look at this page.
_________________
Charles Nadeau
http://radio.weblogs.com/0111823/
http://charlesnadeau.blogspot.com/search/label/Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum