Hi,

On Thu, Jun 25, 2009 at 11:53:22AM +0300, Amrita Garg wrote:
> Hi,
> I am trying to compile heartbeat on redhat linux version 4.

Isn't there an already compiled heartbeat for that redhat
version? See the downloads page.

> I am getting these errors,
> 
> gcc  -o"heartbeat"  ./src/heartbeat.o   -lglib-2.0 -lhbclient -lplumb
> /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../libplumb.so: undefined 
> reference to `g_main_remove_poll'
> /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../libplumb.so: undefined 
> reference to `g_main_add_poll'
> /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../libplumb.so: undefined 
> reference to `g_source_add'

Funny, but g_main_remove_poll has been replaced in 2004. Which
version are you trying to compile?

> collect2: ld returned 1 exit status
> make: *** [heartbeat] Error 1
> 
> I have following packages installed.
> rpm -qa|grep glib
> glibc-2.3.4-2
> glib2-2.4.7-1
> glibc-common-2.3.4-2
> dbus-glib-0.22-11.EL
> glib-1.2.10-15
> glibc-headers-2.3.4-2
> glibc-kernheaders-2.4-9.1.87
> glibc-devel-2.3.4-2
> glib2-devel-2.4.7-1
> 
> 
> Do I need to install any other package. In the mailing list I
> found that we should install glib-devel package.  Is it
> necessary to install glib-devel as I am not able to get this
> package for redhat version 4.

No, glib2-devel should be enough. It's best to try with rpmbuild,
it should tell you which packages you need for build.

Thanks,

Dejan

> 
> Warm Regards,
> Amrita
> 
> 
> ________________________________
> This email and any files transmitted with it are confidential material. They 
> are intended solely for the use of the designated individual or entity to 
> whom they are addressed. If the reader of this message is not the intended 
> recipient, you are hereby notified that any dissemination, use, distribution 
> or copying of this communication is strictly prohibited and may be unlawful.
> 
> If you have received this email in error please immediately notify the sender 
> and delete or destroy any copy of this message
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
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