Re: BDR conpilation error un Ubuntu 12.4 LTS

From: Giuseppe Broccolo <giuseppe(dot)broccolo(at)2ndquadrant(dot)it>
To: stefano bonnin <stefano(dot)bonnin(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: BDR conpilation error un Ubuntu 12.4 LTS
Date: 2014-12-22 13:00:42
Message-ID: CAFzmHiUSHzd2Okw4yBdsbQRypgAAfoH2F6ZqdUSX07OtqULaNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Stefano,

Which version of gcc are you using?

Giuseppe.

2014-12-22 9:52 GMT+01:00 stefano bonnin <stefano(dot)bonnin(at)gmail(dot)com>:

>
> Hi all, I have followed the wiki about postgresql BDR:
>
> OS: Ubuntu 12.04.5 LTS
>
>
> - git clone git://git.postgresql.org/git/2ndquadrant_bdr.git
> - cd 2ndquadrant_bdr
> - git checkout bdr/0.7.1
> - ./configure --prefix=$HOME/bdr --with-openssl
> - make
> - make install
>
> To install the BDR extension you'd then run:
>
> - (cd contrib/btree_gist && make && make install)
> - (cd contrib/bdr && make && make install)
>
> or to instead install all contribs (useful to include widely used
> extensions like hstore):
>
> - (cd contrib && make all)
> - (cd contrib && make install)
>
>
> BUT during cd contrib/bdr && make I obtain the following error:
>
> make -C ../../src/interfaces/libpq all
> make[1]: Entering directory
> `/usr/src/meteosmit/postgresql-BDR/2ndquadrant_bdr/src/interfaces/libpq'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/usr/src/meteosmit/postgresql-BDR/2ndquadrant_bdr/src/interfaces/libpq'
> sed '0,/BDR_VERSION_DATE/s,\(BDR_VERSION_DATE\).*,\1
> "2014-12-22",;0,/BDR_VERSION_GITHASH/s,\(BDR_VERSION_GITHASH\).*,\1
> "a63674e",' bdr_version.h.in >bdr_version.h
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
> -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
> -fpic -I../../src/interfaces/libpq -I. -I. -I../../src/include
> -D_GNU_SOURCE -c -o bdr.o bdr.c
> bdr.c: In function ‘bdr_perdb_worker_main’:
> bdr.c:1057:10: warning: ‘rc’ may be used uninitialized in this function
> [-Wuninitialized]
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
> -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard
> -fpic -I../../src/interfaces/libpq -I. -I. -I../../src/include
> -D_GNU_SOURCE -c -o bdr_apply.o bdr_apply.c
> bdr_apply.c: In function ‘process_remote_commit’:
> bdr_apply.c:286:2: error: invalid operands to binary >> (have
> ‘TimestampTz’ and ‘int’)
> bdr_apply.c:355:3: error: invalid operands to binary >> (have
> ‘TimestampTz’ and ‘int’)
> make: *** [bdr_apply.o] Error 1
>
>
> Any help appreciated. Thanks.
>

--
Giuseppe Broccolo - 2ndQuadrant Italy
PostgreSQL Training, Services and Support
giuseppe(dot)broccolo(at)2ndQuadrant(dot)it | www.2ndQuadrant.it

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2014-12-22 15:07:11 Re: how to append records from dump to existing database?
Previous Message wetter wetterana 2014-12-22 12:16:44 how to append records from dump to existing database?