On Wed, Mar 19, 2008 at 9:12 AM, Johan Hoeke <[EMAIL PROTECTED]> wrote:
>
> Andrew Beekhof wrote:
> >
> > On Mar 18, 2008, at 3:55 PM, Johan Hoeke wrote:
> >
> >> LS,
> >>
> >> Am compiling heartbeat-2.1.3-15-1 obtained from
> >>
> http://download.opensuse.org/repositories/server:/ha-clustering/RHEL_5/src/heartbeat-2.1.3-15.1.src.rpm
> >>
> >>
> >> ./ConfigureMe configure --prefix=/usr --sysconfdir=/etc
> >> --localstatedir=/var --mandir=/usr/share/man --disable-rpath
> >>
> >> (all is well)
> >>
> >> make
> >>
> >> Getting the following error:
> >>
> >> gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include
> >> -I../../../include -I../../../include -I../../../linux-ha
> >> -I../../../linux-ha -I../../../libltdl -I../../../libltdl
> >> -I../../../lib/upmls -I../../../lib/upmls -I/usr/include/glib-2.0
> >> -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -g -O2 -Wall
> >> -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> >> -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings
> >> -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
> >> -Wmissing-format-attribute -Wformat=2 -Wformat-security
> >> -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3
> >> -funsigned-char -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
> >> -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith
> >> -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
> >> -Wmissing-format-attribute -Wformat=2 -Wformat-security
> >> -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3
> >> -funsigned-char -MT hbaping.lo -MD -MP -MF .deps/hbaping.Tpo -c
> >> hbaping.c -fPIC -DPIC -o .libs/hbaping.o
> >> hbaping.c: In function `hbaping_read':
> >> hbaping.c:326: warning: passing arg 2 of `msg2wirefmt' from incompatible
> >> pointer type
> >> gmake[4]: *** [hbaping.lo] Error 1
> >
> > well the prototype is:
> > ./include/ha_msg.h:353:char* msg2wirefmt(struct ha_msg *m,
> > size_t* );
> >
> > and hbping.c is passing in lenp which is defined as
> > int *lenp
> >
> >
> > so i'm guessing size_t != int on your platform.
> > i wonder why no-one else is seeing this...
>
> well, I'm wondering that too. I don't know if it's important but
> because of oracle requirements, we've got 64 en 32 bit gcc stuff installed:
>
> libgcc-3.4.6-9.x86_64.rpm
> gcc-3.4.6-9.x86_64.rpm
> compat-libgcc-296-2.96-132.7.2.i386.rpm
> libgcc-3.4.6-9.i386.rpm
> gcc-c++-3.4.6-9.x86_64.rpm
>
>
> >
> > try casting it or changing the type of lenp
> >
>
> I am not a programmer, I don't know how to do that :(
> I'm happy to try it if you can provide a code snippit.
>
>
> - insert redhat4 package request here. :P
ah!
/me puts two and two together :-)
I'm totally swamped at the moment... but if no-one else has been able
to help you by next week I'll try and write a patch for you.
Otherwise, do you actually need hbaping?
I'm guessing no-one has the pre-reqs installed which is preventing it
from being built:
from configure.in:
dnl check if header file and lib are there for hbaping
hbaping_build="yes"
AC_CHECK_HEADERS(time.h hbaapi.h, , [hbaping_build="no"],[[#if HAVE_TIME_H
#include <time.h>
#endif]])
AC_CHECK_LIB(HBAAPI, HBA_SendScsiInquiry, , [hbaping_build="no"])
AM_CONDITIONAL(HBAAPI_BUILD, test "x${hbaping_build}" = "xyes")
So just arrange for hbaapi.h or libHBAAPI.so not to be found and the
build should pass.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems