[Pacemaker] FreeBSD pacemaker build issue

Bernd Helber bernd at helber-it-services.com
Fri May 20 12:18:54 UTC 2011


Hello List,


i followed  the instructions to build Pacemaker on a FreeBSD 8.2 Box
posted there
http://www.mentby.com/Group/linux-ha/building-resource-agents-on-freebsd81-compilationfailed.html

I was succesful building the Ressource Agents, Corosync/Heartbeat 3, but
compiling Pacemaker fails.

The Build System
FreeBSD  8.2-RELEASE FreeBSD 8.2-RELEASE #1: Tue Feb 22 17:07:55 CET 2011 
  root at foobar.net:/usr/obj/usr/src/sys/HAGENERIC  amd64

Building Clusterglue Components -success
Building Resource Agents        - success
Building Heartbeat/Corosync              - success

If it comes to Pacemaker 

  Version                  = 1.0.11 (Build:
db98485d06ed3fe0fe236509f023e1bd4a5566f1)
  Features                 = manpages ncurses heartbeat

  Prefix                   = /usr/local
  Executables              = /usr/local/sbin
  Man pages                = /usr/local/share/man
  Libraries                = /usr/local/lib
  Header files             = /usr/local/include
  Arch-independent files   = /usr/local/share
  State information        = /usr/local/var
  System configuration     = /usr/local/etc
  AIS Plugins              = /usr/local/lib

  Use system LTDL          = yes

  HA group name            = haclient
  HA user name             = hacluster

Environment Settings:
----------------------------------
setenv PREFIX /usr/local
setenv LCRSODIR $PREFIX/libexec/lcrso
setenv OCF_ROOT_DIR $PREFIX/lib/ocf
setenv PATH /usr/local/bin:$PATH
setenv SYSCONFDIR /usr/local/etc
setenv LOCALESTATEDIR /var/cluster


I start to configure with the following flags

./configure --prefix=$PREFIX --disable-fatal-warnings
--with-group-id=$CLUSTER_GROUP_ID --with-ccmuser-id=$CLUSTER_USER_ID


At this point.. it breaks

cc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -I../include -I../include
-I../libltdl -I../libltdl  -I/usr/local/include
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  
-I/usr/local/include/libxml2 -I/usr/local/include  -fstack-protector
-I/usr/local/include/heartbeat -ggdb3 -O0  -fgnu89-inline
-fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast
-Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal
-Wformat=2 -Wformat-security -Wformat-nonliteral -Winline
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs
-Wno-long-long
-Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings
-MT pingd.o -MD -MP -MF .deps/pingd.Tpo -c -o pingd.o pingd.c
In file included from pingd.c:50:
/usr/include/netinet/ip6.h:82: error: field 'ip6_src' has incomplete type
/usr/include/netinet/ip6.h:83: error: field 'ip6_dst' has incomplete type
In file included from pingd.c:51:
/usr/include/netinet/icmp6.h:178: error: field 'mld_addr' has incomplete
type
/usr/include/netinet/icmp6.h:246: error: field 'nd_ns_target' has
incomplete type
/usr/include/netinet/icmp6.h:257: error: field 'nd_na_target' has
incomplete type
/usr/include/netinet/icmp6.h:279: error: field 'nd_rd_target' has
incomplete type
/usr/include/netinet/icmp6.h:280: error: field 'nd_rd_dst' has incomplete
type
/usr/include/netinet/icmp6.h:311: error: field 'nd_opt_pi_prefix' has
incomplete type
/usr/include/netinet/icmp6.h:458: error: field 'rpm_prefix' has incomplete
type
/usr/include/netinet/icmp6.h:474: error: field 'rpu_prefix' has incomplete
type
/usr/include/netinet/icmp6.h:492: error: field 'rrr_prefix' has incomplete
type
gmake[1]: *** [pingd.o] Error 1
gmake[1]: Leaving directory
`/usr/home/flo/pacemaker/Pacemaker-1-0-db98485d06ed/tools'
gmake: *** [install-recursive] Error 1
Unmatched ".

Unfortunately i'm not a developer, so i'm not able to start debugging the
code. Maybe some one is able to give me an advice. 


Thanks for your time and consideration.






More information about the Pacemaker mailing list