Hi,

the OpenBSD sparc port is broken. I updated the source to the new interim 
version 2.1.2-15, but now on sparc, compilation of stonithd (with 
gcc-2.95.3) fails for the following reason:

gmake[1]: Entering directory 
`/usr/ports/sysutils/heartbeat/w-heartbeat-2.1.2-15/Heartbeat-Dev-c492f19cb583/fencing/stonithd'

source='stonithd.c' object='stonithd.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include 
-I../../include -I../../libltdl  -I../../libltdl -I../../linux-ha
-I../../linux-ha -I../..          -I../..  -I/usr/local/include
-DLIBNET_BSDISH_OS -DLIBNET_BIG_ENDIAN -I/usr/local/include/libnet-1.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
-I/usr/local/include/libxml2 -I/usr/local/include -I../../include 
-I../../include -I../../libltdl  -I../../libltdl -I../../linux-ha
-I../../linux-ha -I../..          -I../.. -O2 -pipe  -Wall -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings
-Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wformat=2
-Wformat-security -Wformat-nonliteral -Wno-long-long   -ggdb3 -funsigned-char -c

stonithd.c
stonithd.c:1054: macro `return_on_msg_shoot_us' used without args
stonithd.c: In function `stonithd_reply':
stonithd.c:1707: warning: cast increases required alignment of target type
stonithd.c:1707: warning: cast increases required alignment of target type
stonithd.c:1707: warning: cast increases required alignment of target type
stonithd.c:1708: warning: cast increases required alignment of target type
stonithd.c:1708: warning: cast increases required alignment of target type
stonithd.c:1708: warning: cast increases required alignment of target type
gmake[1]: *** [stonithd.o] Error 1
gmake[1]: Leaving directory 
`/usr/ports/sysutils/heartbeat/w-heartbeat-2.1.2-15/Heartbeat-Dev-c492f19cb583/fencing/stonithd'

gmake: *** [all-recursive] Error 1
*** Error code 1

Stop 
in /usr/ports/sysutils/heartbeat/w-heartbeat-2.1.2-15/Heartbeat-Dev-c492f19cb583

(line 547 of Makefile).
*** Error code 1

Stop in /usr/ports/sysutils/heartbeat (line 2063 
of /usr/ports/infrastructure/mk/bsd.port.mk).

The port compiles on sparc64 and i386, but there gcc 3.3.5 is used.
maybe someone who knows what changed on stonithd between 2.1.2-4 and 
2.1.2-15 before I have to diff the versions to figure it out the long way by 
myself. Most likely it will compile again when I install the gcc 3.3.x from 
ports, and then use this one, but the preferred way would be to use the 
older gcc version that comes with OpenBSD sparc.

kind regards
Sebastian

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to