Lars Marowsky-Bree wrote:
On 2008-08-22T11:18:07, Paul Walsh <[EMAIL PROTECTED]> wrote:

pils.c:244: error: initialization from incompatible pointer type
pils.c:245: error: initialization from incompatible pointer type
make[2]: *** [pils.lo] Error 1
make[2]: se sale del directorio `/usr/src/Heartbeat-STABLE-2-1-STABLE-2.1.4/lib/pils'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/usr/src/Heartbeat-STABLE-2-1-STABLE-2.1.4/lib'
make: *** [all-recursive] Error 1


I can't a solution to this error.

The solution I've come across is to edit lib/pils/Makefile and remove -Werror from CFLAGS (line 97) and AM_FLAGS (line 369)

That'll make it compile, but a warning like that in the depths of the
PILS code is not something to ignore. Please rather try to find out why
this occurs for you!


Regards,
    Lars

:)

I've been doing a little research and it *appears* to be a 32bit/64bit issue...

I set up two virtual machines, one with Ubuntu 8.04 LTS server and one with 8.04 desktop. When installing the server I selected LAMP and SSH server. After each installation I installed the following packages:

build-essential
autoconf
automake
libtool
libltdl3-dev
e2fslibs-dev
libglib2.0-dev
libnet1
libnet1-dev
libpam0g-dev
uuid
uuid-dev

I then unpacked Heartbeat 2.1.4 and ran

./ConfigureMe configure

followed by

make

which resulted in

cc1: warnings being treated as errors
pils.c:244: warning: initialization from incompatible pointer type
pils.c:245: warning: initialization from incompatible pointer type
make[2]: *** [pils.lo] Error 1
make[2]: Leaving directory 
`/home/paul/Heartbeat-STABLE-2-1-STABLE-2.1.4/lib/pils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/paul/Heartbeat-STABLE-2-1-STABLE-2.1.4/lib'
make: *** [all-recursive] Error 1

I've previously built heartbeat on "real" servers without this error occurring, but they're all running 64bit O/S (one pair running openSUSE 10.2, the other using Ubuntu 8.04) so I tried from scratch on a Sun X2100 running Ubuntu 8.04LTS server (the 64bit version). I installed the same packages as on the VMs and ran ConfigureMe and make. This time, the make completed successfully.

Oh, and the same error occurs on a 32 bit openSUSE 11.0 VM

--
Paul Walsh

_______________________________________________
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