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 regards, Johan
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems