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 > thanks, > alex > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
