On Mar 30, 2010, at 6:05 AM, Dejan Muhamedagic wrote:

Hi,

On Mon, Mar 29, 2010 at 05:08:34PM -0500, Alex Dean wrote:
Running into an error building resource agents on OSX 10.5.  Using
glib 2.22.2 (downloaded from MacPorts, installed in /opt) and
libnet-1.1.4 (also installed in /opt).

cd Cluster-Resource-Agents-000dd8956ad7
./autogen.sh
./configure --prefix=/opt/software/wxweb/opt
make
 ... snip ...
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -I../include -I../
include  -I/opt/software/wxweb/opt/include/glib-2.0 -I/opt/software/
wxweb/opt/lib/glib-2.0/include -I/opt/software/wxweb/opt/include
-g -O2 -I/opt/software/wxweb/opt/include -ggdb3 -O0
-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: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 ‘send_tickle_ack’:
tickle_tcp.c:217: error: field ‘ip’ has incomplete type
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:254: error: ‘SOL_IP’ undeclared (first use in this
function)
tickle_tcp.c:254: error: (Each undeclared identifier is reported
only once
tickle_tcp.c:254: error: for each function it appears in.)
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[2]: *** [tickle_tcp.o] Error 1
gmake[2]: Leaving directory
`/usr/local/src/linux-ha/Cluster-Resource-Agents-000dd8956ad7/tools'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/local/src/linux-ha/Cluster-Resource-Agents-000dd8956ad7/tools'
make: *** [all-recursive] Error 1

Does anyone recognize this error?

Obviously struct iphdr is not available in the development
packages. Perhaps that's linux specific, really can't say.
Anyway, tickle_tcp.c shouldn't be built if that's the case. Can
you please open a bugzilla for this.

Thanks,

Dejan

I wanted to make sure I had all the steps to reproduce the error clear before filing the bug. After updating MacPorts (http://clusterlabs.org/wiki/Install#Darwin.2FMacOS_X recommends using some packages from MacPorts) I hit a new error building cluster glue. Thought I should try to ensure this is cleaned up before reporting the error in resource agents.

$ sudo port selfupdate
--->  Updating the ports tree
--->  Updating MacPorts base sources using rsync
MacPorts base version 1.8.2 installed,
MacPorts base version 1.8.2 downloaded.
--->  MacPorts base is already the latest version

$ port info glib2
glib2 @2.22.5 (devel)
$ port info pkgconfig
pkgconfig @0.23, Revision 1 (devel)
$ port info help2man
help2man @1.37.1, Revision 1 (textproc)

$ ls -l /usr/share/aclocal
total 568
-rw-r--r--  1 root  wheel    1807 Jun 27  2008 bison-i18n.m4
-rw-r--r--  1 root  wheel  230594 Feb 19  2008 libtool.m4
-rw-r--r--  1 root  wheel    7880 Jun 17  2009 libxml.m4
-rw-r--r--  1 root  wheel    8119 Nov 24  2007 libxslt.m4
-rw-r--r--  1 root  wheel   13214 Feb 19  2008 ltdl.m4
lrwxr-xr-x 1 root wheel 31 Mar 31 08:34 pkg.m4 -> /opt/local/ share/aclocal/pkg.m4
-rw-r--r--  1 root  wheel   12433 May  3  2006 wxwin.m4

$ tar xjvf glue-1.0.3.tar.bz2
$ cd Reusable-Cluster-Components-glue-1.0.3
$ ./autogen.sh
$ ./configure
...
using /opt/local/bin/pkg-config glib-2.0
checking for gettext in -lc... no
checking for gettext in -lintl... no
configure: error: You need gettext installed in order to build cluster- glue

$ which gettext
/opt/local/bin/gettext
$ port info gettext
gettext @0.17, Revision 4 (devel)

I will try to determine why I was previously able to build glue, and now cannot. This error occurred after following the http://clusterlabs.org/wiki/Install#Darwin.2FMacOS_X instructions, so I thought I should report this one as well.

alex

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
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