Hi.
I'm trying to install pacemaker on FreeBSD 8.1.
I follow instructions from http://www.clusterlabs.org/wiki/Install#From_Source

commands "./autogen.sh && ./configure --prefix=$PREFIX" run fine

Currently installation process fails on step "Resource Agents" compilation:
issuing "make" command produces errors:
> /usr/local/bin/gcc42 -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -I../include 
> -I../include  -I/usr/local/include -I/usr/local/include/glib-2.0 
> -I/usr/local/lib/glib-2.0/include   -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP 
> -DHAVE_SOCKADDR_SA_LEN -I/usr/local/include/libnet11  -g -O2 -ggdb3 -O0  
> -fgnu89-inline -fstack-protector-all -Wall -Wbad-function-cast -Wcast-qual 
> -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal 
> -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline 
> -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute 
> -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith 
> -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror 
> -MT tickle_tcp.o -MD -MP -MF .deps/tickle_tcp.Tpo -c -o tickle_tcp.o 
> tickle_tcp.c
> In file included from tickle_tcp.c:28:
> /usr/include/netinet/ip.h:69: error: field 'ip_src' has incomplete type
> /usr/include/netinet/ip.h:69: error: field 'ip_dst' has incomplete type
> /usr/include/netinet/ip.h:155: error: field 'ipt_addr' has incomplete type
> /usr/include/netinet/ip.h:190: error: field 'ippseudo_src' has incomplete type
> /usr/include/netinet/ip.h:191: error: field 'ippseudo_dst' has incomplete type
 (full log in attach log1.txt)

after applying small patch to tickle_tcp.c (attach tickle_tcp.c.patch) and 
running make again i get another error:
> /usr/local/bin/gcc42 -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -I../include 
> -I../include  -I/usr/local/include -I/usr/local/include/glib-2.0 
> -I/usr/local/lib/glib-2.0/include   -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP 
> -DHAVE_SOCKADDR_SA_LEN -I/usr/local/include/libnet11  -g -O2 -ggdb3 -O0  
> -fgnu89-inline -fstack-protector-all -Wall -Wbad-function-cast -Wcast-qual 
> -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal 
> -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline 
> -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute 
> -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith 
> -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror 
> -MT tickle_tcp.o -MD -MP -MF .deps/tickle_tcp.Tpo -c -o tickle_tcp.o 
> tickle_tcp.c
> cc1: warnings being treated as errors
> tickle_tcp.c:71: warning: 'struct iphdr' declared inside parameter list
> tickle_tcp.c:71: warning: its scope is only this definition or declaration, 
> which is probably not what you want
> tickle_tcp.c: In function 'tcp_checksum':
> tickle_tcp.c:75: error: dereferencing pointer to incomplete type
> tickle_tcp.c:76: error: dereferencing pointer to incomplete type
> tickle_tcp.c:77: error: dereferencing pointer to incomplete type
> tickle_tcp.c:78: error: dereferencing pointer to incomplete type
> tickle_tcp.c:79: error: dereferencing pointer to incomplete type
(full log in attach log2.txt)

I couldn't find iphdr struct declaration - seems it's missing in freeBSD.

Could someone please guide me how to compile resource agents (and pacemaker) on 
FreeBSD?
I'll provide any additional information upon request if needed.
Thanks.

