NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Error compiling Pacemaker



Hi folks,

I was working on making the Corosync cluster message engine work on
NetBSD. As with version 1.4.3, the developers have corrected the
issues I found, so that Corosync now works out-of-the-box. I was
already able to build the cluster-glue package (which was a mess).
Finaly I try to build Pacemaker, which throws a strange error:

gmake[1]: Entering directory `/root/Pacemaker-1-0-9af47ddebcad/lib/common'
/bin/sh ../../libtool --tag=CC   --tag=CC   --mode=compile gcc
-std=gnu99 -DHAVE_CONFIG_H -I. -I../../include -I../../include
-I../../include -I../../libltdl  -I../../libltdl  -I/usr/local/include
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include
-I/usr/pkg/include/libxml2  -I/usr/include/heartbeat
-I/usr/pkg/include -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 -Wno-unused-but-set-variable -Wpointer-arith
-Wstrict-prototypes -Wwrite-strings -fPIC -MT remote.lo -MD -MP -MF
.deps/remote.Tpo -c -o remote.lo remote.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../include
-I../../include -I../../include -I../../libltdl -I../../libltdl
-I/usr/local/include -I/usr/pkg/include/glib/glib-2.0
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/libxml2
-I/usr/include/heartbeat -I/usr/pkg/include
-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 -Wno-unused-but-set-variable
-Wpointer-arith -Wstrict-prototypes -Wwrite-strings -fPIC -MT
remote.lo -MD -MP -MF .deps/remote.Tpo -c remote.c  -fPIC -DPIC -o
.libs/remote.o
In file included from remote.c:29:0:
/usr/include/netinet/ip.h:67:19: error: field 'ip_src' has incomplete type
/usr/include/netinet/ip.h:67:27: error: field 'ip_dst' has incomplete type
/usr/include/netinet/ip.h:201:4: error: expected
specifier-qualifier-list before 'n_time'
/usr/include/netinet/ip.h:239:17: error: field 'ippseudo_src' has
incomplete type
/usr/include/netinet/ip.h:240:17: error: field 'ippseudo_dst' has
incomplete type
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
gmake[1]: *** [remote.lo] Error 1
gmake[1]: Leaving directory `/root/Pacemaker-1-0-9af47ddebcad/lib/common'
gmake: *** [all-recursive] Error 1
*** Error code 1


What is wrong here; netinet/ip.h is from NetBSD!? I am testing on 6.0 BETA i386.

Regards,

Stephan


Home | Main Index | Thread Index | Old Index