[pgpool-general: 3156] Building pgpool-II V.3.3.4

John Scalia jayknowsunix at gmail.com
Fri Sep 12 04:24:36 JST 2014


I'm trying to build pgpool from source on a centOS VM. (Yes, I know I could just download the binary but that'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 "make all". Everything was compiling quite well until it got into the 
watchdog directory. There gcc blew up on wd_list.c. Here's the output from make:

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
wd_list.c: In function 'wd_is_exist_master';
wd_list.c:170: error: parameter 'p' is initialized
wd_list.c:172: error: expected declaration specifiers before 'while'
wd_list.c:183: error: expected declaration specifiers before 'return'
wd_list.c:184: error: expected declaration specifiers before '}' token
wd_list.c:189: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:209: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:229: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:251: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:283: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:314: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:327: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:348: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:370: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:398: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:418: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:442: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
wd_list.c:168: old-style parameter declarations in prototyped function definition
wd_list.c:447: expected '{' at end of input
make[2]: *** [wd_list.o] Error 1

I'm looking at the code in wd_list.c at line 170, the first error, [WDInfo * p = WD_List;] and I haven't found where WD_List is defined which might be causing this issue.
--
Jay


More information about the pgpool-general mailing list