[r...@alice ~/Cluster-Resource-Agents-051972b5cfd5]# make
Making all in include
gmake  all-am
gmake[1]: Entering directory 
`/root/Cluster-Resource-Agents-051972b5cfd5/include'
gmake[1]: Nothing to be done for `all-am'.
gmake[1]: Leaving directory `/root/Cluster-Resource-Agents-051972b5cfd5/include'
Making all in heartbeat
gmake: Nothing to be done for `all'.
Making all in tools
Making all in ocft
gmake[1]: Entering directory 
`/root/Cluster-Resource-Agents-051972b5cfd5/tools/ocft'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory 
`/root/Cluster-Resource-Agents-051972b5cfd5/tools/ocft'
gmake[1]: Entering directory `/root/Cluster-Resource-Agents-051972b5cfd5/tools'
/usr/local/bin/gcc42 -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -I../include 
-I../include  -I/usr/local/include -I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include   -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP 
-DHAVE_SOCKADDR_SA_LEN -I/usr/local/include/libnet11  -g -O2 -ggdb3 -O0  
-fgnu89-inline -fstack-protector-all -Wall -Wbad-function-cast -Wcast-qual 
-Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal 
-Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes 
-Wmissing-declarations -Wmissing-format-attribute -Wnested-externs 
-Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes 
-Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror -MT tickle_tcp.o -MD 
-MP -MF .deps/tickle_tcp.Tpo -c -o tickle_tcp.o tickle_tcp.c
In file included from tickle_tcp.c:28:
/usr/include/netinet/ip.h:69: error: field 'ip_src' has incomplete type
/usr/include/netinet/ip.h:69: error: field 'ip_dst' has incomplete type
/usr/include/netinet/ip.h:155: error: field 'ipt_addr' has incomplete type
/usr/include/netinet/ip.h:190: error: field 'ippseudo_src' has incomplete type
/usr/include/netinet/ip.h:191: error: field 'ippseudo_dst' has incomplete type
In file included from tickle_tcp.c:29:
/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
tickle_tcp.c:40: error: field 'ip' has incomplete type
tickle_tcp.c:41: error: field 'ip6' has incomplete type
cc1: warnings being treated as errors
tickle_tcp.c:70: warning: 'struct iphdr' declared inside parameter list
tickle_tcp.c:70: warning: its scope is only this definition or declaration, 
which is probably not what you want
tickle_tcp.c: In function 'tcp_checksum':
tickle_tcp.c:74: error: dereferencing pointer to incomplete type
tickle_tcp.c:75: error: dereferencing pointer to incomplete type
tickle_tcp.c:76: error: dereferencing pointer to incomplete type
tickle_tcp.c:77: error: dereferencing pointer to incomplete type
tickle_tcp.c:78: error: dereferencing pointer to incomplete type
tickle_tcp.c: In function 'parse_ipv4':
tickle_tcp.c:130: error: dereferencing pointer to incomplete type
tickle_tcp.c:131: error: dereferencing pointer to incomplete type
tickle_tcp.c:133: error: dereferencing pointer to incomplete type
tickle_tcp.c: In function 'parse_ipv6':
tickle_tcp.c:153: warning: implicit declaration of function 
'IN6_IS_ADDR_LINKLOCAL'
tickle_tcp.c:153: warning: nested extern declaration of 'IN6_IS_ADDR_LINKLOCAL'
tickle_tcp.c: In function 'send_tickle_ack':
tickle_tcp.c:217: error: field 'ip' has incomplete type
tickle_tcp.c:232: error: 'IPPROTO_TCP' undeclared (first use in this function)
tickle_tcp.c:232: error: (Each undeclared identifier is reported only once
tickle_tcp.c:232: error: for each function it appears in.)
tickle_tcp.c:237: error: 'struct tcphdr' has no member named 'source'
tickle_tcp.c:238: error: 'struct tcphdr' has no member named 'dest'
tickle_tcp.c:239: error: 'struct tcphdr' has no member named 'seq'
tickle_tcp.c:240: error: 'struct tcphdr' has no member named 'ack_seq'
tickle_tcp.c:241: error: 'struct tcphdr' has no member named 'ack'
tickle_tcp.c:243: error: 'struct tcphdr' has no member named 'rst'
tickle_tcp.c:244: error: 'struct tcphdr' has no member named 'doff'
tickle_tcp.c:245: error: 'struct tcphdr' has no member named 'window'
tickle_tcp.c:246: error: 'struct tcphdr' has no member named 'check'
tickle_tcp.c:248: error: 'IPPROTO_RAW' undeclared (first use in this function)
tickle_tcp.c:254: error: 'SOL_IP' undeclared (first use in this function)
tickle_tcp.c:254: error: 'IP_HDRINCL' undeclared (first use in this function)
tickle_tcp.c:282: error: 'struct tcphdr' has no member named 'source'
tickle_tcp.c:283: error: 'struct tcphdr' has no member named 'dest'
tickle_tcp.c:284: error: 'struct tcphdr' has no member named 'seq'
tickle_tcp.c:285: error: 'struct tcphdr' has no member named 'ack_seq'
tickle_tcp.c:286: error: 'struct tcphdr' has no member named 'ack'
tickle_tcp.c:288: error: 'struct tcphdr' has no member named 'rst'
tickle_tcp.c:289: error: 'struct tcphdr' has no member named 'doff'
tickle_tcp.c:290: error: 'struct tcphdr' has no member named 'window'
tickle_tcp.c:291: error: 'struct tcphdr' has no member named 'check'
gmake[1]: *** [tickle_tcp.o] Error 1
gmake[1]: Leaving directory `/root/Cluster-Resource-Agents-051972b5cfd5/tools'
gmake: *** [all-recursive] Error 1
*** Error code 1

