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...
try casting it or changing the type of lenp
[EMAIL PROTECTED] heartbeat]# uname -a
Linux mandelbrot.uvt.nl 2.6.9-67.0.4.ELsmp #1 SMP Fri Jan 18 05:00:00
EST 2008 x86_64 x86_64 x86_64 GNU/Linux
N.B:
This error does _not_ occur on our i386 RHEL AS 4.6 systems...
regards,
Johan
_______________________________________________
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