[pgpool-general: 3157] Re: Building pgpool-II V.3.3.4

Muhammad Usama m.usama at gmail.com
Fri Sep 12 22:16:38 JST 2014


Hi Scalia

I have tried building 3.3.4 on centos and can successfully configure and
build from the code without any problems
Can you share some more details on configuration switches you have used and
what sort of configure problems you got.

The system and GCC information I have used to build pgpool-II
gcc --version = gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)
system = Linux bfas92-linux-x64 2.6.18-308.16.1.el5 #1 SMP Tue Oct 2
22:01:43 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

P.S
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

Thanks
Usama

On Fri, Sep 12, 2014 at 12:24 AM, John Scalia <jayknowsunix at gmail.com>
wrote:

> 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
> _______________________________________________
> pgpool-general mailing list
> pgpool-general at pgpool.net
> http://www.pgpool.net/mailman/listinfo/pgpool-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20140912/70c000fb/attachment.html>


More information about the pgpool-general mailing list