Re: Compile error while building postgresql 10.3

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Terry Phelps <tgphelps50(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Compile error while building postgresql 10.3
Date: 2018-03-19 20:38:09
Message-ID: CAEepm=0B3z32jYq8=+iPVfWF6BvERj393OVfNFWda29M9gukDg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

On Tue, Mar 20, 2018 at 9:28 AM, Terry Phelps <tgphelps50(at)gmail(dot)com> wrote:
> Thank you for your help. That resolved the problem. My bad.
>
> The build ran much further and then got another error, which I'll mention
> here, and go research it, since it could be just my bleeding edge source
> code.
>
> cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
> -Wendif-labels -Wmissing-format-attribute -Wformat-security
> -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument
> -I/usr/local/include -D_THREAD_SAFE -pthread -D_REENTRANT -D_THREAD_SAFE
> -D_POSIX_PTHREAD_SEMANTICS -fPIC -DPIC -I../include
> -I../../../../src/interfaces/ecpg/include -DFRONTEND
> -I../../../../src/include -DSO_MAJOR_VERSION=3 -c -o datetime.o
> datetime.c
> datetime.c:332:1: error: conflicting types for 'PGTYPESdate_defmt_asc'
> PGTYPESdate_defmt_asc(date * d, const char *fmt, const char *str)
> ^
> /usr/local/include/pgtypes_date.h:24:12: note: previous declaration is here
> extern int PGTYPESdate_defmt_asc(date *, const char *, char *);

That header is coming from /usr/local/include instead of your
development tree, from an older version of PG from before const was
added there.

BTW it looks like 0e1539ba0d0a added const qualifiers to that function
but didn't update the documentation in doc/src/sgml/ecpg.sgml.

--
Thomas Munro
http://www.enterprisedb.com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2018-03-19 20:44:01 Re: Compile error while building postgresql 10.3
Previous Message Terry Phelps 2018-03-19 20:28:31 Re: Compile error while building postgresql 10.3

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-03-19 20:44:01 Re: Compile error while building postgresql 10.3
Previous Message Jeremy Finzel 2018-03-19 20:37:51 Re: found xmin from before relfrozenxid on pg_catalog.pg_authid