<div dir="ltr">Hi Scalia<div><br></div><div>I have tried building 3.3.4 on centos and can successfully configure and build from the code without any problems</div><div><div><span style="font-family:arial,sans-serif;font-size:12.7272720336914px">Can you share some more details on configuration switches you have used and what sort of configure problems you got.</span></div></div><div><span style="font-family:arial,sans-serif;font-size:12.7272720336914px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.7272720336914px">The system and GCC information I have used to build pgpool-II</span></div><div><div class="" style="font-family:arial,sans-serif;font-size:12.7272720336914px"><span dir="ltr" id=":1hf">gcc --version = gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)</span></div><div class="" style="font-family:arial,sans-serif;font-size:12.7272720336914px"><span dir="ltr"><span style="font-size:12.7272720336914px">system = Linux bfas92-linux-x6</span><span style="font-size:12.7272720336914px">4 2.6.18-308.16.1</span><span style="font-size:12.7272720336914px">.el5 #1 SMP Tue Oct 2 22:01:43 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux</span><br></span></div></div><div><span style="font-family:arial,sans-serif;font-size:12.7272720336914px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.7272720336914px">P.S</span></div><div><span style="font-family:arial,sans-serif;font-size:12.7272720336914px">WDInfo struct is defined in watchdog.h file at line 126 while WD_List is at line 41 of watchdog.c and extern in watchdog.h</span><br></div><div><span style="font-family:arial,sans-serif;font-size:12.7272720336914px"><br></span></div><div>Thanks</div><div>Usama</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 12:24 AM, John Scalia <span dir="ltr">&lt;<a href="mailto:jayknowsunix@gmail.com" target="_blank">jayknowsunix@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m trying to build pgpool from source on a centOS VM. (Yes, I know I could just download the binary but that&#39;s not very useful if you want to try to contribute to the project.) Anyway, after clearing up a handful of configure problems and fixing a missing include file, I kicked off a &quot;make all&quot;. Everything was compiling quite well until it got into the watchdog directory. There gcc blew up on wd_list.c. Here&#39;s the output from make:<br>
<br>
gcc -DHAVE_CONFIG -I. -I.. -D GNU_SOURCE -I .. -I /usr/pgsql-9.3/include -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -MT wd_list.o -MD -MP -MF .deps/wd_list.Tpo -c -o wd_list.o wd_list.c<br>
wd_list.c: In function &#39;wd_is_exist_master&#39;;<br>
wd_list.c:170: error: parameter &#39;p&#39; is initialized<br>
wd_list.c:172: error: expected declaration specifiers before &#39;while&#39;<br>
wd_list.c:183: error: expected declaration specifiers before &#39;return&#39;<br>
wd_list.c:184: error: expected declaration specifiers before &#39;}&#39; token<br>
wd_list.c:189: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:209: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:229: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:251: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:283: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:314: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:327: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:348: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:370: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:398: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:418: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:442: error: expected &#39;=&#39;, &#39;,&#39;, &#39;;&#39;, &#39;asm&#39; or &#39;__attribute__&#39; before &#39;{&#39; token<br>
wd_list.c:168: old-style parameter declarations in prototyped function definition<br>
wd_list.c:447: expected &#39;{&#39; at end of input<br>
make[2]: *** [wd_list.o] Error 1<br>
<br>
I&#39;m looking at the code in wd_list.c at line 170, the first error, [WDInfo * p = WD_List;] and I haven&#39;t found where WD_List is defined which might be causing this issue.<br>
--<br>
Jay<br>
______________________________<u></u>_________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/<u></u>listinfo/pgpool-general</a><br>
</blockquote></div><br></div>