Stop in /root/Cluster-Resource-Agents-051972b5cfd5.
[r...@alice ~/Cluster-Resource-Agents-051972b5cfd5]# make
Making all in include
gmake  all-am
gmake[1]: Entering directory 
`/root/Cluster-Resource-Agents-051972b5cfd5/include'
gmake[1]: Nothing to be done for `all-am'.
gmake[1]: Leaving directory `/root/Cluster-Resource-Agents-051972b5cfd5/include'
Making all in heartbeat
gmake: Nothing to be done for `all'.
Making all in tools
Making all in ocft
gmake[1]: Entering directory 
`/root/Cluster-Resource-Agents-051972b5cfd5/tools/ocft'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory 
`/root/Cluster-Resource-Agents-051972b5cfd5/tools/ocft'
gmake[1]: Entering directory `/root/Cluster-Resource-Agents-051972b5cfd5/tools'
/usr/local/bin/gcc42 -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -I../include 
-I../include  -I/usr/local/include -I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include   -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP 
-DHAVE_SOCKADDR_SA_LEN -I/usr/local/include/libnet11  -g -O2 -ggdb3 -O0  
-fgnu89-inline -fstack-protector-all -Wall -Wbad-function-cast -Wcast-qual 
-Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal 
-Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes 
-Wmissing-declarations -Wmissing-format-attribute -Wnested-externs 
-Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes 
-Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror -MT tickle_tcp.o -MD 
-MP -MF .deps/tickle_tcp.Tpo -c -o tickle_tcp.o tickle_tcp.c
cc1: warnings being treated as errors
tickle_tcp.c:71: warning: 'struct iphdr' declared inside parameter list
tickle_tcp.c:71: warning: its scope is only this definition or declaration, 
which is probably not what you want
tickle_tcp.c: In function 'tcp_checksum':
tickle_tcp.c:75: error: dereferencing pointer to incomplete type
tickle_tcp.c:76: error: dereferencing pointer to incomplete type
tickle_tcp.c:77: error: dereferencing pointer to incomplete type
tickle_tcp.c:78: error: dereferencing pointer to incomplete type
tickle_tcp.c:79: error: dereferencing pointer to incomplete type
tickle_tcp.c: In function 'send_tickle_ack':
tickle_tcp.c:218: error: field 'ip' has incomplete type
tickle_tcp.c:238: error: 'struct tcphdr' has no member named 'source'
tickle_tcp.c:239: error: 'struct tcphdr' has no member named 'dest'
tickle_tcp.c:240: error: 'struct tcphdr' has no member named 'seq'
tickle_tcp.c:241: error: 'struct tcphdr' has no member named 'ack_seq'
tickle_tcp.c:242: error: 'struct tcphdr' has no member named 'ack'
tickle_tcp.c:244: error: 'struct tcphdr' has no member named 'rst'
tickle_tcp.c:245: error: 'struct tcphdr' has no member named 'doff'
tickle_tcp.c:246: error: 'struct tcphdr' has no member named 'window'
tickle_tcp.c:247: error: 'struct tcphdr' has no member named 'check'
tickle_tcp.c:255: error: 'SOL_IP' undeclared (first use in this function)
tickle_tcp.c:255: error: (Each undeclared identifier is reported only once
tickle_tcp.c:255: error: for each function it appears in.)
tickle_tcp.c:283: error: 'struct tcphdr' has no member named 'source'
tickle_tcp.c:284: error: 'struct tcphdr' has no member named 'dest'
tickle_tcp.c:285: error: 'struct tcphdr' has no member named 'seq'
tickle_tcp.c:286: error: 'struct tcphdr' has no member named 'ack_seq'
tickle_tcp.c:287: error: 'struct tcphdr' has no member named 'ack'
tickle_tcp.c:289: error: 'struct tcphdr' has no member named 'rst'
tickle_tcp.c:290: error: 'struct tcphdr' has no member named 'doff'
tickle_tcp.c:291: error: 'struct tcphdr' has no member named 'window'
tickle_tcp.c:292: error: 'struct tcphdr' has no member named 'check'
gmake[1]: *** [tickle_tcp.o] Error 1
gmake[1]: Leaving directory `/root/Cluster-Resource-Agents-051972b5cfd5/tools'
gmake: *** [all-recursive] Error 1
*** Error code 1

Stop in /root/Cluster-Resource-Agents-051972b5cfd5.

Attachment: tickle_tcp.c.patch
Description: Binary data

_______________________________________________
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